Remove debug logging from RRULE handling
Clean up extensive console logging that was added during RRULE debugging. Removed debug logs from: - Frontend RRULE generation in create event modal - Frontend RRULE parsing in calendar service - Weekly/monthly/yearly occurrence generation functions - Backend RRULE processing in events and series handlers The core functionality remains unchanged - this is purely a cleanup of temporary debugging output that is no longer needed. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -387,8 +387,6 @@ impl EventCreationData {
|
||||
return String::new();
|
||||
}
|
||||
|
||||
web_sys::console::log_1(&format!("🔧 Building RRULE with interval: {}, count: {:?}", self.recurrence_interval, self.recurrence_count).into());
|
||||
|
||||
let mut parts = Vec::new();
|
||||
|
||||
// Add frequency (required)
|
||||
@@ -403,9 +401,6 @@ impl EventCreationData {
|
||||
// Add interval if not 1
|
||||
if self.recurrence_interval > 1 {
|
||||
parts.push(format!("INTERVAL={}", self.recurrence_interval));
|
||||
web_sys::console::log_1(&format!("➕ Added INTERVAL={}", self.recurrence_interval).into());
|
||||
} else {
|
||||
web_sys::console::log_1(&format!("⏭️ Skipped INTERVAL (value is {})", self.recurrence_interval).into());
|
||||
}
|
||||
|
||||
// Add frequency-specific rules
|
||||
@@ -465,17 +460,11 @@ impl EventCreationData {
|
||||
if let Some(until_date) = self.recurrence_until {
|
||||
// Format as UNTIL=YYYYMMDDTHHMMSSZ
|
||||
parts.push(format!("UNTIL={}T000000Z", until_date.format("%Y%m%d")));
|
||||
web_sys::console::log_1(&format!("➕ Added UNTIL={}", until_date).into());
|
||||
} else if let Some(count) = self.recurrence_count {
|
||||
parts.push(format!("COUNT={}", count));
|
||||
web_sys::console::log_1(&format!("➕ Added COUNT={}", count).into());
|
||||
} else {
|
||||
web_sys::console::log_1(&format!("⏭️ No COUNT or UNTIL specified").into());
|
||||
}
|
||||
|
||||
let rrule = parts.join(";");
|
||||
web_sys::console::log_1(&format!("🎯 Final RRULE: {}", rrule).into());
|
||||
rrule
|
||||
parts.join(";")
|
||||
}
|
||||
|
||||
pub fn to_create_event_params(&self) -> (String, String, String, String, String, String, String, bool, String, String, Option<u8>, String, String, String, String, String, Vec<bool>, Option<String>) {
|
||||
|
||||
Reference in New Issue
Block a user