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AEAc,EAAa,oBAAoB,QAAQxB,CAAO,CAClD,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/components/common/PageNavigation.tsx","webpack://graylog-web-interface/./src/components/pipelines/PipelineConnectionsList.tsx","webpack://graylog-web-interface/./src/components/pipelines/PipelinesPageNavigation.tsx","webpack://graylog-web-interface/./src/components/pipelines/StageForm.tsx","webpack://graylog-web-interface/./src/components/pipelines/StageRules.tsx","webpack://graylog-web-interface/./src/components/pipelines/Stage.tsx","webpack://graylog-web-interface/./src/components/pipelines/PipelineForm.tsx","webpack://graylog-web-interface/./src/components/pipelines/PipelineDetails.tsx","webpack://graylog-web-interface/./src/components/pipelines/PipelineConnectionsForm.tsx","webpack://graylog-web-interface/./src/components/pipelines/Pipeline.tsx","webpack://graylog-web-interface/./src/components/pipelines/NewPipeline.tsx","webpack://graylog-web-interface/./src/logic/pipelines/SourceGenerator.js","webpack://graylog-web-interface/./src/pages/PipelineDetailsPage.jsx","webpack://graylog-web-interface/./src/routing/withParams.tsx","webpack://graylog-web-interface/./src/stores/pipelines/PipelineConnectionsStore.ts","webpack://graylog-web-interface/./src/stores/pipelines/PipelinesStore.ts","webpack://graylog-web-interface/./src/stores/rules/RulesStore.ts"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Button, ButtonToolbar } from 'components/bootstrap';\nimport { LinkContainer } from 'components/common/router';\nimport { IfPermitted } from 'components/common';\nimport NavItemStateIndicator, {\n hoverIndicatorStyles,\n activeIndicatorStyles,\n} from 'components/common/NavItemStateIndicator';\n\nconst Container = styled(ButtonToolbar)`\n margin-bottom: 10px;\n`;\n\nconst StyledButton = styled(Button)(({ theme }) => css`\n font-family: ${theme.fonts.family.navigation};\n font-size: ${theme.fonts.size.navigation};\n\n &&&& {\n color: ${theme.colors.variant.darker.default};\n \n &:hover,\n &:focus {\n text-decoration: none;\n }\n\n > div {\n &:hover,\n &:focus {\n color: ${theme.colors.variant.darker.default};\n }\n }\n\n &:hover {\n ${hoverIndicatorStyles(theme)}\n }\n\n &.active {\n color: ${theme.colors.global.textDefault};\n\n ${activeIndicatorStyles(theme)}\n\n &:hover,\n &:focus {\n ${activeIndicatorStyles(theme)}\n }\n }\n }\n`);\n\nStyledButton.displayName = 'Button';\n\ntype Props = {\n /**\n * List of nav items. Define permissions, if the item should only be displayed for users with specific permissions.\n * By default, an item is active if the current URL starts with the item URL.\n * If you only want to display an item as active only when its path matches exactly, set `exactPathMatch` to true.\n */\n items: Array<{\n title: string,\n path: string,\n permissions?: string | Array\n exactPathMatch?: boolean,\n }>\n}\n\n/**\n * Simple tab navigation to allow navigating to subareas of a page.\n */\nconst PageNavigation = ({ items }: Props) => (\n \n {items.map(({ path, title, permissions, exactPathMatch }) => {\n if (!path) {\n return null;\n }\n\n return (\n \n \n \n \n {title}\n \n \n \n \n );\n })}\n \n);\n\nexport default PageNavigation;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { defaultCompare as naturalSort } from 'logic/DefaultCompare';\nimport type { PipelineType } from 'stores/pipelines/PipelinesStore';\nimport type { PipelineConnectionsType } from 'stores/pipelines/PipelineConnectionsStore';\nimport type { Stream } from 'stores/streams/StreamsStore';\n\ntype Props = {\n pipeline: PipelineType,\n connections: PipelineConnectionsType[],\n streams: Stream[],\n streamsFormatter: (streams: Stream[]) => React.ReactNode,\n noConnectionsMessage?: React.ReactNode,\n}\n\nconst PipelineConnectionsList = ({ pipeline, connections, streams, streamsFormatter, noConnectionsMessage }: Props) => {\n const streamsUsingPipeline = connections\n .filter((c) => c.pipeline_ids && c.pipeline_ids.includes(pipeline.id)) // Get connections for this pipeline\n .filter((c) => streams.some((s) => s.id === c.stream_id)) // Filter out deleted streams\n .map((c) => streams.find((s) => s.id === c.stream_id))\n .sort((s1, s2) => naturalSort(s1.title, s2.title));\n\n return (\n \n {streamsUsingPipeline.length === 0 ? noConnectionsMessage : streamsFormatter(streamsUsingPipeline)}\n \n );\n};\n\nPipelineConnectionsList.propTypes = {\n pipeline: PropTypes.object.isRequired,\n connections: PropTypes.array.isRequired,\n streams: PropTypes.array.isRequired,\n streamsFormatter: PropTypes.func.isRequired,\n noConnectionsMessage: PropTypes.node,\n};\n\nPipelineConnectionsList.defaultProps = {\n noConnectionsMessage: 'Pipeline not connected to any streams',\n};\n\nexport default PipelineConnectionsList;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\n\nimport PageNavigation from 'components/common/PageNavigation';\nimport Routes from 'routing/Routes';\nimport { Row } from 'components/bootstrap';\n\nconst NAV_ITEMS = [\n { title: 'Manage pipelines', path: Routes.SYSTEM.PIPELINES.OVERVIEW, exactPathMatch: true },\n { title: 'Manage rules', path: Routes.SYSTEM.PIPELINES.RULES },\n { title: 'Simulator', path: Routes.SYSTEM.PIPELINES.SIMULATOR },\n];\n\nconst EventsPageNavigation = () => (\n \n \n
\n);\n\nexport default EventsPageNavigation;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React, { useCallback, useMemo, useState } from 'react';\n\nimport { useStore } from 'stores/connect';\nimport { Link } from 'components/common/router';\nimport { SelectableList } from 'components/common';\nimport { Button, ControlLabel, FormGroup, BootstrapModalForm, Input } from 'components/bootstrap';\nimport { getValueFromInput } from 'util/FormsUtils';\nimport NumberUtils from 'util/NumberUtils';\nimport Routes from 'routing/Routes';\nimport type { PipelineType, StageType } from 'stores/pipelines/PipelinesStore';\nimport { RulesStore } from 'stores/rules/RulesStore';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport useCurrentUser from 'hooks/useCurrentUser';\n\ntype Props = {\n pipeline: PipelineType,\n stage?: StageType,\n create: boolean,\n save: (nextStage: StageType, callback: () => void) => void,\n};\n\nconst StageForm = ({ pipeline, stage, create, save }: Props) => {\n const currentUser = useCurrentUser();\n const [showModal, setShowModal] = useState(false);\n\n const _initialStageNumber = useMemo(() => (\n create ? Math.max(...pipeline.stages.map((s) => s.stage)) + 1 : stage.stage\n ), [create, pipeline.stages, stage.stage]);\n\n const [nextStage, setNextStage] = useState({ ...stage, stage: _initialStageNumber });\n const { rules } = useStore(RulesStore);\n\n const openModal = () => {\n setShowModal(true);\n };\n\n const _onChange = ({ target }) => {\n setNextStage((currentStage) => ({ ...currentStage, [target.name]: getValueFromInput(target) }));\n };\n\n const _onRulesChange = (newRules) => {\n setNextStage((currentStage) => ({ ...currentStage, rules: newRules }));\n };\n\n const _closeModal = () => {\n setShowModal(false);\n };\n\n const _onSaved = () => {\n _closeModal();\n };\n\n const isOverridingStage = useMemo(() => (\n nextStage.stage !== _initialStageNumber && pipeline.stages.some(({ stage: s }) => s === nextStage.stage)\n ), [nextStage.stage, _initialStageNumber, pipeline.stages]);\n\n const _handleSave = () => {\n if (!isOverridingStage) {\n save(nextStage, _onSaved);\n }\n };\n\n const _formatRuleOption = ({ title }) => ({ value: title, label: title });\n\n const _filterChosenRules = (rule, chosenRules) => !chosenRules.includes(rule.title);\n\n const _getFormattedOptions = useCallback(() => {\n const chosenRules = nextStage.rules;\n\n return rules ? rules.filter((rule) => _filterChosenRules(rule, chosenRules)).map(_formatRuleOption) : [];\n }, [nextStage.rules, rules]);\n\n const rulesHelp = (\n \n Select the rules evaluated on this stage, or create one in the{' '}\n Pipeline Rules page.\n \n );\n\n return (\n \n \n \n \n \n \n );\n};\n\nStageForm.propTypes = {\n pipeline: PropTypes.object.isRequired,\n stage: PropTypes.object,\n create: PropTypes.bool,\n save: PropTypes.func.isRequired,\n};\n\nStageForm.defaultProps = {\n create: false,\n stage: {\n stage: 0,\n match: 'EITHER',\n rules: [],\n },\n};\n\nexport default StageForm;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { DataTable, Icon } from 'components/common';\nimport { Link } from 'components/common/router';\nimport Routes from 'routing/Routes';\nimport { MetricContainer, CounterRate } from 'components/metrics';\nimport type { PipelineType, StageType } from 'stores/pipelines/PipelinesStore';\nimport type { RuleType } from 'stores/rules/RulesStore';\n\nconst TitleTd = styled.td`\n width: 400px;\n`;\n\ntype Props = {\n pipeline: PipelineType,\n stage: StageType,\n rules: RuleType[],\n};\n\nconst StageRules = ({ pipeline, stage, rules }: Props) => {\n const headers = ['Title', 'Description', 'Throughput', 'Errors'];\n\n const _ruleRowFormatter = (ruleArg, ruleIdx) => {\n let rule = ruleArg;\n\n let ruleTitle;\n\n // this can happen when a rule has been renamed, but not all references are updated\n if (!rule) {\n rule = {\n id: `invalid-${ruleIdx}`,\n description: `Rule ${stage.rules[ruleIdx]} has been renamed or removed. This rule will be skipped.`,\n };\n\n ruleTitle = {stage.rules[ruleIdx]};\n } else {\n const isRuleBuilder = rule.rule_builder ? '?rule_builder=true' : '';\n\n ruleTitle = (\n \n {rule.title}\n \n );\n }\n\n return (\n \n \n {ruleTitle}\n \n {rule.description} \n \n \n \n \n \n \n \n \n \n \n \n );\n };\n\n return (\n ({header} )}\n rows={rules}\n dataRowFormatter={_ruleRowFormatter}\n noDataText=\"This stage has no rules yet. Click on edit to add some.\"\n filterLabel=\"\"\n filterKeys={[]} />\n );\n};\n\nStageRules.propTypes = {\n pipeline: PropTypes.object.isRequired,\n stage: PropTypes.object.isRequired,\n rules: PropTypes.array,\n};\n\nStageRules.defaultProps = {\n rules: [],\n};\n\nexport default StageRules;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Col, Button } from 'components/bootstrap';\nimport { EntityListItem, Spinner } from 'components/common';\nimport { MetricContainer, CounterRate } from 'components/metrics';\nimport type { PipelineType, StageType } from 'stores/pipelines/PipelinesStore';\nimport { useStore } from 'stores/connect';\nimport { RulesStore } from 'stores/rules/RulesStore';\nimport type { RuleType } from 'stores/rules/RulesStore';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport useCurrentUser from 'hooks/useCurrentUser';\n\nimport StageForm from './StageForm';\nimport StageRules from './StageRules';\n\ntype Props = {\n stage: StageType,\n pipeline: PipelineType,\n isLastStage: boolean,\n onUpdate: (nextStage: StageType, callback: () => void) => void,\n onDelete: () => void,\n};\n\nconst Stage = ({ stage, pipeline, isLastStage, onUpdate, onDelete }: Props) => {\n const currentUser = useCurrentUser();\n const { rules: allRules }: { rules: RuleType[] } = useStore(RulesStore);\n\n const suffix = `Contains ${(stage.rules.length === 1 ? '1 rule' : `${stage.rules.length} rules`)}`;\n\n const throughput = (\n \n \n \n );\n\n const actions = [\n ,\n ,\n ];\n\n let description;\n\n if (isLastStage) {\n description = 'There are no further stages in this pipeline. Once rules in this stage are applied, the pipeline will have finished processing.';\n } else {\n let matchText;\n\n switch (stage.match) {\n case 'ALL':\n matchText = 'all rules';\n break;\n case 'EITHER':\n matchText = 'at least one rule';\n break;\n case 'PASS':\n matchText = 'none or more rules';\n break;\n default:\n matchText = 'UNKNOWN';\n break;\n }\n\n description = (\n \n Messages satisfying {matchText}{' '}\n in this stage, will continue to the next stage.\n \n );\n }\n\n const block = (\n \n {description}\n
\n {throughput}\n \n );\n\n const content = (allRules\n ? (\n allRules.filter((r) => r.title === name)[0])} />\n )\n : );\n\n return (\n {content}} />\n );\n};\n\nStage.propTypes = {\n stage: PropTypes.object.isRequired,\n pipeline: PropTypes.object.isRequired,\n isLastStage: PropTypes.bool.isRequired,\n onUpdate: PropTypes.func.isRequired,\n onDelete: PropTypes.func.isRequired,\n};\n\nexport default Stage;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\nimport cloneDeep from 'lodash/cloneDeep';\n\nimport { Row, Col, Button, Input } from 'components/bootstrap';\nimport { getValueFromInput } from 'util/FormsUtils';\nimport type { PipelineType } from 'stores/pipelines/PipelinesStore';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport useCurrentUser from 'hooks/useCurrentUser';\nimport { FormSubmit } from 'components/common';\n\nimport BootstrapModalForm from '../bootstrap/BootstrapModalForm';\n\ntype Props = {\n pipeline: PipelineType,\n create: boolean,\n modal: boolean,\n save: (pipeline: PipelineType, callback: () => void) => void,\n onCancel?: () => void,\n};\n\nconst PipelineForm = ({ pipeline, create, modal, save, onCancel }: Props) => {\n const currentUser = useCurrentUser();\n const [nextPipeline, setNextPipeline] = useState(cloneDeep(pipeline));\n const [showModal, setShowModal] = useState(false);\n\n const _openModal = () => {\n setShowModal(true);\n };\n\n const _onChange = ({ target }) => {\n setNextPipeline((currentPipeline) => ({ ...currentPipeline, [target.name]: getValueFromInput(target) }));\n };\n\n const _closeModal = () => {\n setShowModal(false);\n };\n\n const _onSaved = () => {\n _closeModal();\n\n if (create) {\n setNextPipeline(cloneDeep(pipeline));\n }\n };\n\n const _handleSubmit = (event) => {\n if (event) {\n event.preventDefault();\n }\n\n save(nextPipeline, _onSaved);\n };\n\n const content = (\n \n );\n\n if (modal) {\n return (\n \n \n \n {content}\n \n \n );\n }\n\n return (\n \n );\n};\n\nPipelineForm.propTypes = {\n pipeline: PropTypes.object,\n create: PropTypes.bool,\n modal: PropTypes.bool,\n save: PropTypes.func.isRequired,\n onCancel: PropTypes.func,\n};\n\nPipelineForm.defaultProps = {\n modal: true,\n create: false,\n pipeline: {\n id: undefined,\n title: '',\n description: '',\n stages: [{ stage: 0, rules: [] }],\n },\n onCancel: () => {},\n};\n\nexport default PipelineForm;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport styled from 'styled-components';\n\nimport { Row, Col } from 'components/bootstrap';\nimport { RelativeTime } from 'components/common';\nimport { MetricContainer, CounterRate } from 'components/metrics';\nimport type { PipelineType } from 'stores/pipelines/PipelinesStore';\n\nimport PipelineForm from './PipelineForm';\n\nconst PipelineDl = styled.dl`\n & {\n margin-bottom: 0;\n margin-top: 10px;\n }\n\n & > dt {\n text-align: left;\n width: 160px;\n }\n\n & > dt::after {\n content: ':';\n }\n\n & > dd {\n margin-left: 120px;\n }\n`;\n\ntype Props = {\n pipeline?: PipelineType,\n create?: boolean,\n onChange: (event) => void,\n onCancel?: () => void,\n};\n\nconst PipelineDetails = ({ pipeline, create, onChange, onCancel }: Props) => {\n if (create) {\n return ;\n }\n\n return (\n \n \n \n \n \n \n Details
\n \n Title \n {pipeline.title} \n Description \n {pipeline.description} \n Created \n \n Last modified \n \n Current throughput \n \n \n \n \n \n \n \n
\n
\n \n );\n};\n\nPipelineDetails.propTypes = {\n pipeline: PropTypes.object,\n create: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n onCancel: PropTypes.func,\n};\n\nPipelineDetails.defaultProps = {\n pipeline: undefined,\n create: false,\n onCancel: () => {},\n};\n\nexport default PipelineDetails;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React, { useMemo, useState } from 'react';\n\nimport { defaultCompare as naturalSort } from 'logic/DefaultCompare';\nimport { Link } from 'components/common/router';\nimport { SelectableList } from 'components/common';\nimport { ControlLabel, FormGroup, HelpBlock, Button, BootstrapModalForm } from 'components/bootstrap';\nimport Routes from 'routing/Routes';\nimport type { PipelineType } from 'stores/pipelines/PipelinesStore';\nimport type { Stream } from 'stores/streams/StreamsStore';\nimport type { PipelineConnectionsType } from 'stores/pipelines/PipelineConnectionsStore';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport useCurrentUser from 'hooks/useCurrentUser';\n\ntype Props = {\n pipeline: PipelineType,\n connections: PipelineConnectionsType[],\n streams: Stream[],\n save: (newConnection, callback) => void,\n};\n\ntype FormattedStream = {\n value: string,\n label: string,\n}\n\nconst formatStreams = (streams: Stream[]): FormattedStream[] => streams\n .map((s) => ({ value: s.id, label: s.title }))\n .sort((s1, s2) => naturalSort(s1.label, s2.label));\n\nconst PipelineConnectionsForm = ({ pipeline, connections, streams, save }: Props) => {\n const currentUser = useCurrentUser();\n const [showModal, setShowModal] = useState(false);\n\n const initialStreamConnections = useMemo(() => connections\n .filter((c) => c.pipeline_ids && c.pipeline_ids.includes(pipeline.id)) // Get connections for this pipeline\n .filter((c) => streams.some((s) => s.id === c.stream_id)) // Filter out deleted streams\n .map((c) => streams.find((s) => s.id === c.stream_id)), [pipeline, connections, streams]);\n\n const [connectedStreams, setConnectedStreams] = useState(formatStreams(initialStreamConnections));\n\n const notConnectedStreams = useMemo(() => streams.filter((s) => !connectedStreams.some((cs) => cs.value.toLowerCase() === s.id.toLowerCase())), [streams, connectedStreams]);\n\n const _openModal = () => {\n setShowModal(true);\n };\n\n const _onStreamsChange = (newStreams) => {\n setConnectedStreams(newStreams.sort((s1, s2) => naturalSort(s1.label, s2.label)));\n };\n\n const _closeModal = () => {\n setShowModal(false);\n };\n\n const _save = () => {\n const streamIds = connectedStreams.map((cs) => cs.value);\n const newConnection = {\n pipeline: pipeline.id,\n streams: streamIds,\n };\n\n save(newConnection, _closeModal);\n };\n\n const streamsHelp = (\n \n Select the streams you want to connect to this pipeline, or create one in the{' '}\n Streams page.\n \n );\n\n return (\n \n \n Edit connections for {pipeline.title} }\n data-telemetry-title=\"Edit connections for pipeline\"\n onSubmitForm={_save}\n onCancel={_closeModal}\n submitButtonText=\"Update connections\">\n \n \n \n );\n};\n\nPipelineConnectionsForm.propTypes = {\n pipeline: PropTypes.object.isRequired,\n connections: PropTypes.array.isRequired,\n streams: PropTypes.array.isRequired,\n save: PropTypes.func.isRequired,\n};\n\nexport default PipelineConnectionsForm;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React, { useCallback, useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport { Row, Col, Alert } from 'components/bootstrap';\nimport { EntityList, Pluralize } from 'components/common';\nimport type { PipelineType, StageType } from 'stores/pipelines/PipelinesStore';\nimport type { Stream } from 'stores/streams/StreamsStore';\nimport type { PipelineConnectionsType } from 'stores/pipelines/PipelineConnectionsStore';\n\nimport Stage from './Stage';\nimport StageForm from './StageForm';\nimport PipelineDetails from './PipelineDetails';\nimport PipelineConnectionsForm from './PipelineConnectionsForm';\nimport PipelineConnectionsList from './PipelineConnectionsList';\n\nconst ConnectionWarning = styled(Alert)`\n margin-bottom: 13px;\n`;\n\nconst StyledRow = styled(Row)`\n margin-top: 10px;\n`;\n\nconst StyledP = styled.p`\n margin-top: 5px;\n`;\n\ntype Props = {\n pipeline: PipelineType,\n connections: PipelineConnectionsType[],\n streams: Stream[],\n onConnectionsChange: (updatedConnections, callback?) => void,\n onStagesChange: (newStages: StageType[], callback?) => void,\n onPipelineChange: (pipeline: PipelineType, callback?) => void,\n};\n\nconst Pipeline = ({ pipeline, connections, streams, onConnectionsChange, onStagesChange, onPipelineChange }: Props) => {\n const _connectionsWarning = () => {\n if (connections.length === 0) {\n return (\n \n This pipeline is currently not connected to any streams. You have to connect a pipeline to at least one\n stream to make it process incoming messages. Note that this is not required if you intend to use this\n pipeline only for search result transformation using decorators.\n \n );\n }\n\n return null;\n };\n\n const _saveStage = (stage, callback) => {\n const newStages = pipeline.stages.slice();\n\n newStages.push(stage);\n onStagesChange(newStages, callback);\n };\n\n const _updateStage = useCallback((prevStage) => (stage, callback) => {\n const newStages = pipeline.stages.filter((s) => s.stage !== prevStage.stage);\n\n newStages.push(stage);\n onStagesChange(newStages, callback);\n }, [pipeline, onStagesChange]);\n\n const _deleteStage = useCallback((stage) => () => {\n // eslint-disable-next-line no-alert\n if (window.confirm(`You are about to delete stage ${stage.stage}, are you sure you want to proceed?`)) {\n const newStages = pipeline.stages.filter((s) => s.stage !== stage.stage);\n\n onStagesChange(newStages);\n }\n }, [pipeline, onStagesChange]);\n\n const _formatConnectedStreams = (connectedStreams: Stream[]) => {\n const formattedStreams = connectedStreams.map((s) => `\"${s.title}\"`);\n const streamList = formattedStreams.length > 1 ? [formattedStreams.slice(0, -1).join(', '), formattedStreams.slice(-1)].join(' and ') : formattedStreams[0];\n\n return (\n \n This pipeline is processing messages from the{' '}\n {' '}\n {streamList}.\n \n );\n };\n\n const formattedStages = useMemo(() => {\n const maxStage = pipeline.stages.reduce((max, currentStage) => Math.max(max, currentStage.stage), -Infinity);\n\n return pipeline.stages\n .sort((s1, s2) => s1.stage - s2.stage)\n .map((stage) => (\n \n ));\n }, [pipeline, _updateStage, _deleteStage]);\n\n const stageKey = useMemo(() => pipeline.stages.map((s) => s.stage).join('-'), [pipeline.stages]);\n\n return (\n \n {_connectionsWarning()}\n \n \n \n \n \n \n Pipeline connections
\n \n \n \n
\n \n \n \n \n \n \n \n Pipeline Stages
\n \n Stages are groups of conditions and actions which need to run in order, and provide the necessary{' '}\n control flow to decide whether or not to run the rest of a pipeline.\n \n \n \n \n \n );\n};\n\nPipeline.propTypes = {\n pipeline: PropTypes.object.isRequired,\n connections: PropTypes.array.isRequired,\n streams: PropTypes.array.isRequired,\n onConnectionsChange: PropTypes.func.isRequired,\n onStagesChange: PropTypes.func.isRequired,\n onPipelineChange: PropTypes.func.isRequired,\n};\n\nexport default Pipeline;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Row, Col } from 'components/bootstrap';\nimport Routes from 'routing/Routes';\nimport type { PipelineType } from 'stores/pipelines/PipelinesStore';\nimport useHistory from 'routing/useHistory';\n\nimport PipelineDetails from './PipelineDetails';\n\ntype Props = {\n onChange: (pipeline: PipelineType, callback?: (pipeline: PipelineType) => void) => void;\n};\n\nconst NewPipeline = ({ onChange }: Props) => {\n const history = useHistory();\n\n const _goToPipeline = (pipeline) => {\n history.push(Routes.SYSTEM.PIPELINES.PIPELINE(pipeline.id));\n };\n\n const _goBack = () => {\n history.goBack();\n };\n\n const _onChange = (newPipeline) => {\n onChange(newPipeline, _goToPipeline);\n };\n\n return (\n \n \n \n Give a name and description to the new pipeline. You can add stages to it when you save the changes.\n
\n \n \n
\n );\n};\n\nNewPipeline.propTypes = {\n onChange: PropTypes.func.isRequired,\n};\n\nexport default NewPipeline;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nconst SourceGenerator = {\n generatePipeline(pipeline) {\n let source = `pipeline \"${pipeline.title}\"\\n`;\n\n pipeline.stages.forEach((stage) => {\n source += `stage ${stage.stage} match ${stage.match?.toLowerCase() || 'either'}\\n`;\n\n stage.rules.forEach((rule) => {\n source += `rule \"${rule}\"\\n`;\n });\n });\n\n source += 'end';\n\n return source;\n },\n};\n\nexport default SourceGenerator;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n// eslint-disable-next-line no-restricted-imports\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { Col, Row } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport Pipeline from 'components/pipelines/Pipeline';\nimport NewPipeline from 'components/pipelines/NewPipeline';\nimport SourceGenerator from 'logic/pipelines/SourceGenerator';\nimport ObjectUtils from 'util/ObjectUtils';\nimport withParams from 'routing/withParams';\nimport { StreamsStore } from 'stores/streams/StreamsStore';\nimport { PipelineConnectionsStore, PipelineConnectionsActions } from 'stores/pipelines/PipelineConnectionsStore';\nimport { PipelinesStore, PipelinesActions } from 'stores/pipelines/PipelinesStore';\nimport { RulesStore } from 'stores/rules/RulesStore';\nimport DocsHelper from 'util/DocsHelper';\n\nimport PipelinesPageNavigation from '../components/pipelines/PipelinesPageNavigation';\n\nfunction filterPipeline(state) {\n return state.pipelines ? state.pipelines.filter((p) => p.id === this.props.params.pipelineId)[0] : undefined;\n}\n\nfunction filterConnections(state) {\n if (!state.connections) {\n return undefined;\n }\n\n return state.connections.filter((c) => c.pipeline_ids && c.pipeline_ids.includes(this.props.params.pipelineId));\n}\n\nconst PipelineDetailsPage = createReactClass({\n // eslint-disable-next-line react/no-unused-class-component-methods\n displayName: 'PipelineDetailsPage',\n\n // eslint-disable-next-line react/no-unused-class-component-methods\n propTypes: {\n params: PropTypes.object.isRequired,\n },\n\n mixins: [Reflux.connectFilter(PipelinesStore, 'pipeline', filterPipeline), Reflux.connectFilter(PipelineConnectionsStore, 'connections', filterConnections)],\n\n componentDidMount() {\n const { params } = this.props;\n\n if (!this._isNewPipeline(params.pipelineId)) {\n PipelinesActions.get(params.pipelineId);\n }\n\n RulesStore.list();\n PipelineConnectionsActions.list();\n\n StreamsStore.listStreams().then((streams) => {\n const filteredStreams = streams.filter((s) => s.is_editable);\n\n this.setState({ streams: filteredStreams });\n });\n },\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (!this._isNewPipeline(nextProps.params.pipelineId)) {\n PipelinesActions.get(nextProps.params.pipelineId);\n }\n },\n\n _onConnectionsChange(updatedConnections, callback) {\n PipelineConnectionsActions.connectToPipeline(updatedConnections);\n callback();\n },\n\n _onStagesChange(newStages, callback) {\n const { pipeline } = this.state;\n const newPipeline = ObjectUtils.clone(pipeline);\n\n newPipeline.stages = newStages;\n newPipeline.source = SourceGenerator.generatePipeline(newPipeline);\n PipelinesActions.update(newPipeline);\n\n if (typeof callback === 'function') {\n callback();\n }\n },\n\n _savePipeline(pipeline, callback) {\n const requestPipeline = ObjectUtils.clone(pipeline);\n\n requestPipeline.source = SourceGenerator.generatePipeline(pipeline);\n let promise;\n\n if (requestPipeline.id) {\n promise = PipelinesActions.update(requestPipeline);\n } else {\n promise = PipelinesActions.save(requestPipeline);\n }\n\n promise.then((p) => callback(p));\n },\n\n _isNewPipeline(pipelineId) {\n return pipelineId === 'new';\n },\n\n _isLoading() {\n const { params } = this.props;\n const { connections, streams, pipeline } = this.state;\n\n return !this._isNewPipeline(params.pipelineId) && (!pipeline || !connections || !streams);\n },\n\n render() {\n if (this._isLoading()) {\n return ;\n }\n\n const { params } = this.props;\n const { connections, streams, pipeline, rules } = this.state;\n\n let title;\n\n if (this._isNewPipeline(params.pipelineId)) {\n title = 'New pipeline';\n } else {\n title = Pipeline {pipeline.title};\n }\n\n let content;\n\n if (this._isNewPipeline(params.pipelineId)) {\n content = ;\n } else {\n content = (\n \n );\n }\n\n const pageTitle = (this._isNewPipeline(params.pipelineId) ? 'New pipeline' : `Pipeline ${pipeline.title}`);\n\n return (\n \n \n \n \n \n Pipelines let you transform and process messages coming from streams. Pipelines consist of stages where\n rules are evaluated and applied. Messages can go through one or more stages.\n
\n After each stage is completed, you can decide if messages matching all or one of the rules continue to\n the next stage.\n \n \n\n \n \n {content}\n \n
\n \n \n );\n },\n});\n\nexport default withParams(PipelineDetailsPage);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport { useParams } from 'react-router-dom';\nimport type { Subtract } from 'utility-types';\n\ntype ParamsContext = {\n params: {\n [key: string]: string | null | undefined;\n };\n};\n\nconst withParams = (Component: React.ComponentType): React.ComponentType> => (props) => {\n const params = useParams();\n\n return ;\n};\n\nexport default withParams;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\n\nimport UserNotification from 'util/UserNotification';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport { qualifyUrl } from 'util/URLUtils';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\ntype PipelineConnectionsActionsType = {\n list: () => Promise,\n connectToStream: () => Promise,\n connectToPipeline: () => Promise,\n}\nexport const PipelineConnectionsActions = singletonActions(\n 'core.PipelineConnections',\n () => Reflux.createActions({\n list: { asyncResult: true },\n connectToStream: { asyncResult: true },\n connectToPipeline: { asyncResult: true },\n }),\n);\n\nexport type PipelineConnectionsType = {\n id?: string,\n stream_id: string,\n pipeline_ids: string[],\n};\n\ntype PipelineReverseConnectionsType = {\n pipeline_id: string,\n stream_ids: string[],\n};\n\ntype PipelineConnectionsStoreState = {\n connections: any,\n}\nexport const PipelineConnectionsStore = singletonStore(\n 'core.PipelineConnections',\n () => Reflux.createStore({\n listenables: [PipelineConnectionsActions],\n connections: undefined,\n\n getInitialState() {\n return { connections: this.connections };\n },\n\n list() {\n const failCallback = (error) => {\n UserNotification.error(`Fetching pipeline connections failed with status: ${error.message}`,\n 'Could not retrieve pipeline connections');\n };\n\n const url = qualifyUrl(ApiRoutes.ConnectionsController.list().url);\n const promise = fetch('GET', url);\n\n promise.then((response) => {\n this.connections = response;\n this.trigger({ connections: response });\n }, failCallback);\n },\n\n connectToStream(connection) {\n const url = qualifyUrl(ApiRoutes.ConnectionsController.to_stream().url);\n const updatedConnection: PipelineConnectionsType = {\n stream_id: connection.stream,\n pipeline_ids: connection.pipelines,\n };\n const promise = fetch('POST', url, updatedConnection);\n\n promise.then(\n (response) => {\n if (this.connections.filter((c) => c.stream_id === response.stream_id)[0]) {\n this.connections = this.connections.map((c) => (c.stream_id === response.stream_id ? response : c));\n } else {\n this.connections.push(response);\n }\n\n this.trigger({ connections: this.connections });\n UserNotification.success('Pipeline connections updated successfully');\n },\n this._failUpdateCallback,\n );\n },\n\n connectToPipeline(reverseConnection) {\n const url = qualifyUrl(ApiRoutes.ConnectionsController.to_pipeline().url);\n const updatedConnection: PipelineReverseConnectionsType = {\n pipeline_id: reverseConnection.pipeline,\n stream_ids: reverseConnection.streams,\n };\n const promise = fetch('POST', url, updatedConnection);\n\n promise.then(\n (response) => {\n response.forEach((connection) => {\n if (this.connections.filter((c) => c.stream_id === connection.stream_id)[0]) {\n this.connections = this.connections.map((c) => (c.stream_id === connection.stream_id ? connection : c));\n } else {\n this.connections.push(connection);\n }\n });\n\n this.trigger({ connections: this.connections });\n UserNotification.success('Pipeline connections updated successfully');\n },\n this._failUpdateCallback,\n );\n },\n\n _failUpdateCallback(error) {\n UserNotification.error(`Updating pipeline connections failed with status: ${error.message}`,\n 'Could not update pipeline connections');\n },\n }),\n);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\nimport Immutable from 'immutable';\n\nimport UserNotification from 'util/UserNotification';\nimport { qualifyUrl } from 'util/URLUtils';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport fetch from 'logic/rest/FetchProvider';\nimport type { PaginatedList, PaginatedListJSON, Pagination } from 'stores/PaginationTypes';\nimport PaginationURL from 'util/PaginationURL';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\ntype PipelinesActionsType = {\n delete: (id: string) => Promise,\n list: () => Promise,\n listPaginated: (pagination: Pagination) => Promise,\n get: () => Promise,\n save: () => Promise,\n update: () => Promise,\n parse: () => Promise,\n}\nexport const PipelinesActions = singletonActions(\n 'core.Pipelines',\n () => Reflux.createActions({\n delete: { asyncResult: true },\n list: { asyncResult: true },\n listPaginated: { asyncResult: true },\n get: { asyncResult: true },\n save: { asyncResult: true },\n update: { asyncResult: true },\n parse: { asyncResult: true },\n }),\n);\n\nexport type PipelineType = {\n id: string,\n title: string,\n description: string,\n source: string,\n created_at: string,\n modified_at: string,\n stages: StageType[],\n errors?: [],\n};\n\nexport type StageType = {\n stage: number,\n match: string,\n rules: [string],\n};\n\nexport type PaginatedPipelineResponse = PaginatedListJSON & {\n pipelines: Array,\n};\n\nexport type PaginatedPipelines = PaginatedList;\n\nconst listFailCallback = (error: Error) => {\n UserNotification.error(`Fetching pipelines failed with status: ${error.message}`,\n 'Could not retrieve processing pipelines');\n};\n\nexport const PipelinesStore = singletonStore(\n 'core.Pipelines',\n () => Reflux.createStore({\n listenables: [PipelinesActions],\n pipelines: undefined,\n\n getInitialState() {\n return { pipelines: this.pipelines };\n },\n\n _updatePipelinesState(pipeline: PipelineType) {\n if (!this.pipelines) {\n this.pipelines = [pipeline];\n } else {\n const doesPipelineExist = this.pipelines.some((p) => p.id === pipeline.id);\n\n if (doesPipelineExist) {\n this.pipelines = this.pipelines.map((p) => (p.id === pipeline.id ? pipeline : p));\n } else {\n this.pipelines.push(pipeline);\n }\n }\n\n this.trigger({ pipelines: this.pipelines });\n },\n\n list() {\n const url = qualifyUrl(ApiRoutes.PipelinesController.list().url);\n\n return fetch('GET', url).then((response) => {\n this.pipelines = response;\n this.trigger({ pipelines: response });\n }, listFailCallback);\n },\n\n listPaginated({\n page,\n perPage,\n query,\n }: Pagination): Promise {\n const url = PaginationURL(ApiRoutes.PipelinesController.paginatedList().url, page, perPage, query);\n\n const promise = fetch('GET', qualifyUrl(url)).then((response: PaginatedPipelineResponse) => ({\n list: Immutable.List(response.pipelines),\n pagination: {\n page: response.page,\n perPage: response.per_page,\n query: response.query,\n count: response.count,\n total: response.total,\n },\n }));\n promise.catch(listFailCallback);\n\n PipelinesActions.listPaginated.promise(promise);\n\n return promise;\n },\n\n get(pipelineId) {\n const failCallback = (error) => {\n UserNotification.error(`Fetching pipeline failed with status: ${error.message}`,\n `Could not retrieve processing pipeline \"${pipelineId}\"`);\n };\n\n const url = qualifyUrl(ApiRoutes.PipelinesController.get(pipelineId).url);\n const promise = fetch('GET', url);\n\n promise.then(this._updatePipelinesState, failCallback);\n },\n\n save(pipelineSource) {\n const failCallback = (error) => {\n UserNotification.error(`Saving pipeline failed with status: ${error.message}`,\n 'Could not save processing pipeline');\n };\n\n const url = qualifyUrl(ApiRoutes.PipelinesController.create().url);\n const pipeline = {\n title: pipelineSource.title,\n description: pipelineSource.description,\n source: pipelineSource.source,\n };\n const promise = fetch('POST', url, pipeline);\n\n promise.then(\n (response) => {\n this._updatePipelinesState(response);\n UserNotification.success(`Pipeline \"${pipeline.title}\" created successfully`);\n },\n failCallback,\n );\n\n PipelinesActions.save.promise(promise);\n },\n\n update(pipelineSource) {\n const failCallback = (error) => {\n UserNotification.error(`Updating pipeline failed with status: ${error.message}`,\n 'Could not update processing pipeline');\n };\n\n const url = qualifyUrl(ApiRoutes.PipelinesController.update(pipelineSource.id).url);\n const pipeline = {\n id: pipelineSource.id,\n title: pipelineSource.title,\n description: pipelineSource.description,\n source: pipelineSource.source,\n };\n const promise = fetch('PUT', url, pipeline);\n\n promise.then(\n (response) => {\n this._updatePipelinesState(response);\n UserNotification.success(`Pipeline \"${pipeline.title}\" updated successfully`);\n },\n failCallback,\n );\n\n PipelinesActions.update.promise(promise);\n },\n delete(pipelineId) {\n const failCallback = (error) => {\n UserNotification.error(`Deleting pipeline failed with status: ${error.message}`,\n `Could not delete processing pipeline \"${pipelineId}\"`);\n };\n\n const url = qualifyUrl(ApiRoutes.PipelinesController.delete(pipelineId).url);\n\n const promise = fetch('DELETE', url).then(() => {\n const updatedPipelines = this.pipelines || [];\n\n this.pipelines = updatedPipelines.filter((el) => el.id !== pipelineId);\n this.trigger({ pipelines: this.pipelines });\n UserNotification.success(`Pipeline \"${pipelineId}\" deleted successfully`);\n }, failCallback);\n\n PipelinesActions.delete.promise(promise);\n\n return promise;\n },\n parse(pipelineSource, callback) {\n const url = qualifyUrl(ApiRoutes.PipelinesController.parse().url);\n const pipeline = {\n title: pipelineSource.title,\n description: pipelineSource.description,\n source: pipelineSource.source,\n };\n\n return fetch('POST', url, pipeline).then(\n () => {\n // call to clear the errors, the parsing was successful\n callback([]);\n },\n (error) => {\n // a Bad Request indicates a parse error, set all the returned errors in the editor\n if (error.status === 400) {\n callback(error.additional.body);\n }\n },\n );\n },\n }),\n);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\n\nimport { defaultCompare as naturalSort } from 'logic/DefaultCompare';\nimport UserNotification from 'util/UserNotification';\nimport { qualifyUrl } from 'util/URLUtils';\nimport PaginationURL from 'util/PaginationURL';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\nimport type { Pagination, PaginatedListJSON, ListPagination } from 'stores/PaginationTypes';\nimport type FetchError from 'logic/errors/FetchError';\nimport type { RuleBuilderType } from 'components/rules/rule-builder/types';\n\nexport type RuleType = {\n id?: string,\n source: string,\n title: string,\n description: string,\n created_at: string,\n modified_at: string,\n rule_builder: RuleBuilderType,\n errors?: [],\n simulator_message?: string,\n};\nexport type MetricsConfigType = {\n metrics_enabled: boolean,\n};\nexport type PipelineSummary = {\n id: string,\n title: string,\n};\nexport type RulesContext = {\n used_in_pipelines: {\n [id: string]: Array,\n }\n};\nexport type PaginatedRulesResponse = PaginatedListJSON & {\n rules: Array,\n context: RulesContext,\n};\n\nexport type PaginatedRules = {\n list: Array,\n context: RulesContext,\n pagination: ListPagination,\n};\n\nexport type RulesStoreState = {\n rules: Array,\n rulesContext: RulesContext,\n functionDescriptors: any,\n metricsConfig: MetricsConfigType | undefined,\n};\n\ntype RulesActionsType = {\n delete: (rule: RuleType) => Promise,\n list: () => Promise,\n get: (ruleId: string) => Promise,\n save: (rule: RuleType) => Promise,\n update: (rule: RuleType) => Promise,\n parse: (rule: RuleType, callback: () => void) => Promise,\n simulate: (messageString: string, rule: RuleType, callback: React.Dispatch | (() => void)) => Promise,\n multiple: () => Promise,\n loadFunctions: () => Promise,\n loadMetricsConfig: () => Promise,\n updateMetricsConfig: () => Promise,\n listPaginated: (pagination: Pagination) => Promise,\n};\n\nexport const RulesActions = singletonActions(\n 'core.Rules',\n () => Reflux.createActions({\n delete: { asyncResult: true },\n list: { asyncResult: true },\n get: { asyncResult: true },\n save: { asyncResult: true },\n update: { asyncResult: true },\n parse: { asyncResult: true },\n simulate: { asyncResult: true },\n multiple: { asyncResult: true },\n loadFunctions: { asyncResult: true },\n loadMetricsConfig: { asyncResult: true },\n updateMetricsConfig: { asyncResult: true },\n listPaginated: { asyncResult: true },\n }),\n);\n\nexport const RulesStore = singletonStore(\n 'core.Rules',\n () => Reflux.createStore<{ rules: RuleType[] }>({\n listenables: [RulesActions],\n rules: undefined,\n rulesContext: undefined,\n functionDescriptors: undefined,\n metricsConfig: undefined,\n\n getInitialState() {\n return {\n rules: this.rules,\n rulesContext: this.rulesContext,\n functionDescriptors: this.functionDescriptors,\n metricsConfig: this.metricsConfig,\n };\n },\n\n _updateRulesState(rule) {\n if (!this.rules) {\n this.rules = [rule];\n } else {\n const doesRuleExist = this.rules.some((r) => r.id === rule.id);\n\n if (doesRuleExist) {\n this.rules = this.rules.map((r) => (r.id === rule.id ? rule : r));\n } else {\n this.rules.push(rule);\n }\n }\n\n this.trigger({ rules: this.rules, functionDescriptors: this.functionDescriptors });\n },\n\n _updateFunctionDescriptors(functions) {\n if (functions) {\n this.functionDescriptors = functions.sort((fn1, fn2) => naturalSort(fn1.name, fn2.name));\n }\n\n this.trigger({ rules: this.rules, functionDescriptors: this.functionDescriptors });\n },\n\n list() {\n const failCallback = (error: Error) => {\n UserNotification.error(`Fetching rules failed with status: ${error.message}`,\n 'Could not retrieve processing rules');\n };\n\n const url = qualifyUrl(ApiRoutes.RulesController.list().url);\n\n return fetch('GET', url).then((response) => {\n this.rules = response;\n this.trigger({ rules: response, functionDescriptors: this.functionDescriptors });\n }, failCallback);\n },\n\n listPaginated({ page, perPage, query }: Pagination): Promise {\n const url = PaginationURL(ApiRoutes.RulesController.paginatedList().url, page, perPage, query);\n const promise = fetch('GET', qualifyUrl(url))\n .then((response: PaginatedRulesResponse) => ({\n list: response.rules,\n context: response.context,\n pagination: {\n count: response.count,\n total: response.total,\n page: response.page,\n perPage: response.per_page,\n query: response.query,\n },\n }));\n\n promise.catch((error: FetchError) => {\n if (!error.additional || error.additional.status !== 404) {\n UserNotification.error(`Loading rules list failed with status: ${error}`, 'Could not load rules.');\n }\n });\n\n RulesActions.listPaginated.promise(promise);\n\n return promise;\n },\n\n get(ruleId: string) {\n const failCallback = (error: Error) => {\n UserNotification.error(`Fetching rule \"${ruleId}\" failed with status: ${error.message}`,\n `Could not retrieve processing rule \"${ruleId}\"`);\n };\n\n const url = qualifyUrl(ApiRoutes.RulesController.get(ruleId).url);\n const promise = fetch('GET', url);\n\n promise.then(this._updateRulesState, failCallback);\n RulesActions.get.promise(promise);\n\n return promise;\n },\n\n save(ruleSource: RuleType) {\n const failCallback = (error: Error) => {\n UserNotification.error(`Saving rule \"${ruleSource.title}\" failed with status: ${error.message}`,\n `Could not save processing rule \"${ruleSource.title}\"`);\n };\n\n const url = qualifyUrl(ApiRoutes.RulesController.create().url);\n const rule = {\n title: ruleSource.title,\n description: ruleSource.description,\n source: ruleSource.source,\n simulator_message: ruleSource.simulator_message,\n };\n const promise = fetch('POST', url, rule);\n\n promise.then((response) => {\n this._updateRulesState(response);\n UserNotification.success(`Rule \"${response.title}\" created successfully`);\n\n return response;\n }, failCallback);\n\n RulesActions.save.promise(promise);\n\n return promise;\n },\n\n update(ruleSource: RuleType) {\n const failCallback = (error) => {\n UserNotification.error(`Updating rule \"${ruleSource.title}\" failed with status: ${error.message}`,\n `Could not update processing rule \"${ruleSource.title}\"`);\n };\n\n const url = qualifyUrl(ApiRoutes.RulesController.update(ruleSource.id).url);\n const rule = {\n id: ruleSource.id,\n title: ruleSource.title,\n description: ruleSource.description,\n source: ruleSource.source,\n simulator_message: ruleSource.simulator_message,\n };\n const promise = fetch('PUT', url, rule);\n\n promise.then((response) => {\n this._updateRulesState(response);\n UserNotification.success(`Rule \"${response.title}\" updated successfully`);\n\n return response;\n }, failCallback);\n\n RulesActions.update.promise(promise);\n\n return promise;\n },\n delete(rule) {\n const failCallback = (error: Error) => {\n UserNotification.error(`Deleting rule \"${rule.title}\" failed with status: ${error.message}`,\n `Could not delete processing rule \"${rule.title}\"`);\n };\n\n const url = qualifyUrl(ApiRoutes.RulesController.delete(rule.id).url);\n\n const promise = fetch('DELETE', url).then(() => {\n this.rules = this.rules?.filter((el) => el.id !== rule.id);\n this.trigger({ rules: this.rules, functionDescriptors: this.functionDescriptors });\n UserNotification.success(`Rule \"${rule.title}\" was deleted successfully`);\n }, failCallback);\n\n RulesActions.delete.promise(promise);\n\n return promise;\n },\n parse(ruleSource, callback) {\n const url = qualifyUrl(ApiRoutes.RulesController.parse().url);\n const rule = {\n title: ruleSource.title,\n description: ruleSource.description,\n source: ruleSource.source,\n };\n\n return fetch('POST', url, rule).then(\n (response) => {\n // call to clear the errors, the parsing was successful\n callback([]);\n\n return response;\n },\n (error) => {\n // a Bad Request indicates a parse error, set all the returned errors in the editor\n if (error.status === 400) {\n callback(error.additional.body);\n }\n },\n );\n },\n simulate(message, ruleToSimulate, callback) {\n const url = qualifyUrl(ruleToSimulate?.rule_builder ? ApiRoutes.RuleBuilderController.simulate().url : ApiRoutes.RulesController.simulate().url);\n const rule = {\n message,\n rule_source: undefined,\n rule_builder_dto: undefined,\n };\n\n if (ruleToSimulate?.rule_builder) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { source, ...ruleBuilderRuleToSimulate } = ruleToSimulate;\n\n rule.rule_builder_dto = {\n title: ruleBuilderRuleToSimulate.title,\n description: ruleBuilderRuleToSimulate.description,\n rule_builder: ruleBuilderRuleToSimulate.rule_builder,\n };\n } else {\n rule.rule_source = {\n title: ruleToSimulate.title,\n description: ruleToSimulate.description,\n source: ruleToSimulate.source,\n };\n }\n\n return fetch('POST', url, rule).then(callback, () => {});\n },\n multiple(ruleNames, callback) {\n const url = qualifyUrl(ApiRoutes.RulesController.multiple().url);\n const promise = fetch('POST', url, { rules: ruleNames });\n\n promise.then(callback);\n\n return promise;\n },\n loadFunctions() {\n if (this.functionDescriptors) {\n return undefined;\n }\n\n const url = qualifyUrl(ApiRoutes.RulesController.functions().url);\n\n return fetch('GET', url)\n .then(this._updateFunctionDescriptors);\n },\n loadMetricsConfig() {\n const url = qualifyUrl(ApiRoutes.RulesController.metricsConfig().url);\n const promise = fetch('GET', url);\n\n promise.then(\n (response: MetricsConfigType) => {\n this.metricsConfig = response;\n this.trigger({ rules: this.rules, functionDescriptors: this.functionDescriptors, metricsConfig: this.metricsConfig });\n },\n (error) => {\n UserNotification.error(`Couldn't load rule metrics config: ${error.message}`, \"Couldn't load rule metrics config\");\n },\n );\n\n RulesActions.loadMetricsConfig.promise(promise);\n },\n updateMetricsConfig(nextConfig) {\n const url = qualifyUrl(ApiRoutes.RulesController.metricsConfig().url);\n const promise = fetch('PUT', url, nextConfig);\n\n promise.then(\n (response) => {\n this.metricsConfig = response;\n this.trigger({ rules: this.rules, functionDescriptors: this.functionDescriptors, metricsConfig: this.metricsConfig });\n UserNotification.success('Successfully updated rule metrics config');\n },\n (error) => {\n UserNotification.error(`Couldn't update rule metrics config: ${error.message}`, \"Couldn't update rule metrics config\");\n },\n );\n\n RulesActions.updateMetricsConfig.promise(promise);\n },\n }),\n);\n"],"names":["Container","StyledButton","theme","items","path","title","permissions","exactPathMatch","PipelineConnectionsList","pipeline","connections","streams","streamsFormatter","noConnectionsMessage","streamsUsingPipeline","c","s1","s2","NAV_ITEMS","StageForm","stage","create","save","currentUser","useCurrentUser","showModal","setShowModal","_initialStageNumber","s","nextStage","setNextStage","rules","RulesStore","openModal","_onChange","target","currentStage","_onRulesChange","newRules","_closeModal","_onSaved","isOverridingStage","_handleSave","_formatRuleOption","_filterChosenRules","rule","chosenRules","_getFormattedOptions","rulesHelp","Routes","NumberUtils","TitleTd","StageRules","headers","_ruleRowFormatter","ruleArg","ruleIdx","ruleTitle","isRuleBuilder","header","Stage","isLastStage","onUpdate","onDelete","allRules","suffix","throughput","actions","description","matchText","block","content","name","r","PipelineForm","modal","onCancel","nextPipeline","setNextPipeline","_openModal","currentPipeline","_handleSubmit","event","BootstrapModalForm","PipelineDl","PipelineDetails","onChange","formatStreams","PipelineConnectionsForm","initialStreamConnections","connectedStreams","setConnectedStreams","notConnectedStreams","cs","_onStreamsChange","newStreams","_save","streamIds","newConnection","streamsHelp","ConnectionWarning","StyledRow","StyledP","Pipeline","onConnectionsChange","onStagesChange","onPipelineChange","_connectionsWarning","_saveStage","callback","newStages","_updateStage","prevStage","_deleteStage","_formatConnectedStreams","formattedStreams","streamList","formattedStages","maxStage","max","stageKey","NewPipeline","history","useHistory","_goToPipeline","_goBack","newPipeline","source","filterPipeline","state","p","filterConnections","PipelineDetailsPage","PipelinesStore","PipelineConnectionsStore","params","StreamsStore","filteredStreams","nextProps","updatedConnections","ObjectUtils","requestPipeline","promise","pipelineId","pageTitle","PipelinesPageNavigation","DocsHelper","withParams","Component","props","PipelineConnectionsActions","failCallback","error","url","response","connection","updatedConnection","reverseConnection","PipelinesActions","listFailCallback","page","perPage","query","pipelineSource","updatedPipelines","el","RulesActions","functions","fn1","fn2","ruleId","ruleSource","message","ruleToSimulate","ruleBuilderRuleToSimulate","ruleNames","nextConfig"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy