How to use the datax-common.UserSelectors.getUserAlias function in datax-common

To help you get started, we’ve selected a few datax-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / flowActions.js View on Github external
export const updateOwner = () => (dispatch, getState) => {
    return dispatch({
        type: FLOW_UPDATE_OWNER,
        payload: UserSelectors.getUserAlias(getState())
    });
};
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / flowActions.js View on Github external
const flow = Helpers.convertConfigToFlow(config);
                return dispatch({
                    type: FLOW_INIT,
                    payload: flow
                });
            })
            .then(flow => {
                dispatch(QueryActions.initQuery(flow.payload.query));
            })
            .catch(error => {
                const message = getApiErrorMessage(error);
                updateErrorMessage(dispatch, message);
                return Q.reject({ error: true, message: message });
            });
    } else {
        const owner = UserSelectors.getUserAlias(getState());
        dispatch(QueryActions.initQuery(QueryModels.defaultQuery));
        return dispatch({
            type: FLOW_NEW,
            payload: owner
        });
    }
};