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

Add ShortName to RulesetInfo #1684

Merged
merged 5 commits into from
Dec 11, 2017
Merged

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Dec 10, 2017

We have decided that when communicating with the API - and in general referring to rulesets - it should be done so using a ShortName, or acronym, rather than ID.

This adds the ShortName field to the client-side database.

.Where(mod => mod != null)
// Filter out all null mods
.SelectMany(mod => (mod as MultiMod)?.Mods ?? new[] { mod });
// Resolve MultiMods as their .Mods property

This comment was marked as off-topic.

@@ -93,6 +93,8 @@ public override IEnumerable<Mod> GetModsFor(ModType type)

public override string Description => "osu!catch";

public override string ShortName => "fruits";

This comment was marked as off-topic.

This comment was marked as off-topic.

@@ -285,6 +285,10 @@
<Compile Include="Migrations\20171119065731_AddBeatmapOnlineIDUniqueConstraint.Designer.cs">
<DependentUpon>20171119065731_AddBeatmapOnlineIDUniqueConstraint.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\20171209034410_AddRulesetInfoShortName.cs" />
<Compile Include="Migrations\20171209034410_AddRulesetInfoShortName.designer.cs">

This comment was marked as off-topic.

@peppy peppy added the realm deals with local realm database label Dec 11, 2017
@peppy peppy added this to the December 2017 milestone Dec 11, 2017
@smoogipoo smoogipoo merged commit 8769f93 into ppy:master Dec 11, 2017
@peppy peppy deleted the add-ruleset-shortname branch December 11, 2017 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realm deals with local realm database
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants