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

[nonGallery] Adjust try blocks in TFM backfill, repair empty TFM metadata case #8531

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

drewgillies
Copy link
Contributor

@drewgillies drewgillies commented Apr 16, 2021

Logic tweak--exceptions were still sneaking through because the try block for harvesting TFMs only surrounded the method call doing the extraction - it didn't surround the loop enumerating them. The collection is IEnumerable, so of course throwing can still take place while enumerating. The diffing isn't great here, but that's what's happening in UpdatePackage. Forcing another enumeration ToList is for the same reason.

Also, the case where no TFMs were being persisted to the metadata file was throwing on the update cycle. I needed to null the MissingFieldFound action on the csvReader (this instruction comes from the exception thrown by csvReader). The null case is covered in update code so this fixed the issue.

@drewgillies drewgillies changed the title Placement of try block moved to surround enumeration in backfill Adjust try blocks, repair empty TFM metadata case Apr 20, 2021
@drewgillies drewgillies merged commit 387bf54 into dev Apr 21, 2021
@drewgillies drewgillies deleted the dg-adjusttfmbackfill branch April 21, 2021 00:51
@drewgillies drewgillies changed the title Adjust try blocks, repair empty TFM metadata case [nonGallery] Adjust try blocks, repair empty TFM metadata case Apr 21, 2021
@drewgillies drewgillies changed the title [nonGallery] Adjust try blocks, repair empty TFM metadata case [nonGallery] Adjust try blocks in TFM backfill, repair empty TFM metadata case Apr 21, 2021
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