Skip to content

Merge model types for Hathor #107

Description

@GunnarAtEgde

Hathor is currently using multiple models for the same things. We need to clean up this code.

Fixes needed:

  1. There are two identical copies of the vehicleTypeTypes.ts file, one in packages\vtype-details and the other in data\vehicle-types. There is mention of merging the packages\vtype-details into Hathor, so remember then to delete the extra copy.

  2. Vehicle in data\vehicles\types and in data\vehice-types\vehicleTypeTypes.ts

  3. VehicleGQLShaped and VehicleWire. Issues here:

  • *Wire have netexId, the other have id, but other than that they are very similar
  • Note that a lot of properties need to be "optional", as they are sometimes used and sometimes not
  • If one finds reason to keep more than one type, at least the copy-ing between them needs to made generic. Currently, there is great risk of properties being "missed" because either the fetch or update functions don't map them

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions