Fix issue: Output parameters are being duplicated as input parameters in Composition page
Issue-ID: SDC-1817
Signed-off-by: Malek <malek.zoabi@amdocs.com>
Change-Id: If59ed6db69d36afa3f7efa1935cbcdfe60a3a0b5
})
);
- const outputs = activityInputsOutputs.inputs.map(({ name, value }) =>
+ const outputs = activityInputsOutputs.outputs.map(({ name, value }) =>
createElement(OUTPUT, newInputOutput, bpmnFactory, {
name,
type: 'Text',
} from 'features/workflow/overview/overviewSelectors';
import {
getVersionsAction,
- updateWorkflowAction,
- selectVersionAction
+ updateWorkflowAction
} from 'features/workflow/overview/overviewConstansts';
import { NEW_VERSION_MODAL } from 'shared/modal/modalWrapperComponents';
import { showCustomModalAction } from 'shared/modal/modalWrapperActions';
function mapDispatchToProps(dispatch) {
return {
getOverview: workflowId => dispatch(getVersionsAction(workflowId)),
- onSelectVersion: payload => dispatch(selectVersionAction(payload)),
showNewVersionModal: () =>
dispatch(
showCustomModalAction({
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+* http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software
+* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
static propTypes = {
getOverview: PropTypes.func,
versions: PropTypes.array,
- onSelectVersion: PropTypes.func,
onCreateVersion: PropTypes.func,
selectedVersion: PropTypes.string,
workflow: PropTypes.object,
}
onSelectVersionFromTable = data => {
- const { onSelectVersion, history, workflow } = this.props;
- onSelectVersion({ workflowId: workflow.id, versionId: data.id });
+ const { history, workflow } = this.props;
history.push('/workflow/' + workflow.id + '/version/' + data.id);
};
OverviewView.defaultProps = {
versions: [],
getOverview: () => {},
- onSelectVersion: () => {},
selectedVersion: ''
};
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
-*
- * http://www.apache.org/licenses/LICENSE-2.0
-*
- * Unless required by applicable law or agreed to in writing, software
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
export const FETCH_VERSION_LIST = 'overview/FETCH_VERSION_LIST';
export const GET_OVERVIEW = 'overview/GET_OVERVIEW';
-export const SELECT_VERSION = 'overview/SELECT_VERSION';
export const UPDATE_WORKFLOW = 'overview/UPDATE_WORKFLOW';
export const versionListFetchAction = payload => ({
payload
});
-export const selectVersionAction = payload => ({
- type: SELECT_VERSION,
- payload
-});
-
export const getVersionsAction = workflowId => ({
type: GET_OVERVIEW,
payload: workflowId
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+* http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software
+* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
import {
versionListFetchAction,
GET_OVERVIEW,
- SELECT_VERSION,
UPDATE_WORKFLOW
} from 'features/workflow/overview/overviewConstansts';
import { setWorkflowAction } from 'features/workflow/workflowConstants';
import { notificationActions } from 'shared/notifications/notificationsActions';
-import { workflowVersionFetchRequestedAction } from 'features/version/versionConstants';
export function* getOverview(action) {
try {
}
}
-export function* setCurrentVersion(action) {
- try {
- yield put(workflowVersionFetchRequestedAction(action.payload));
- } catch (e) {
- yield put(genericNetworkErrorAction(e));
- }
-}
-
export function* updateWorkflow(action) {
try {
yield call(overviewApi.updateWorkflow, action.payload);
export function* watchOverview() {
yield takeEvery(GET_OVERVIEW, getOverview);
- yield takeEvery(SELECT_VERSION, setCurrentVersion);
yield takeEvery(UPDATE_WORKFLOW, updateWorkflow);
}