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

Include beatmap owners in additional Beatmap API responses #11824

Merged
merged 7 commits into from
Jan 28, 2025

Conversation

notbakaneko
Copy link
Collaborator

Before I forget about it again
closes #11788

@notbakaneko notbakaneko self-assigned this Jan 28, 2025
@@ -23,7 +23,7 @@
*/
class BeatmapsController extends Controller
{
const DEFAULT_API_INCLUDES = ['beatmapset.ratings', 'failtimes', 'max_combo'];
const DEFAULT_API_INCLUDES = ['beatmapset.ratings', 'failtimes', 'max_combo', 'owners'];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use docs update...? 🤔

@@ -216,6 +216,7 @@ public function index()
::whereIn('beatmap_id', $ids)
->whereHas('beatmapset')
->with([
'beatmapOwners',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also needs .user

Comment on lines 2 to 3


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, while at it

Suggested change

Field | Type | Description
-------- | ------- | ------------
id | integer | [User](#user) id of the Beatmap owner
username | string | Username of the Beatmap owner
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's useful to mention about deleted user here

@notbakaneko notbakaneko force-pushed the feature/beatmap-owners-more-endpoints branch from dc90e1b to f7bb58b Compare January 28, 2025 11:32
@nanaya nanaya enabled auto-merge January 28, 2025 11:56
@nanaya nanaya merged commit d470f0c into ppy:master Jan 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Beatmap difficulty endpoints does not return owners
2 participants