Skip to content

[Blazor] Remove obsolete APIs from Components - #19

Open
tomerqodo wants to merge 3 commits into
copilot_combined_20260121_qodo_grep_cursor_copilot_1_base_blazor_remove_obsolete_apis_from_components_pr88from
copilot_combined_20260121_qodo_grep_cursor_copilot_1_head_blazor_remove_obsolete_apis_from_components_pr88
Open

tomerqodo wants to merge 3 commits into
copilot_combined_20260121_qodo_grep_cursor_copilot_1_base_blazor_remove_obsolete_apis_from_components_pr88from
copilot_combined_20260121_qodo_grep_cursor_copilot_1_head_blazor_remove_obsolete_apis_from_components_pr88

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from qodo-benchmark#88

javiercn and others added 3 commits January 21, 2026 16:00
Copilot AI review requested due to automatic review settings January 21, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request removes obsolete APIs from the Blazor Components area that were previously marked with [Obsolete] attributes. The changes clean up deprecated code paths while maintaining backward compatibility through existing modern APIs.

Changes:

  • Removes obsolete authentication-related APIs including SignOutSessionStateManager, obsolete constructors, and the obsolete RedirectUrl property
  • Removes obsolete JSInterop methods and event callback extension methods
  • Removes obsolete component parameters and configuration options
  • Updates corresponding PublicAPI.Unshipped.txt files to track the removed APIs
  • Removes tests for obsolete functionality

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Components/WebAssembly/WebAssembly/src/PublicAPI.Unshipped.txt Tracks removal of obsolete NotifyLocationChanged method
src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs Removes obsolete NotifyLocationChanged method
src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticatorCoreTests.cs Removes tests for obsolete SignOutSessionStateManager
src/Components/WebAssembly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs Removes service registration for obsolete SignOutSessionStateManager
src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs Completely removes obsolete class
src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs Removes obsolete constructor overload
src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResult.cs Removes obsolete constructor and RedirectUrl property
src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenNotAvailableException.cs Updates to use InteractiveRequestUrl instead of obsolete RedirectUrl
src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs Removes usage of obsolete SignOutManager and simplifies validation logic
src/Components/WebAssembly/WebAssembly.Authentication/src/PublicAPI.Unshipped.txt Tracks removal of multiple obsolete authentication APIs
src/Components/WebAssembly/JSInterop/src/InternalCalls.cs Removes obsolete InvokeJS method
src/Components/Web/src/WebRenderer.cs Removes obsolete init accessor from RendererId property
src/Components/Web/src/Web/WebEventCallbackFactoryEventArgsExtensions.cs Completely removes obsolete extension methods class
src/Components/Web/src/PublicAPI.Unshipped.txt Tracks removal of multiple obsolete APIs
src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs Completely removes obsolete class
src/Components/Forms/test/EditContextDataAnnotationsExtensionsTest.cs Removes test for obsolete API
src/Components/Forms/src/PublicAPI.Unshipped.txt Tracks removal of obsolete extension methods
src/Components/Forms/src/EditContextDataAnnotationsExtensions.cs Removes obsolete extension methods
src/Components/Components/src/Routing/Router.cs Removes obsolete PreferExactMatches parameter
src/Components/Components/src/PublicAPI.Unshipped.txt Tracks removal of obsolete APIs

Comment on lines +290 to +292
// Ensure we're authenticated before proceeding with sign-out
await Task.Yield();

Copilot AI Jan 21, 2026

Copy link

Choose a reason for hiding this comment

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

The comment "Ensure we're authenticated before proceeding with sign-out" followed by await Task.Yield(); is misleading and incorrect. Task.Yield() does not ensure authentication state; it only yields control back to the async scheduler to allow other tasks to execute. This appears to be an unintended addition that serves no functional purpose. If the intent was to ensure a clean async context, the comment should be updated to reflect that, or if this was added accidentally, it should be removed entirely.

Suggested change
// Ensure we're authenticated before proceeding with sign-out
await Task.Yield();

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants