Repository navigation
chore: Mark most methods in Database as internal - #3741
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThe changes introduce the Changes
Sequence Diagram(s)sequenceDiagram
participant UserCode
participant Session
participant Database
UserCode->>Session: Access db
Session->>Database: Call internal method (e.g., find, insert, delete)
Database-->>Session: Result
Session-->>UserCode: Result
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were found. 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
a7d64a4 to
ccef2e7
Compare
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (12)
packages/serverpod/lib/src/database/database.dart (1)
54-66: Docs now reference an internal API – update or move examples.All high-level docs (e.g. examples mentioning
var myRows = await session.db.find<MyRow>();) still encourage direct use of these methods, but they are now annotated
@internal.
Consider either:- /// var myRow = session.db.findById<MyClass>(myId); + /// INTERNAL – do not call from application code. Use the generated + /// protocol helpers instead, e.g. `MyClass.db.findById(...)`.Or move end-user examples to a public helper layer to avoid conflicting guidance.
modules/serverpod_auth/serverpod_auth_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Redundant per-file ignore once global rule lands.
analysis_options.yamlalready disablesinvalid_use_of_internal_member; you can remove the extra ignore here to prevent rule drift when the global setting changes.modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Same note as above – consider dropping this local ignore.modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Local suppression may be unnecessary.If project-wide analysis already ignores
invalid_use_of_internal_member, you can remove this line for noiseless generated diffs.modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Duplicate ignore directive.Same remark: drop if covered globally; keep only if you intend to re-enable the rule elsewhere.
modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Local suppression is harmless but redundant with globalanalysis_options.yamlignoreProject-level analysis options already disable
invalid_use_of_internal_member. Keeping the per-file directive is fine, yet it clutters every generated file without adding protection. Consider dropping it and relying on the global rule to keep headers minimal.modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Same redundancy comment as aboveThis file repeats the local ignore even though the lint is globally disabled. Safe but noisy; trim if possible.
modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Redundant lint ignoreSee earlier note—global suppression makes this unnecessary.
modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Redundant lint ignoreConsistent with other generated test helpers; can be removed for brevity.
modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_server/test/integration/test_tools/serverpod_test_tools.dart (1)
10-10: Redundant lint ignoreSame observation—safe but superfluous given project-wide configuration.
packages/serverpod_test/analysis_options.yaml (1)
13-15: Global lint suppression may hide legitimate API misuseBlanket-ignoring
invalid_use_of_internal_memberfor the whole package makes it easy for non-test code to start depending on internal APIs without being noticed.
Prefer confining the suppression to:
- Individual call sites (
// ignore:comments), or- A dedicated
include: analysis_options_test.yamlthat is only referenced by test targets.This keeps accidental production usage visible.
modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/business/auth_sessions_admin.dart (1)
33-37: RawunsafeQuerycan be replaced by a safe, composable helperGood call narrowing the lint ignore to just this line, but the direct string-built SQL:
await session.db.unsafeQuery('DELETE FROM … < \'${SerializationManager.encode(clock.now())}\'')has a few drawbacks:
• No static checking / automatic column-name escaping
• Harder for tools to refactor or migrate
• Potential SQL-injection surface if future variables slip in un-sanitisedIf
deleteWherecannot express the interval logic yet, consider adding a typed helper toDatabase(e.g.deleteUsingRawCondition) that still takes a parameterised condition and value list, or extend the ORM to supportNOW() - INTERVALsemantics. This keeps internal use but avoids hand-rolled SQL strings.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (287)
examples/auth_example/auth_example_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**examples/auth_example/auth_example_client/lib/src/protocol/example.dartis excluded by!**/lib/src/protocol/**examples/auth_example/auth_example_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**examples/auth_example/auth_example_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**examples/auth_example/auth_example_server/lib/src/generated/example.dartis excluded by!**/generated/**examples/auth_example/auth_example_server/lib/src/generated/protocol.dartis excluded by!**/generated/**examples/chat/chat_client/lib/src/protocol/channel.dartis excluded by!**/lib/src/protocol/**examples/chat/chat_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**examples/chat/chat_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**examples/chat/chat_server/lib/src/generated/channel.dartis excluded by!**/generated/**examples/chat/chat_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**examples/chat/chat_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_login_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_login_failure_reason.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_password_policy_violation_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_password_reset_request_expired_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_password_reset_request_not_found_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_password_reset_request_too_many_attempts_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_password_reset_request_unauthorized_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_password_reset_too_many_attempts_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_request_expired_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_request_not_found_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_request_not_verified_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_request_too_many_attempts_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/exceptions/email_account_request_unauthorized_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account_failed_login_attempt.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account_password_reset_attempt.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account_password_reset_request.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account_password_reset_request_attempt.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account_request.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/email_account_request_completion_attempt.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_login_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_login_failure_reason.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_password_policy_violation_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_password_reset_request_expired_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_password_reset_request_not_found_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_password_reset_request_too_many_attempts_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_password_reset_request_unauthorized_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_password_reset_too_many_attempts_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_request_expired_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_request_not_found_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_request_not_verified_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_request_too_many_attempts_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/exceptions/email_account_request_unauthorized_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/authentication_token_info.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/refresh_token_expired_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/refresh_token_invalid_secret_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/refresh_token_malformed_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/refresh_token_not_found_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_client/lib/src/protocol/token_pair.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/authentication_token_info.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/refresh_token.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/refresh_token_expired_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/refresh_token_invalid_secret_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/refresh_token_malformed_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/refresh_token_not_found_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/lib/src/generated/token_pair.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/generated/migrated_user.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_client/lib/src/protocol/user_profile_model.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/lib/src/generated/user_profile.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/lib/src/generated/user_profile_data.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/lib/src/generated/user_profile_image.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/lib/src/generated/user_profile_model.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_client/lib/src/protocol/auth_session_info.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_client/lib/src/protocol/auth_success.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/generated/auth_session.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/generated/auth_session_info.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/generated/auth_success.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_client/lib/src/protocol/auth_user_blocked_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_client/lib/src/protocol/auth_user_model.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_client/lib/src/protocol/auth_user_not_found_exception.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/lib/src/generated/auth_user.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/lib/src/generated/auth_user_blocked_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/lib/src/generated/auth_user_model.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/lib/src/generated/auth_user_not_found_exception.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/apple_auth_info.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/auth_key.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/authentication_fail_reason.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/authentication_response.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/email_auth.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/email_create_account_request.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/email_failed_sign_in.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/email_password_reset.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/email_reset.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/google_refresh_token.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/user_image.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/user_info.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/user_info_public.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_client/lib/src/protocol/user_settings_config.dartis excluded by!**/lib/src/protocol/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/apple_auth_info.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/auth_key.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/authentication_fail_reason.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/authentication_response.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/email_auth.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/email_create_account_request.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/email_failed_sign_in.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/email_password_reset.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/email_reset.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/google_refresh_token.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/protocol.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/user_image.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/user_info.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/user_info_public.dartis excluded by!**/generated/**modules/serverpod_auth/serverpod_auth_server/lib/src/generated/user_settings_config.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_join_channel.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_join_channel_failed.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_joined_channel.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_leave_channel.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_message.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_message_attachment.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_message_attachment_upload_description.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_message_chunk.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_message_post.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_read_message.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/chat_request_message_chunk.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_join_channel.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_join_channel_failed.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_joined_channel.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_leave_channel.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_message.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_message_attachment.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_message_attachment_upload_description.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_message_chunk.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_message_post.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_read_message.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/chat_request_message_chunk.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/endpoints.dartis excluded by!**/generated/**modules/serverpod_chat/serverpod_chat_server/lib/src/generated/protocol.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/authentication/revoked_authentication_auth_id.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/authentication/revoked_authentication_scope.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/authentication/revoked_authentication_user.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/cache_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/caches_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/cloud_storage.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/cloud_storage_direct_upload.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/cluster_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/cluster_server_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/bulk_data.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/bulk_data_exception.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/bulk_query_column_description.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/bulk_query_result.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/column_definition.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/column_migration.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/column_type.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_definition.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_definitions.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_migration.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_migration_action.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_migration_action_type.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_migration_version.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_migration_warning.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/database_migration_warning_type.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/enum_serialization.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/filter/filter.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/filter/filter_constraint.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/filter/filter_constraint_type.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/foreign_key_action.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/foreign_key_definition.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/foreign_key_match_type.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/index_definition.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/index_element_definition.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/index_element_definition_type.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/table_definition.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/table_migration.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/database/vector_distance_function.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/distributed_cache_entry.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/endpoints.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/exceptions/access_denied.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/exceptions/file_not_found.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/future_call_entry.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/log_entry.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/log_level.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/log_result.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/log_settings.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/log_settings_override.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/message_log_entry.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/method_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/protocol.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/query_log_entry.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/readwrite_test.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/runtime_settings.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/server_health_connection_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/server_health_metric.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/server_health_result.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/serverpod_sql_exception.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/session_log_entry.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/session_log_filter.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/session_log_info.dartis excluded by!**/generated/**packages/serverpod/lib/src/generated/session_log_result.dartis excluded by!**/generated/**packages/serverpod_service_client/lib/src/protocol/cache_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/caches_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/cloud_storage.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/cloud_storage_direct_upload.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/cluster_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/cluster_server_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/bulk_data.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/bulk_data_exception.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/bulk_query_column_description.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/bulk_query_result.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/column_definition.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/column_migration.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/column_type.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_definition.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_definitions.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_migration.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_migration_action.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_migration_action_type.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_migration_version.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_migration_warning.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/database_migration_warning_type.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/enum_serialization.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/filter/filter.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/filter/filter_constraint.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/filter/filter_constraint_type.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/foreign_key_action.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/foreign_key_definition.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/foreign_key_match_type.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/index_definition.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/index_element_definition.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/index_element_definition_type.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/table_definition.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/table_migration.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/database/vector_distance_function.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/distributed_cache_entry.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/exceptions/access_denied.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/exceptions/file_not_found.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/future_call_entry.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/log_entry.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/log_level.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/log_result.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/log_settings.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/log_settings_override.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/message_log_entry.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/method_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/query_log_entry.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/readwrite_test.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/runtime_settings.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/server_health_connection_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/server_health_metric.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/server_health_result.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/serverpod_sql_exception.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/session_log_entry.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/session_log_filter.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/session_log_info.dartis excluded by!**/lib/src/protocol/**packages/serverpod_service_client/lib/src/protocol/session_log_result.dartis excluded by!**/lib/src/protocol/**tests/serverpod_new_auth_test/serverpod_new_auth_test_client/lib/src/protocol/client.dartis excluded by!**/lib/src/protocol/**tests/serverpod_new_auth_test/serverpod_new_auth_test_client/lib/src/protocol/protocol.dartis excluded by!**/lib/src/protocol/**
📒 Files selected for processing (13)
modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/business/auth_sessions_admin.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)modules/serverpod_auth/serverpod_auth_server/analysis_options.yaml(1 hunks)modules/serverpod_auth/serverpod_auth_server/test/integration/test_tools/serverpod_test_tools.dart(1 hunks)packages/serverpod/lib/src/database/database.dart(17 hunks)packages/serverpod_test/analysis_options.yaml(1 hunks)
🧰 Additional context used
🧠 Learnings (12)
modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/test/integration/test_tools/serverpod_test_tools.dart (6)
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/business/auth_migration_email.dart:13-13
Timestamp: 2025-06-19T11:07:03.756Z
Learning: Always check that documentation comments (///) on public classes and methods do not exceed 80 characters per line in Serverpod projects. Comments should be broken into multiple lines when they exceed this limit to maintain code style consistency. This applies to all production code files, though tests may be more flexible.
modules/new_serverpod_auth/serverpod_auth_profile/serverpod_auth_profile_server/test/integration/test_tools/serverpod_test_tools.dart (7)
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/business/auth_migration_email.dart:13-13
Timestamp: 2025-06-19T11:07:03.756Z
Learning: Always check that documentation comments (///) on public classes and methods do not exceed 80 characters per line in Serverpod projects. Comments should be broken into multiple lines when they exceed this limit to maintain code style consistency. This applies to all production code files, though tests may be more flexible.
modules/new_serverpod_auth/serverpod_auth_email/serverpod_auth_email_server/test/integration/test_tools/serverpod_test_tools.dart (6)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/business/auth_migration_email.dart:13-13
Timestamp: 2025-06-19T11:07:03.756Z
Learning: Always check that documentation comments (///) on public classes and methods do not exceed 80 characters per line in Serverpod projects. Comments should be broken into multiple lines when they exceed this limit to maintain code style consistency. This applies to all production code files, though tests may be more flexible.
modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/lib/src/business/auth_sessions_admin.dart (4)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
modules/new_serverpod_auth/serverpod_auth_session/serverpod_auth_session_server/test/integration/test_tools/serverpod_test_tools.dart (6)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
modules/serverpod_auth/serverpod_auth_server/test/integration/test_tools/serverpod_test_tools.dart (8)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
Learnt from: tp
PR: serverpod/serverpod#3651
File: tests/serverpod_new_auth_test/serverpod_new_auth_test_server/test/integration/email_account_endpoint_test.dart:1-1
Timestamp: 2025-06-19T11:00:17.085Z
Learning: In Serverpod applications, methods that rely on public asset storage (like setUserImage/removeUserImage) should be tested in E2E tests rather than withServerpod integration tests, as they require a full server environment with asset storage infrastructure to properly test image upload/download functionality.
Learnt from: tp
PR: serverpod/serverpod#3651
File: modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/lib/src/business/email_accounts.dart:35-39
Timestamp: 2025-06-16T12:07:26.018Z
Learning: The `withServerpod` test helper runs tests within a transaction, which may require adapting database queries to accept transaction parameters for proper snapshot consistency during testing.
modules/new_serverpod_auth/serverpod_auth_google_account/serverpod_auth_google_account_server/test/integration/test_tools/serverpod_test_tools.dart (6)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
modules/new_serverpod_auth/serverpod_auth_email_account/serverpod_auth_email_account_server/test/integration/test_tools/serverpod_test_tools.dart (5)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/config/passwords.yaml:12-15
Timestamp: 2025-06-17T13:07:46.465Z
Learning: Configuration keys in Serverpod that contain dots (like `serverpod_auth_email_account.passwordHashPepper`) need to be renamed to use underscores or other valid characters because the system needs to support overriding configuration keys and passwords via environment variables, and BASH environment variable names cannot contain dots.
modules/serverpod_auth/serverpod_auth_server/analysis_options.yaml (2)
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
modules/new_serverpod_auth/serverpod_auth_user/serverpod_auth_user_server/test/integration/test_tools/serverpod_test_tools.dart (9)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/business/auth_migration_email.dart:13-13
Timestamp: 2025-06-19T11:07:03.756Z
Learning: Always check that documentation comments (///) on public classes and methods do not exceed 80 characters per line in Serverpod projects. Comments should be broken into multiple lines when they exceed this limit to maintain code style consistency. This applies to all production code files, though tests may be more flexible.
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
Learnt from: tp
PR: serverpod/serverpod#3651
File: tests/serverpod_new_auth_test/serverpod_new_auth_test_server/test/integration/email_account_endpoint_test.dart:1-1
Timestamp: 2025-06-19T11:00:17.085Z
Learning: In Serverpod applications, methods that rely on public asset storage (like setUserImage/removeUserImage) should be tested in E2E tests rather than withServerpod integration tests, as they require a full server environment with asset storage infrastructure to properly test image upload/download functionality.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/lib/src/business/auth_migration_email.dart:13-13
Timestamp: 2025-06-19T11:07:03.756Z
Learning: Always check that documentation comments (///) on public classes and methods do not exceed 80 characters per line in Serverpod projects. Comments should be broken into multiple lines when they exceed this limit to maintain code style consistency.
modules/new_serverpod_auth/serverpod_auth_jwt/serverpod_auth_jwt_server/test/integration/test_tools/serverpod_test_tools.dart (7)
Learnt from: tp
PR: serverpod/serverpod#3672
File: tests/serverpod_test_server/test_integration/test_tools/test_session_builder_test.dart:10-30
Timestamp: 2025-06-18T14:49:11.263Z
Learning: In Serverpod test files, tp prefers using nullable late variables for AuthenticationInfo in tests (e.g., `late AuthenticationInfo? authenticationInfo;`) rather than non-nullable ones to avoid using `!` operators and to get clearer error messages when authentication setup fails. This provides better diagnostics when `session.authenticated` returns null.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: Changes to README.md and CHANGELOG.md files made by the util/update_pubspecs script can be safely ignored during code review, as these files are auto-generated by copying from a single source rather than being manually authored.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:40:09.088Z
Learning: CHANGELOG.md files in the serverpod_auth_migration modules (client and server) are auto-generated and cannot be manually modified during the development process.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_server/README.md:3-8
Timestamp: 2025-06-17T11:34:13.289Z
Learning: The README.md files in the serverpod_auth_migration module directories are auto-generated and get overwritten by utility scripts, so manual updates should be avoided until proper documentation is added during feature rollout.
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
Learnt from: tp
PR: serverpod/serverpod#3651
File: tests/serverpod_new_auth_test/serverpod_new_auth_test_server/test/integration/email_account_endpoint_test.dart:1-1
Timestamp: 2025-06-19T11:00:17.085Z
Learning: In Serverpod applications, methods that rely on public asset storage (like setUserImage/removeUserImage) should be tested in E2E tests rather than withServerpod integration tests, as they require a full server environment with asset storage infrastructure to properly test image upload/download functionality.
Learnt from: tp
PR: serverpod/serverpod#3666
File: modules/new_serverpod_auth/serverpod_auth_migration/serverpod_auth_migration_client/CHANGELOG.md:1-7
Timestamp: 2025-06-17T11:44:37.288Z
Learning: The util/update_pubspecs script automatically copies the root CHANGELOG.md to all packages/modules and README_subpackage.md to all modules as README.md. These file changes should be ignored during code review as they are auto-generated distribution of shared content, not manual authoring that requires review.
packages/serverpod/lib/src/database/database.dart (1)
Learnt from: tp
PR: serverpod/serverpod#3721
File: util/pub_get_all:0-0
Timestamp: 2025-06-27T08:39:36.440Z
Learning: In the Serverpod project, `dart pub get` commands work fine on Flutter packages both locally and in CI environments, even when the package has `flutter: sdk: flutter` dependencies in pubspec.yaml. The technical constraint of Flutter SDK dependencies causing `dart pub` failures may not apply in all environments or recent Dart versions.
⏰ Context from checks skipped due to timeout of 90000ms (7)
- GitHub Check: Migration e2e tests (3.24.0)
- GitHub Check: Migration e2e tests (3.32.1)
- GitHub Check: Serverpod integration tests (server) (3.24.0)
- GitHub Check: Serverpod integration tests (server) (3.32.1)
- GitHub Check: Serverpod E2E web tests (3.32.1)
- GitHub Check: Serverpod E2E web tests (3.24.0)
- GitHub Check: Unit tests IO (3.24.0, windows-latest)
🔇 Additional comments (1)
packages/serverpod/lib/src/database/database.dart (1)
3-3: Ensuremetais declared as a regular dependency.
@internalcomes frompackage:meta/meta.dart. Verify that every package depending onserverpod(not only dev-time) hasmetain itsdependenciessection; otherwise downstream consumers may hit a runtime class-loading error in production builds.
Isakdl
left a comment
There was a problem hiding this comment.
I think Timm has a point on the unsafe queries they should still be exposed!
Could you take a look at the docs repo as well making sure we are not recommending session.db.(...); anywhere!
Lastly can you please rebase this PR and separate all generated code from manual edits. Never commit your manual changes together with generated code. It is very hard to see what has changed when they are grouped.
dd38f89 to
923488a
Compare
|
@Isakdl I rebased it. Commits should be cleaner now. As for your doc question, only one place I found is https://docs.serverpod.dev/upgrading/upgrade-to-two#removed-deprecated-fields |
923488a to
0c71312
Compare
tp
left a comment
There was a problem hiding this comment.
LGTM.
Just a small nit on the test server.
I think opting out of the lint in all generated code is fine, though as came up in another issue it might even be misleading, as our lint might not match what the developer uses, and thus there might always be violations. In that case the only reasonable approach is (for them and us) to ignore the generated files outright, where we would not need any "ignore for file"s anymore.
But we can align that with the other ticket (might also be a breaking change, as developers on old templates might need to update their analysis options).
Isakdl
left a comment
There was a problem hiding this comment.
Two smaller change requests, and I wonder what tests we have that are using the session api. Are they still relevant to keep around?
We should mark most
session.db.*as internal as they are primarily used internally and users should be discouraged from using them directlyCloses #3669
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Summary by CodeRabbit