-
Notifications
You must be signed in to change notification settings - Fork 2
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
Event detail: Related board reports are not showing up #328
Comments
Initial Problem Preliminary Solution
These scrapes caught nearly all of the missing bills (which were added to the OCD API database at 5:25 pm or 5:45 pm on July 13). The data import in Councilmatic subsequently added these bills to LA Metro. Still, the related board reports did not render as expected. Cause and Effect Root Problem (Unsolved) The Sentry logs do not show any corresponding errors, and the DataMade team did not develop the scraper on this day. Approaching Mitigation |
Reference: List of previously missing bills
|
My current suspicion this issue is caused by Metro making a board report public and that act not triggering an update of "MatterLastModifiedUtc". If that was so, it would explain why our windowed bill scraping seems to be missing these bills. If that's so, then here are four things that we could do.
If 1 or 2 happened, we wouldn't need to do 3 or 4. If we can't do 1 or 2, we probably need to do both 3 and 4. I'm not completely sure that a failure to update "MatterLastModifiedUtc" on making a board report public is the cause. In order to confirm it we would need to confirm that toggling the public status of a board report does not change "MatterLastModifiedUtc" With LA Metro's cooperation this should be pretty easy. We can choose some old board report that is currently public, ask them to make it private and then make it public again. This isn't the exact test we would like to do, but if "MatterLastModifiedUtc" does not update, we should be pretty confident. In addition, we should bring in opencivicdata/python-legistar-scraper#74 and make any other necessary changes so that the only unresolved board reports are private reports. |
We have a preliminary solution that involves scraping all bills on Fridays, during a designated period of time: datamade/scrapers-us-municipal#22 Metro and DataMade plan to test a couple bills next week to determine how the timestamp correlates with the shift from a "private" to "public" status. |
@reginafcompton Re: your questions via email: How will Metro will toggle reports from public to private?
|
Terrific! We have a mechanism in place for hiding test events, but not test reports. Will you be doing any "real" data creation in Legistar tomorrow afternoon? If not, then we can turn off the automated scrape, while we test; we'll turn on the scraper, only after you remove the test data from Legistar. Does that work for Metro? Otherwise, we'll need a way of knowing which bills are "TEST" bills, so we can hide them on the Councilmatic site. (That would require a few hours of development time on our part.) What we want to learn from this testing (1) How does toggling a report from private to public affect the (2) If the timestamp does not change automatically, can Metro manually adjust it at the time of toggle? |
Sounds great! There shouldn't be any issue with turning off the scraper while we test. |
The test agenda is Board of Directors - Regular Board Meeting, 8/6/2018 at 9:30am. |
We'd like to use BOTH options 3 & 4: |
@shrayshray - we implemented the above suggestions a while back: I made a note about the admin interface in the relevant issue. Finally, I want to note that our new changes to the scraper, which enable scraping private bills, also help resolve this issue. I think we can close this one! Let me know. |
The most recent events do not show related board reports (though previous events do).
The SQL in the view code is not behaving as expected: https://github.com/datamade/la-metro-councilmatic/blob/master/lametro/views.py#L146
The text was updated successfully, but these errors were encountered: