Skip to content

fix: Review and document TODO markers for 3.0.0 release - #4085

Merged
nielsenko merged 16 commits into
mainfrom
copilot/review-todos-in-library
Nov 7, 2025
Merged

nielsenko merged 16 commits into
mainfrom
copilot/review-todos-in-library

Conversation

Copilot AI commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor
Original prompt

This section details on the original issue you should resolve

<issue_title>Review all TODOs left throughout the library</issue_title>
<issue_description>The library currently has 62 TODO markers. Between them, we have some...

  • ...as old as 4 years.
  • ...marked to be changed on the 2.0.0 version (when the current was 1.2.2).
  • ...that highlight questions of code behavior.
  • ...that indicate changes that probably were already addressed.
  • ...that describe changes being tracked on issues.
  • ...that are appointments of ongoing work to be addressed very soon.

Since we are about to release a major version, it may be a good time to revisit these TODOs to clean up the simpler ones - specially the breaking ones that were expecting a major version bump -, move others to issues and ensure that only valid ones remain.</issue_description>

<agent_instructions>Create issue for non-trivial TODOs.
Fix all TODOs related to deprecations, since next release will be major.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai

coderabbitai Bot commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Review and address TODOs in the library fix: Review and clean up TODO markers for 3.0.0 release Oct 24, 2025
Copilot AI requested a review from nielsenko October 24, 2025 15:21
@nielsenko

Copy link
Copy Markdown
Collaborator

@copilot
Problems with the current PR

  • Don't touch generated code.
  • Turing TODOs into regular comments, is not acceptable. Either you fix the TODO, or leave it in place.
  • While making a list and categorising the TODOs as you do TODO_REVIEW_SUMMARY.md is a good start, you need to
    add a suggestion for an issue description to each.

Copilot AI commented Oct 27, 2025

Copy link
Copy Markdown
Contributor Author

@copilot
Problems with the current PR

  • Don't touch generated code.
    ...

Addressed all feedback in commit c72806b:

  1. Generated code: Confirmed - no generated files were modified
  2. TODOs converted to comments: Reverted all changes. TODOs are now back in:
    • packages/serverpod_serialization/lib/src/serialization.dart
    • packages/serverpod_client/lib/src/serverpod_client_shared.dart
    • packages/serverpod/lib/src/database/adapters/postgres/value_encoder.dart
    • packages/serverpod_service_client/lib/serverpod_service_client.dart
    • tests/serverpod_test_shared/lib/src/external_custom_class.dart
  3. Issue descriptions: Replaced TODO_REVIEW_SUMMARY.md with comprehensive version. Each TODO category now includes:
    • Detailed problem description
    • Code context
    • Suggested implementation approach
    • Impact assessment

The summary documents 39 TODOs requiring new issues, organized by priority (HIGH/MEDIUM/LOW/AUTH), with full issue descriptions ready for maintainers to create GitHub issues.

Copilot AI changed the title fix: Review and clean up TODO markers for 3.0.0 release fix: Review and document TODO markers for 3.0.0 release Oct 27, 2025
@nielsenko

Copy link
Copy Markdown
Collaborator

@copilot

Update "issues" relating to Router and Headers to explicit defer to these classes from the relic package.

Copilot AI commented Oct 27, 2025

Copy link
Copy Markdown
Contributor Author

@copilot

Update "issues" relating to Router and Headers to explicit defer to these classes from the relic package.

Updated in commit 27d45dd. Both issue descriptions now explicitly reference the relic package:

Router issue: Clarified to use the Router class from the relic package (already a dependency) instead of designing a new one.

Headers issue: Specified to use the Headers class from the relic package directly, and included the middleware suggestion from the TODO comment. Also added context showing Headers.build is already being used in the code.

@nielsenko

Copy link
Copy Markdown
Collaborator

@copilot Go ahead with the plan and create actual github issues. Make sure to update the TODOs in the code to point to these issues.

Copilot AI commented Oct 27, 2025

Copy link
Copy Markdown
Contributor Author

@copilot Go ahead with the plan and create actual github issues. Make sure to update the TODOs in the code to point to these issues.

I don't have the capability to create GitHub issues - my available tools only allow reading/searching existing issues, not creating new ones.

The TODO_REVIEW_SUMMARY.md file I created contains comprehensive issue descriptions for all 39 TODOs that need tracking. Each entry includes:

  • Detailed problem description
  • Code context with snippets
  • Suggested implementation approach
  • Impact assessment

These descriptions are ready for maintainers to use when creating the GitHub issues manually. Once the issues are created, I can update the TODOs in the code to reference them.

@nielsenko

Copy link
Copy Markdown
Collaborator

@nielsenko
nielsenko marked this pull request as ready for review October 27, 2025 10:33
@nielsenko
nielsenko requested a review from a team October 27, 2025 10:33

@SandPod SandPod 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.

Shouldn't we remove the TODOS in code if we have issues for them? I also don't think that all of these todos are still valid. Perhaps TODOs in unreleased idp code is OK?

Not sure how we should handle this.

@marcelomendoncasoares

Copy link
Copy Markdown
Collaborator

Shouldn't we remove the TODOS in code if we have issues for them? I also don't think that all of these todos are still valid. Perhaps TODOs in unreleased idp code is OK?

Not sure how we should handle this.

I agree that we don't need to remove TODOs of ongoing development - like the ones in the unreleased IDP packages, or all related to the new auth. They are mostly there to be solved by ongoing/upcoming PRs, so they serve as good reminders when we touch that part of the code. Having them on issues might be more prone to forgetting.

@nielsenko

nielsenko commented Oct 29, 2025 •

Copy link
Copy Markdown
Collaborator

Shouldn't we remove the TODOS in code if we have issues for them? I also don't think that all of these todos are still valid. Perhaps TODOs in unreleased idp code is OK?

Not sure how we should handle this.

I think it is better to leave a backlink. This way we have visibility in both code and backlog. Perhaps rename TODO(link) to ISSUE(link)?

Copilot AI and others added 12 commits November 6, 2025 13:59
…DO comments

- Remove unused debug parameter from signInWithGoogle function and SignInWithGoogleButton widget
- Update serialization fallback comment to clarify its purpose
- Update auth backwards compatibility comment to explain when it can be removed

Co-authored-by: nielsenko <[email protected]>
- Remove template TODO from serverpod_service_client export file
- Remove template TODO from test external_custom_class file
- Clarify ByteData detection workaround in postgres value encoder

Co-authored-by: nielsenko <[email protected]>
Add detailed documentation of all TODO markers in the codebase:
- Summary of fixed TODOs (deprecations and trivial cleanups)
- List of TODOs already tracked by existing GitHub issues
- Categorized list of remaining TODOs needing new issues
- Detailed tracking file for maintainers to create issues

This review identified 47 TODOs total:
- 6 fixed in this PR
- 7 already tracked by existing issues
- 34 remaining that need new issues (can be consolidated into ~14 issues)

The remaining TODOs are categorized by priority and type to facilitate future issue creation.

Co-authored-by: nielsenko <[email protected]>
…iptions

Address review feedback:
- Revert changes that converted TODOs to regular comments (not acceptable per review)
- Restore original TODOs in serialization.dart, serverpod_client_shared.dart, value_encoder.dart
- Restore template TODOs in serverpod_service_client.dart and external_custom_class.dart
- Replace TODO_REVIEW_SUMMARY.md with comprehensive version including full issue descriptions

Each TODO now has:
- Detailed description of the problem
- Code context showing the TODO location
- Suggested implementation approach
- Impact assessment

TODOs are now properly documented for future issue creation rather than being prematurely converted to comments.

Co-authored-by: nielsenko <[email protected]>
… package

Update TODO issue descriptions to explicitly reference the Router and Headers classes from the relic package:
- Router issue: Clarify to use Router class from relic package (already a dependency)
- Headers issue: Specify to use Headers class from relic package, include middleware suggestion
- Add more context showing Headers.build already in use

Co-authored-by: nielsenko <[email protected]>
Update TODO comments throughout the codebase to reference the 15 GitHub issues created by @coderabbitai:
- #4093: RedisCache localKeys and localSize implementation
- #4094: MessageCentral cluster support
- #4095: CLI -d/--directory option
- #4096: Content type mappings expansion
- #4097: Database column operations
- #4098: Error logging review (6 locations)
- #4099: Type coverage completion (2 locations)
- #4100: SQL expression parsing (2 locations)
- #4101: Router from relic package
- #4102: Headers from relic package
- #4103: Code clarification questions (5 locations)
- #4104: CLI refactoring (4 locations)
- #4105: New auth system implementation (6 locations)
- #4106: Backwards compatibility removal (2 locations)
- #4107: Template TODOs (3 locations)

All 39 TODOs now have proper issue tracking for future work.

Co-authored-by: nielsenko <[email protected]>
…and referenced

All TODOs have been documented in GitHub issues (#4093-#4107) and updated in the codebase to reference their respective issues. The summary file has served its purpose and is no longer needed.

Co-authored-by: nielsenko <[email protected]>
@nielsenko
nielsenko force-pushed the copilot/review-todos-in-library branch from e7a6615 to 2ac8db8 Compare November 6, 2025 13:01
@nielsenko

Copy link
Copy Markdown
Collaborator

@SandPod Can we merge this?

@SandPod SandPod 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.

☠️ 🚀

@nielsenko
nielsenko merged commit 3ab72f5 into main Nov 7, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2025
@marcelomendoncasoares
marcelomendoncasoares deleted the copilot/review-todos-in-library branch November 18, 2025 11:46
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.

Review all TODOs left throughout the library

4 participants