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

Exclude pending authors from API #334

Merged
merged 1 commit into from
Dec 31, 2020

Conversation

HebaruSan
Copy link
Contributor

@HebaruSan HebaruSan commented Dec 30, 2020

Problem

The API includes pending authors:

https://spacedock.info/mod/2062/KSC%20Extended

image

https://spacedock.info/api/mod/2062

image

This effectively reports changes to author teams before they're confirmed by the participants.

Found after KSP-CKAN/CKAN-meta@5b17390

Cause

The Mod.shared_authors objects have an accepted property that is set to True when a pending author is confirmed. The UI checks it, but the API doesn't.

Changes

Now only confirmed authors are returned.

@HebaruSan HebaruSan added Type: Bug Area: Backend Related to the Python code that runs inside gunicorn Priority: Low Status: Ready labels Dec 30, 2020
@HebaruSan HebaruSan merged commit eef9642 into KSP-SpaceDock:alpha Dec 31, 2020
@HebaruSan HebaruSan deleted the fix/api-pending-author branch December 31, 2020 15:30
@HebaruSan HebaruSan mentioned this pull request Mar 14, 2021
@HebaruSan HebaruSan mentioned this pull request May 22, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Backend Related to the Python code that runs inside gunicorn Priority: Low Status: Ready Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants