Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug event scraper #1760

Merged
merged 6 commits into from
Mar 24, 2025
Merged

Conversation

boazsender
Copy link
Contributor

Fixes fatal bugs in the event scraper.

Copy link

vercel bot commented Mar 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maple-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 21, 2025 3:49pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
maple-prod ⬜️ Ignored (Inspect) Mar 21, 2025 3:49pm

const eventData = eventInDb.data()
try {
Hearing.check(eventData)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this throws, wouldn't it just throw again in the next Hearing.check?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And just being thorough - are we sure this can successfully load a pre-existing hearing from the DB (which will not have videoUrl/videoFetchedAt/videoAssemblyId set at all - not even to null)?

Copy link
Contributor Author

@boazsender boazsender Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this throws, wouldn't it just throw again in the next Hearing.check?

eeps, removing that debug code.

And just being thorough - are we sure this can successfully load a pre-existing hearing from the DB (which will not have videoUrl/videoFetchedAt/videoAssemblyId set at all - not even to null)?

good call, switching back to optional types so the check will pass, and conditionally adding them.

@Mephistic
Copy link
Collaborator

There may still be more work to do here, but since this is in a strictly better state than it was before, I'm comfortable getting this out to QA to help debug.

@Mephistic Mephistic merged commit 1a1e1f3 into codeforboston:main Mar 24, 2025
7 of 8 checks passed
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.

2 participants