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

prevent assertion error reverting unpublished asset definition set to empty string #1115

Conversation

Jamiras
Copy link
Member

@Jamiras Jamiras commented Aug 16, 2024

https://discord.com/channels/310192285306454017/533411674162593812/1273734162787860623

The attempt to upload was failing because the trigger definition was empty. As a result, the achievement was being reverted to the pre-upload state, which should have effectively been a no-op. But the modification to set the trigger to empty was not being reflected appropriately when the model was saved, so the revert left the model in a Modified state, which was unexpected and raised the exception.

Additionally, I've improved the error reporting when constructing API requests.

@Jamiras Jamiras added this to the 1.3.1 milestone Aug 16, 2024
@Jamiras Jamiras merged commit 00c4295 into RetroAchievements:master Aug 27, 2024
6 checks passed
@Jamiras Jamiras deleted the bugfix/revert_empty_unpublished_asset branch August 27, 2024 22:34
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