lxd icon indicating copy to clipboard operation
lxd copied to clipboard

Refactor entity types for maintainability

Open markylaing opened this issue 1 year ago • 0 comments

The shared/entity package uses a string type for all entity types. This means when adding new entities we need to update all functions and switch statements in the entities package. This is a headache for maintainability and should be changed.

Additionally, the projectName returned by entity.ParseURL should contain the project name if the URL is a project URL. (Currently it is only the contents of the project query parameter).

See https://github.com/canonical/lxd/pull/12873#discussion_r1497178026_

  • [ ] Evaluate whether EntityTypeContainer is used.

markylaing avatar Feb 21 '24 09:02 markylaing