Greenlight 2/3 Import: Preparations for import of recordings#3034
Greenlight 2/3 Import: Preparations for import of recordings#3034pizkaz wants to merge 2 commits intoTHM-Health:developfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughAdds reading of external meeting IDs from Greenlight v2/v3 room imports ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3034 +/- ##
=============================================
- Coverage 96.75% 96.73% -0.02%
+ Complexity 1924 1923 -1
=============================================
Files 457 457
Lines 12988 12993 +5
Branches 2079 2079
=============================================
+ Hits 12566 12569 +3
- Misses 422 424 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7289bae to
9372868
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@app/Console/Commands/ImportGreenlight2Command.php`:
- Around line 391-395: Before creating a Meeting record, check that
$room->bbb_id is not null; if it is null, do not set $dbMeeting->id or call
$dbMeeting->save()—instead skip creating the Meeting (and optionally log a
warning) to avoid violating the non-null primary key constraint; update the
block that creates the Meeting (where $dbMeeting = new Meeting, $dbMeeting->id =
$room->bbb_id, $dbMeeting->room()->associate($dbRoom), $dbMeeting->save()) to
guard on $room->bbb_id and only run those lines when it is non-null.
In `@app/Console/Commands/ImportGreenlight3Command.php`:
- Around line 305-309: Add a defensive null/empty check for $room->meeting_id
before instantiating Meeting: in ImportGreenlight3Command (around the block
creating $dbMeeting) verify that $room->meeting_id is not null/empty (and
optionally numeric) and only then create new Meeting, set $dbMeeting->id and
associate room()->associate($dbRoom); if it is null/empty, skip creation and
optionally log or record the missing meeting_id for later; mirror the same
validation used in the GL2 importer for consistency.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: e1e4a130-cba1-474f-8d04-10d34acb2b47
📒 Files selected for processing (7)
app/Console/Commands/ImportGreenlight2Command.phpapp/Console/Commands/ImportGreenlight3Command.phpapp/Models/RecordingFormat.phptests/Backend/Unit/Console/ImportGreenlight2Test.phptests/Backend/Unit/Console/ImportGreenlight3Test.phptests/Backend/Unit/Console/helper/Greenlight2Room.phptests/Backend/Unit/Console/helper/Greenlight3Room.php
🚧 Files skipped from review as they are similar to previous changes (4)
- tests/Backend/Unit/Console/ImportGreenlight3Test.php
- app/Models/RecordingFormat.php
- tests/Backend/Unit/Console/helper/Greenlight2Room.php
- tests/Backend/Unit/Console/helper/Greenlight3Room.php
9372868 to
6b8df6e
Compare
Fixes #
Type
Checklist
Changes
Summary by CodeRabbit