waltz-ng/client/common/selector-utils.js
/**
 * Helper method to construct valid IdSelectionOption instances.
 * @param entityReference
 * @param scope
 * @param entityLifecycleStatuses
 * @param filters
 * @returns {{entityLifecycleStatuses: string[], entityReference: {kind: *, id: *}, scope: (*|string), filters}}
 */
Helper method to construct valid IdSelectionOption instances.
Helper method to construct valid IdSelectionOption instances .
function mkSelectionOptions(entityReference,
                                   scope,
                                   entityLifecycleStatuses = ["ACTIVE"],
                                   filters = {}) {
    checkIsEntityRef(entityReference);
    return {
        entityReference: { id: entityReference.id, kind: entityReference.kind }, 
        scope: scope || determineDownwardsScopeForKind(entityReference.kind),
        entityLifecycleStatuses,
        filters
    };
}
function mkSelectionOptions ( entityReference , scope , entityLifecycleStatuses = [ "ACTIVE" ] , filters = { } ) { checkIsEntityRef ( entityReference ) ; return { entityReference : { id : entityReference . id , kind : entityReference . kind } , scope : scope || determineDownwardsScopeForKind ( entityReference . kind ) , entityLifecycleStatuses , filters } ; }
Helper method to construct valid IdSelectionOption instances.
Helper method to construct valid IdSelectionOption instances .
// use minimal ref to increase cache hits in broker