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

Fix getId() on null in deleteConflictingEpisodeAction #152

Conversation

LinAGKar
Copy link
Contributor

@LinAGKar LinAGKar commented Jan 8, 2024

Previously, it would take the guid and try to search for that in the
episode URL column, which may not find a match (or possibly even find
the wrong match).

testDoNotFailToUpdateEpisodeActionByGuidIfThereIsAnotherWithTheSameValueForEpisodeUrl
didn't catch this issue because it used the same value for episode and
guid when updating at line 84, so fix that as well. And for good
measure, give the save actions different position values, so the asserts
actually check that the saves have succeeded and they found the right
episode.

Fixes #144

@LinAGKar LinAGKar marked this pull request as draft January 9, 2024 08:37
Previously, it would take the guid and try to search for that in the
episode URL column, which may not find a match (or possibly even find
the wrong match).

testDoNotFailToUpdateEpisodeActionByGuidIfThereIsAnotherWithTheSameValueForEpisodeUrl
didn't catch this issue because it used the same value for episode and
guid when updating at line 84, so fix that as well. And for good
measure, give the save actions different position values, so the asserts
actually check that the saves have succeeded and they found the right
episode.
@LinAGKar LinAGKar force-pushed the fix-deleteConflictingEpisodeAction-getId-null branch from d61ebdb to af04b44 Compare January 9, 2024 08:48
@LinAGKar LinAGKar marked this pull request as ready for review January 9, 2024 08:48
@thrillfall thrillfall merged commit cd7ec98 into thrillfall:main Jan 12, 2024
10 checks passed
@thrillfall
Copy link
Owner

Thanks!

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.

Sync stops with HTTP status code 500 while apps/gpoddersync/episode_action/create
2 participants