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

Handle bad author list input from SpaceDock #294

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

HebaruSan
Copy link
Member

Problem

See #293, the SpaceDockAdder is repeatedly failing for a mod with co-authors.

Cause

After #293, we can see that SpaceDock is passing a string where it's supposed to pass a list of dicts:

"shared_authors": "username"

(username is the first key in the contained dicts)

Changes

Now the SpaceDockAdder performs run-time type checks on the shared authors property and only uses it to generate the PR body if it's correct. Otherwise an error is logged.

This will allow the bot to finally finish processing the request that's been stuck in the queue. The underlying SpaceDock bug will be fixed later.

@HebaruSan HebaruSan added Bug Something isn't working SpaceDock Adder Receives indexing requests and generates PRs. labels Apr 8, 2023
@HebaruSan HebaruSan merged commit 418ff65 into KSP-CKAN:master Apr 8, 2023
@HebaruSan HebaruSan deleted the fix/sd-bad-shared-authors branch April 8, 2023 20:42
@HebaruSan
Copy link
Member Author

Worked! KSP-CKAN/KSP2-NetKAN#17

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working SpaceDock Adder Receives indexing requests and generates PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant