Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It was briefly possible to set an
assigned_to
without anassigned_type
within the API.Once that happens, looking at those assets may generate a 500 error.
This tries to fix
assigned_type
by looking at theaction_logs
. While it's tempting to do a full fixup ofassigned_to
andassigned_type
based on theaction_logs
, this instead just handles whenassigned_type
isNULL
, or whenassigned_to
should be set toNULL
.I tried to write some tests to back this up, but they aren't working at all. I have no idea why.
If we're okay with merging this without tests, I'll take it out of draft. If not, maybe @marcusmoore can help me figure out why my tests don't seem to work?