Skip to main content

StrategyCodeChangeProposal

A proposed edit to a code-mode strategy. Nothing has been changed.

type StrategyCodeChangeProposal {
status: StrategyCodeChangeStatus!
strategy: Strategy!
input: Map
diff: [CodeDiffLine!]!
added: Int!
removed: Int!
problems: [CodeChangeProblem!]!
}

Fields​

StrategyCodeChangeProposal.status ● StrategyCodeChangeStatus! non-null enum​

StrategyCodeChangeProposal.strategy ● Strategy! non-null object​

The version the edit was proposed against.

StrategyCodeChangeProposal.input ● Map scalar​

The updateStrategy input to send with strategy.id, verbatim. Null unless status is READY.

StrategyCodeChangeProposal.diff ● [CodeDiffLine!]! non-null object​

The proposed code against the current code, with context around each change.

StrategyCodeChangeProposal.added ● Int! non-null scalar​

StrategyCodeChangeProposal.removed ● Int! non-null scalar​

StrategyCodeChangeProposal.problems ● [CodeChangeProblem!]! non-null object​

Returned By​

proposeStrategyCodeChange mutation