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

Hwid ops #2282

Merged
merged 6 commits into from
Nov 29, 2024
Merged

Hwid ops #2282

merged 6 commits into from
Nov 29, 2024

Conversation

deltanedas
Copy link
Member

About the PR

@MilonPL merge when ss14.admin and db are updated/migrated

@deltanedas deltanedas requested a review from a team as a code owner November 25, 2024 06:10
@github-actions github-actions bot added size/XL Over 1024 lines S: Untriaged This issue or PR needs labelling Changes: UI Changes: C# Changes any cs files S: Needs Review labels Nov 25, 2024
@MilonPL
Copy link
Member

MilonPL commented Nov 25, 2024

@deltanedas did we not merge space-wizards/space-station-14#30827 or what

image

@MilonPL MilonPL removed the S: Untriaged This issue or PR needs labelling label Nov 25, 2024
sativaleanne and others added 3 commits November 25, 2024 09:48
* rolebanlist command opens ui

* removed commented out section
This should be the primary changes for the future-proof "Modern HWID" system implemented into Robust and the auth server.

HWIDs in the database have been given an additional column representing their version, legacy or modern. This is implemented via an EF Core owned entity. By manually setting the column name of the main value column, we can keep DB compatibility and the migration is just adding some type columns.

This new HWID type has to be plumbed through everywhere, resulting in some breaking changes for the DB layer and such.

New bans and player records are placed with the new modern HWID. Old bans are still checked against legacy HWIDs.

Modern HWIDs are presented with a "V2-" prefix to admins, to allow distinguishing them. This is also integrated into the parsing logic for placing new bans.

There's also some code cleanup to reduce copy pasting around the place from my changes.

Requires latest engine to support ImmutableArray<byte> in NetSerializer.
@deltanedas
Copy link
Member Author

real

@MilonPL
Copy link
Member

MilonPL commented Nov 28, 2024

db migrated, ss14 admin updated
needs netserializer updated even though it should be?

@deltanedas
Copy link
Member Author

is it that fucked

@MilonPL MilonPL enabled auto-merge (squash) November 29, 2024 10:00
@MilonPL MilonPL disabled auto-merge November 29, 2024 10:00
@MilonPL
Copy link
Member

MilonPL commented Nov 29, 2024

fuck if i squash it we wont get merge history and if i commit it then we will have the merge branch 'master' into hwid-ops agony

@deltanedas
Copy link
Member Author

rebase then :trollface:

also tests are fucked from it

@MilonPL
Copy link
Member

MilonPL commented Nov 29, 2024

yes lemme figure out why

Fixes formatting of owned entity type property names. These are normally named "FooBar_Baz" by EF Core, but the snake case thing was turning them into "foo_bar__baz". The double underscore is now fixed.

We don't *yet* have any EF Core owned entity in use, but I am planning to add one. I don't know if downstreams are using any so this should still be marked as a breaking change.

Also fixed it creating and dropping a Compiled Regex instance for every name, the regex is now cached (and pregenerated).
@MilonPL
Copy link
Member

MilonPL commented Nov 29, 2024

you missed a commit goober

@MilonPL MilonPL enabled auto-merge (rebase) November 29, 2024 18:06
@MilonPL MilonPL merged commit c8bd723 into DeltaV-Station:master Nov 29, 2024
12 checks passed
@deltanedas deltanedas deleted the hwid-ops branch November 29, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants