Skip to content

Conversation

@rfc2822
Copy link
Member

@rfc2822 rfc2822 commented Nov 25, 2025

No description provided.

- Change type of reports from Set<String> to Set<Property.Name>
- Update parsing logic to handle Property.Name objects
@rfc2822 rfc2822 self-assigned this Nov 25, 2025
@rfc2822 rfc2822 added the refactoring Internal improvement of existing functions label Nov 25, 2025
@rfc2822 rfc2822 requested a review from Copilot November 25, 2025 13:37
Copilot finished reviewing on behalf of rfc2822 November 25, 2025 13:40
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 pull request refactors the SupportedReportSet WebDAV property to use the strongly-typed Property.Name class instead of plain strings for representing report types. This aligns with the existing pattern used by similar properties like ResourceType.

Key changes:

  • Changed the reports field type from Set<String> to Set<Property.Name> for better type safety and consistency with the codebase
  • Simplified XML parsing logic by removing TEXT handling and keeping only START_TAG parsing, as WebDAV report types are always qualified XML element names (namespace + local name)
  • Removed the string concatenation logic that previously constructed report identifiers as "${namespace}${name}"

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

@rfc2822 rfc2822 merged commit acd9bca into main Nov 25, 2025
11 checks passed
@rfc2822 rfc2822 deleted the supported-report-type branch November 25, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Internal improvement of existing functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant