Skip to content

Refactor find_org_coc method #160

@MichaelJamesParsons

Description

@MichaelJamesParsons

Description

The find_org_coc() function returns a models::ChainOfCommand struct that represents the org's CoC in two separate lists: extended_coc and local_coc. Refactor this method to return a single list ordered by the org's CoC.

[...localCoc, ...parentCoc, ...grandparentCoc, ...]

Additionally, the function eager loads associations. Refactor the code so eager loading is handled by the function callers instead of internally. Long term, eager loading will be extracted from all model functions.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions