Remove LocationParsingConfiguration and LocationPatternMatcher classes, along with related tests and UI components. Update EventOccurrenceParserService to include location validation logic, enhancing warning reporting for long locations and potential date/time patterns. Adjust appsettings and UI to reflect the removal of location parsing settings.

This commit is contained in:
2026-01-09 09:10:22 -05:00
parent 2eae3f205c
commit ea1a4a04ad
9 changed files with 95 additions and 547 deletions
@@ -1,39 +0,0 @@
namespace Core.Models;
/// <summary>
/// Configuration for location parsing patterns used in event occurrence parsing.
/// Supports venue-specific room naming conventions.
/// </summary>
public class LocationParsingConfiguration
{
/// <summary>
/// List of location prefix patterns (e.g., ["Room *", "Hall *", "Conference Room *"]).
/// Patterns use "*" as wildcard to match any text after the prefix.
/// </summary>
public List<string> LocationPatterns { get; set; } = new();
/// <summary>
/// Default location parsing configuration with common patterns.
/// </summary>
public static LocationParsingConfiguration Default => new()
{
LocationPatterns = new List<string>
{
"Room *",
"Hall *",
"Exhibit Hall *",
"Conference Room *",
"Building *",
"Auditorium *",
"Mtg. Room *",
"Meeting Room *",
"Banquet Room *",
"Banquet Hall *",
"Online",
"Virtual",
"TBD"
}
};
}