Skip to content

Meeting handlers: Fix date parsing and some data failing to be indexed due to missing ID#16

Merged
emsearcy merged 2 commits intomainfrom
andrest50/fix-date-parsing
Dec 4, 2025
Merged

Meeting handlers: Fix date parsing and some data failing to be indexed due to missing ID#16
emsearcy merged 2 commits intomainfrom
andrest50/fix-date-parsing

Conversation

@andrest50
Copy link
Contributor

This pull request primarily improves the reliability and correctness of meeting data synchronization and transformation logic, especially around handling optional timestamps and session data for past meeting participants. It also introduces enhancements for recording data mapping and updates the chart version.

Meeting participant transformation improvements

  • Updated the conversion logic in convertInviteeToV2Participant and convertAttendeeToV2Participant to parse CreatedAt and ModifiedAt timestamps only if they are present, preventing errors from empty or missing fields. [1] [2] [3] [4]
  • Refactored session mapping in convertAttendeeToV2Participant to handle optional JoinTime and LeaveTime fields, ensuring robust parsing and assignment of session times.

Indexer message payload consistency

  • Changed the payload sent to the indexer in meeting and past meeting update handlers to use the full meeting object instead of the previously mapped data, ensuring consistency with expected downstream processing. [1] [2]

Past meeting recording mapping enhancements

  • Added logic to populate the v2 ID field from the v1 recording partition key, set default recording access to "meeting_hosts" if not specified, and auto-enable transcript features if transcript files are present. [1] [2]

Chart version update

  • Bumped the Helm chart version for lfx-v1-sync-helper from 0.3.4 to 0.3.5.

…pty date

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
Copilot AI review requested due to automatic review settings December 4, 2025 23:01
@andrest50 andrest50 requested review from a team and emsearcy as code owners December 4, 2025 23:01
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 fixes critical issues with meeting data synchronization by addressing date parsing errors for optional timestamp fields and ensuring proper ID population for recording data. The changes prevent indexing failures and improve data transformation reliability between v1 and v2 systems.

  • Fixed date parsing logic to handle empty/missing CreatedAt and ModifiedAt timestamps in participant conversion functions
  • Corrected indexer message payloads to send full typed objects instead of intermediate maps
  • Added v2 system ID field population and default values for recording access settings

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
v1-sync-helper/handlers_meetings.go Refactored timestamp parsing to check for non-empty strings before parsing; updated indexer to send typed objects; added recording ID mapping and access defaults
v1-sync-helper/models_meetings.go Added ID field to PastMeetingRecordingInput struct for v2 system compatibility
charts/lfx-v1-sync-helper/Chart.yaml Bumped chart version from 0.3.4 to 0.3.5

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

- Fix indexer message to send meeting/pastMeeting struct instead of raw v1Data
- Add ID field to PastMeetingRecordingInput to match v2 system expectations
- Add logic to detect transcript files and set transcript fields accordingly
- Set default recording access to meeting_hosts when not specified

Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Andres Tobon <andrest2455@gmail.com>
@andrest50 andrest50 force-pushed the andrest50/fix-date-parsing branch from 4e3d8cd to 2c274f0 Compare December 4, 2025 23:09
@emsearcy emsearcy merged commit 02f102c into main Dec 4, 2025
3 checks passed
@emsearcy emsearcy deleted the andrest50/fix-date-parsing branch December 4, 2025 23:28
emsearcy added a commit that referenced this pull request Dec 4, 2025
Change JoinTime from time.Time to *time.Time with omitempty tag to allow
for cases where join time might not be available or recorded.

This change was missed in PR #16.

🤖 Generated with GitHub Copilot (https://github.com/features/copilot) (via Zed)

Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants