Skip to content

feat: Support for changing model ID type to UUID. - #3659

Merged
SandPod merged 2 commits into
serverpod:mainfrom
SandPod:3255-uuid-out-from-experimental
Jun 17, 2025
Merged

SandPod merged 2 commits into
serverpod:mainfrom
SandPod:3255-uuid-out-from-experimental

Conversation

@SandPod

@SandPod SandPod commented Jun 16, 2025 •

Copy link
Copy Markdown
Contributor

Moves support for changing ID type to UUID out of experimental.

This PR simply removes the requirement for having the changeIdType experiment enabled in order to use the syntax to define a UUID id.

This PR will be followed by a docs PR that moves the documentation out from under the experimental section.
Docs PR: serverpod/serverpod_docs#299

Closes: #3255

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

None - simply makes this feature part of Serverpod without the experimental flag.

Summary by CodeRabbit

  • Refactor

    • Removed support for the "changeIdType" experimental feature, including related validation checks and configuration options.
  • Tests

    • Updated test configurations to remove references to the "changeIdType" experimental feature.
    • Removed test cases specifically related to enabling or requiring the "changeIdType" feature.

@coderabbitai

coderabbitai Bot commented Jun 16, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The changes remove the "changeIdType" experimental feature from both the codebase and associated tests. All logic, checks, and test configurations related to enabling or requiring this feature have been deleted. The code and tests now operate without referencing or depending on the "changeIdType" experimental flag.

Changes

File(s) Change Summary
tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart Removed validation check requiring the "changeIdType" experimental feature for changing id type.
tools/serverpod_cli/lib/src/config/experimental_feature.dart Removed the changeIdType member from the ExperimentalFeature enum.
tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/* Removed imports and config enabling for changeIdType experimental feature in integer default tests.
tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/* Removed imports and config enabling for changeIdType experimental feature in UUID default tests.
tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_id_type_test.dart Removed import, config enabling, and test case for missing changeIdType experimental feature.
tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_persist_test.dart Removed import and config enabling for changeIdType experimental feature in persist field test.
tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_scope_test.dart Removed import and config enabling for changeIdType experimental feature in scope field test.
tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/relation/*id_type_test.dart Removed import and config enabling for changeIdType experimental feature in relation id type test.

Sequence Diagram(s)

Not applicable; the changes are limited to feature flag removal and related validation/test configuration cleanup, with no new or modified control flow.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0c5d9e4 and 6795a08.

📒 Files selected for processing (12)
  • tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart (0 hunks)
  • tools/serverpod_cli/lib/src/config/experimental_feature.dart (1 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_model_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_persist_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_model_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_persist_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_id_type_test.dart (1 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_persist_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_scope_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/relation/relation_changed_field_id_type_test.dart (1 hunks)
💤 Files with no reviewable changes (9)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_scope_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_model_test.dart
  • tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_persist_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_persist_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_persist_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_model_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_test.dart
🚧 Files skipped from review as they are similar to previous changes (3)
  • tools/serverpod_cli/lib/src/config/experimental_feature.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/relation/relation_changed_field_id_type_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_id_type_test.dart
⏰ Context from checks skipped due to timeout of 90000ms (58)
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.32.1
  • GitHub Check: Serverpod concurrent integration tests (server) (3.32.1)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.24.0
  • GitHub Check: serverpod generate (3.24.0)
  • GitHub Check: Serverpod integration tests (flutter)
  • GitHub Check: Migration e2e tests (3.24.0)
  • GitHub Check: update pubspecs (3.24.0)
  • GitHub Check: update pubspecs (3.32.1)
  • GitHub Check: Bootstrap tests (3.32.1, windows-latest, tests/bootstrap_project)
  • GitHub Check: CLI e2e tests (3.32.1, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: CLI e2e tests (3.24.0, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: Bootstrap tests (3.32.1, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: Migration e2e tests (3.32.1)
  • GitHub Check: Bootstrap tests (3.24.0, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: Serverpod integration tests (server) (3.24.0)
  • GitHub Check: Serverpod integration tests (server) (3.32.1)
  • GitHub Check: Serverpod E2E IO tests (3.32.1)
  • GitHub Check: Bootstrap tests (3.24.0, windows-latest, tests/bootstrap_project)
  • GitHub Check: Serverpod E2E IO tests (3.24.0)
  • GitHub Check: serverpod generate (3.32.1)
  • GitHub Check: Serverpod E2E web tests (3.24.0)
  • GitHub Check: Version change test
  • GitHub Check: Flutter unit tests (3.32.1, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Serverpod E2E web tests (3.32.1)
  • GitHub Check: Flutter unit tests (3.32.1, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Serverpod integration tests (3.32.1, packages/serverpod_shared)
  • GitHub Check: Flutter unit tests (3.24.0, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Unit tests Web (3.32.1, windows-latest)
  • GitHub Check: Flutter unit tests (3.24.0, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Serverpod integration tests (3.24.0, packages/serverpod_shared)
  • GitHub Check: Unit tests IO (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests IO (3.32.1, windows-latest)
  • GitHub Check: Unit tests Web (3.24.0, windows-latest)
  • GitHub Check: Unit tests Web (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests Web (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze downgrade (3.32.1, ubuntu-latest)
  • GitHub Check: Unit tests IO (3.24.0, ubuntu-latest)
  • GitHub Check: Unit tests IO (3.24.0, windows-latest)
  • GitHub Check: dart analyze downgrade (3.32.1, windows-latest)
  • GitHub Check: dart analyze downgrade (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze downgrade (3.24.0, windows-latest)
  • GitHub Check: dart analyze latest (3.32.1, windows-latest)
  • GitHub Check: dart analyze latest (3.32.1, ubuntu-latest)
  • GitHub Check: dart format (3.5.0)
  • GitHub Check: dart analyze (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze (3.24.0, windows-latest)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
tools/serverpod_cli/lib/src/config/experimental_feature.dart (1)

20-28: Provide user-friendly error for unknown feature names

fromString currently throws a raw ArgumentError. For CLI UX, printing a helpful
message (listing valid features and pointing out that UUID IDs are now default)
would be preferable.

- throw ArgumentError('Unknown experimental feature: $value');
+ throw ArgumentError(
+   'Unknown experimental feature: $value.\n'
+   'Valid values: ${ExperimentalFeature.values.map((e) => e.name).join(', ')}.\n'
+   'Note: "changeIdType" is now enabled by default and no longer needs to be specified.',
+ );
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 22d8051 and 0c5d9e4.

📒 Files selected for processing (12)
  • tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart (0 hunks)
  • tools/serverpod_cli/lib/src/config/experimental_feature.dart (1 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_model_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_persist_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_model_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_persist_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_id_type_test.dart (1 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_persist_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_scope_test.dart (0 hunks)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/relation/relation_changed_field_id_type_test.dart (1 hunks)
💤 Files with no reviewable changes (9)
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_persist_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_persist_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_persist_test.dart
  • tools/serverpod_cli/lib/src/analyzer/models/validation/restrictions.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/integer/field_int_default_model_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_scope_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_test.dart
  • tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/default/uuid/field_uuid_default_model_test.dart
⏰ Context from checks skipped due to timeout of 90000ms (56)
  • GitHub Check: Serverpod integration tests (3.32.1, packages/serverpod_shared)
  • GitHub Check: Bootstrap tests (3.24.0, ubuntu-latest, tests/bootstrap_project)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.32.1
  • GitHub Check: Serverpod integration tests (server) (3.32.1)
  • GitHub Check: Serverpod integration tests (3.24.0, packages/serverpod_shared)
  • GitHub Check: Flutter unit tests (3.32.1, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Bootstrap tests (3.32.1, windows-latest, tests/bootstrap_project)
  • GitHub Check: Migration e2e tests (3.24.0)
  • GitHub Check: Serverpod E2E web tests (3.24.0)
  • GitHub Check: Unit tests Web (3.24.0, ubuntu-latest)
  • GitHub Check: Migration e2e tests (3.32.1)
  • GitHub Check: Serverpod E2E web tests (3.32.1)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.32.1
  • GitHub Check: Bootstrap tests (3.24.0, windows-latest, tests/bootstrap_project)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.24.0
  • GitHub Check: Unit tests IO (3.32.1, windows-latest)
  • GitHub Check: Flutter unit tests (3.24.0, ubuntu-latest, packages/serverpod_flutter)
  • GitHub Check: Module integration tests in modules/serverpod_auth/serverpod_auth_server with Flutter 3.24.0
  • GitHub Check: Serverpod integration tests (server) (3.24.0)
  • GitHub Check: Flutter unit tests (3.24.0, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.32.1
  • GitHub Check: Flutter unit tests (3.32.1, windows-latest, packages/serverpod_flutter)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_module/serverpod_test_module_server with Flutter 3.32.1
  • GitHub Check: Serverpod E2E IO tests (3.32.1)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server with Flutter 3.24.0
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.32.1
  • GitHub Check: Module integration tests in tests/serverpod_test_nonvector/serverpod_test_nonvector_server with Flutter 3.24.0
  • GitHub Check: Unit tests IO (3.32.1, ubuntu-latest)
  • GitHub Check: Module integration tests in modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server with Flutter 3.24.0
  • GitHub Check: Unit tests IO (3.24.0, windows-latest)
  • GitHub Check: Serverpod E2E IO tests (3.24.0)
  • GitHub Check: Unit tests Web (3.24.0, windows-latest)
  • GitHub Check: Unit tests Web (3.32.1, windows-latest)
  • GitHub Check: Unit tests IO (3.24.0, ubuntu-latest)
  • GitHub Check: Version change test
  • GitHub Check: Serverpod concurrent integration tests (server) (3.24.0)
  • GitHub Check: Serverpod concurrent integration tests (server) (3.32.1)
  • GitHub Check: Serverpod integration tests (flutter)
  • GitHub Check: CLI e2e tests (3.24.0, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: CLI e2e tests (3.32.1, ubuntu-latest, tests/serverpod_cli_e2e_test)
  • GitHub Check: dart analyze downgrade (3.32.1, ubuntu-latest)
  • GitHub Check: update pubspecs (3.32.1)
  • GitHub Check: update pubspecs (3.24.0)
  • GitHub Check: serverpod generate (3.24.0)
  • GitHub Check: serverpod generate (3.32.1)
  • GitHub Check: dart analyze downgrade (3.24.0, windows-latest)
  • GitHub Check: dart analyze (3.24.0, windows-latest)
  • GitHub Check: dart analyze (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze latest (3.32.1, ubuntu-latest)
  • GitHub Check: dart analyze downgrade (3.32.1, windows-latest)
  • GitHub Check: dart analyze downgrade (3.24.0, ubuntu-latest)
  • GitHub Check: dart analyze latest (3.32.1, windows-latest)
  • GitHub Check: Validate PR title
🔇 Additional comments (3)
tools/serverpod_cli/lib/src/config/experimental_feature.dart (1)

18-18: ```shell
#!/bin/bash

Display the ExperimentalFeature enum definition and look for any references to 'changeIdType'

echo "=== ExperimentalFeature enum in experimental_feature.dart ==="
sed -n '1,200p' tools/serverpod_cli/lib/src/config/experimental_feature.dart | sed -n '1,30p'
rg -n "enum ExperimentalFeature" -n tools/serverpod_cli/lib/src/config/experimental_feature.dart
echo

Search for parsing logic and any mention of 'changeIdType'

echo "=== Parsing logic and changeIdType occurrences ==="
rg -n "changeIdType" -n tools/serverpod_cli/lib/src/config/experimental_feature.dart || echo "No matches for 'changeIdType'"
rg -n "fromString" -n tools/serverpod_cli/lib/src/config/experimental_feature.dart || echo "No matches for fromString"
rg -n "valueOf" -n tools/serverpod_cli/lib/src/config/experimental_feature.dart || echo "No matches for valueOf"


</details>
<details>
<summary>tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/relation/relation_changed_field_id_type_test.dart (1)</summary>

`10-10`: **Config no longer enables experimental flag – looks good**

The test now relies on default behaviour, reflecting that UUID support is fully integrated.  
No other changes needed.

</details>
<details>
<summary>tools/serverpod_cli/test/analyzer/models/stateful_analyzer/model_validation/field/field_id_type_test.dart (1)</summary>

`10-10`: **Updated configuration aligns with new default – LGTM**

Removing the obsolete experimental feature from the `GeneratorConfig` keeps the test relevant and passes as expected.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@SandPod
SandPod force-pushed the 3255-uuid-out-from-experimental branch from 0c5d9e4 to 6795a08 Compare June 16, 2025 14:59
@SandPod
SandPod requested review from nielsenko and tp June 17, 2025 06:51

@tp tp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, nice with the enum that we can so easily clean up all the cases :)

@SandPod
SandPod merged commit fe3dcae into serverpod:main Jun 17, 2025
@SandPod
SandPod deleted the 3255-uuid-out-from-experimental branch June 17, 2025 07:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Option to use UUIDs as primary keys

2 participants