Skip to content

Remove unused fields from models #342

Description

@DeD1rk

What

Some models may include fields that are currently returned by the API, but that we don't use. Those should be removed, so that the app keeps working even if the fields are removed from the API.

Why

As of svthalia/concrexit#2796 (and probably some other similar changes to decouple concrexit's apps), events will no longer have a slide field. IIRC reaxit tries to parse that field but doesn't use it. If we don't change reaxit not to try parsing such fields, it might break with future versions of concrexit.

How

Check for any fields that don't seem useful, check that they're not used, and remove them. Then run build_runner again to update the model generated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreSomething that is not a bug or a feature, does not change production behavioureasy and funGood for newcomerspriority: mediumA new feature or a bugfix that is non-critical.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions