Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Umbraco.Cms.Infrastructure.Examine;

internal class ExamineIndexRebuilder : IIndexRebuilder
public class ExamineIndexRebuilder : IIndexRebuilder
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Making the class public is insufficient for proper extensibility. The private methods CanRun(), RebuildIndex(string, TimeSpan, CancellationToken), RebuildIndexes(bool, TimeSpan, CancellationToken), and ShouldRebuild(IIndex) should also be changed to protected virtual to allow derived classes to override the rebuild behavior. Without this, developers cannot override critical rebuild logic for scenarios like excluding certain server roles or handling persisted indexes in managed search services as mentioned in the PR description.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is unnecessary, by implementing the IIndexRebuilder and explicitly implementing any methods on that interface will effectively override the members on the base class, no need to declare virtual.

{
private const string RebuildAllOperationTypeName = "RebuildAllExamineIndexes";

Expand Down
Loading