cylc-ui icon indicating copy to clipboard operation
cylc-ui copied to clipboard

aotf: unify with the universal id

Open oliver-sanders opened this issue 2 years ago • 0 comments

aotf Api-on-the-fiy - the way we associate mutation and generate forms from the GraphQL schema. uid - universal id, the single identifier for all things Cylc.

AOTF was developed before the UID existed and consequently there is some duplication of functionality. Particularly the cylcObjects mapping. Now that we have UID we could do with rejigging things.

The _appliesTo field could do with being an array of UID types (i.e. user, workflow, cycle, task, job, $namespace, $edge) in order to allow for finer control.

For example the "logs" mutation applies to workflows, tasks and jobs, but it is currently set to "Namespace" which incorrectly associates the mutation with families which it doesn't work for.

Pull requests welcome!

oliver-sanders avatar Jan 11 '23 10:01 oliver-sanders