Skip to content

Asap 234 new tagged mixed protocol bug - #336

Merged
lkacenja merged 3 commits into
devfrom
asap-234-new-tagged-mixed-protocol-bug
Oct 10, 2025
Merged

Asap 234 new tagged mixed protocol bug#336
lkacenja merged 3 commits into
devfrom
asap-234-new-tagged-mixed-protocol-bug

Conversation

@lkacenja

Copy link
Copy Markdown
Contributor

The last changes to the crawler had some flaws around protocol and url encoding. We join the current crawl on the previous crawl based on URL. URLs which are the same other than protocol and url encoding should be treated as identical. They were not and the resulting behavior created additional rows with different crawl statuses. The document import rake task collapses them during import, however, it takes the last crawl status variable presented. Hence we ended up with some existing documents marked as "new".

This PR joins the two crawl csvs on a normalized url column that has been decoded and has the protocol removed. We then drop duplicates for good measure, preferring the first record. I've also updated the tests to include problematic scenarios. Lastly, I replaced the SLC crawl data from 2025-09-25 with a new cut from 2025-10-07. Once this PR is deployed to prod, I'll clean up the documents there.

@lkacenja lkacenja self-assigned this Oct 10, 2025
@lkacenja
lkacenja merged commit ddecdd4 into dev Oct 10, 2025
2 checks passed
@lkacenja
lkacenja deleted the asap-234-new-tagged-mixed-protocol-bug branch April 7, 2026 16:16
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.

1 participant