Skip to content

Conversation

@rfc2822
Copy link
Member

@rfc2822 rfc2822 commented Nov 10, 2025

Because "row handler" is an existing term that indicates handling local database rows in provider source code and it's also shorter.

Also we already use the terms builder / handler for contacts (in the vcard4android legacy package).

… term that indicates handling local database rows in provider source code)
@rfc2822 rfc2822 added the refactoring Quality improvement of existing functions label Nov 10, 2025
@rfc2822 rfc2822 self-assigned this Nov 10, 2025
@rfc2822 rfc2822 requested a review from sunkup November 10, 2025 08:54
@rfc2822 rfc2822 marked this pull request as ready for review November 10, 2025 08:54
@rfc2822 rfc2822 requested a review from a team as a code owner November 10, 2025 08:54
@rfc2822 rfc2822 requested a review from Copilot November 10, 2025 08:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR performs a systematic refactoring to rename classes from *Processor to *Handler across the calendar mapping layer, along with updating the package name from processor to handler. This improves naming consistency and clarity throughout the codebase.

Key changes:

  • Renamed interface AndroidEventFieldProcessor to AndroidEventFieldHandler
  • Renamed all implementing classes (e.g., UrlProcessorUrlHandler, UidProcessorUidHandler)
  • Updated package names from at.bitfire.synctools.mapping.calendar.processor to at.bitfire.synctools.mapping.calendar.handler
  • Updated all test classes and variable names to match the new naming convention

Reviewed Changes

Copilot reviewed 47 out of 47 changed files in this pull request and generated no comments.

Show a summary per file
File Description
AndroidEventHandler.kt Updated imports and renamed main class from AndroidEventProcessor to AndroidEventHandler; renamed field fieldProcessors to fieldHandlers
AndroidEventFieldHandler.kt Renamed interface from AndroidEventFieldProcessor to AndroidEventFieldHandler
*Handler.kt (main files) Renamed all handler classes and updated package declarations
*HandlerTest.kt (test files) Renamed all test classes, updated package declarations, and renamed test variables from processor to handler
EndTimeBuilder.kt Updated KDoc reference to use new class name
Comments suppressed due to low confidence (2)

lib/src/main/kotlin/at/bitfire/synctools/mapping/calendar/handler/UidHandler.kt:17

  • The comment still references AndroidEventProcessor which has been renamed to AndroidEventHandler. Update the comment to reflect the new class name.
    lib/src/main/kotlin/at/bitfire/synctools/mapping/calendar/AndroidEventHandler.kt:223
  • The comment still references UidProcessor which has been renamed to UidHandler. Update the comment to reflect the new class name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@sunkup sunkup left a comment

Choose a reason for hiding this comment

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

There are a few comments which are missing. The ones I found are:

  • UidHandler still references AndroidEventProcessor in a comment.
  • kdoc of UnknownPropertiesHandler.EXCLUDED talks about "processors" twice
  • AndroidEventHandler mentions UidProcessor instead of UidHandler in a comment

@github-project-automation github-project-automation bot moved this from Todo to In Progress in DAVx⁵ Releases Nov 10, 2025
@rfc2822 rfc2822 requested a review from sunkup November 10, 2025 16:39
@rfc2822 rfc2822 merged commit 0bc15ea into main Nov 11, 2025
7 checks passed
@rfc2822 rfc2822 deleted the rename-processor-to-handler branch November 11, 2025 08:35
@github-project-automation github-project-automation bot moved this from In Progress to Done in DAVx⁵ Releases Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Quality improvement of existing functions

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants