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AC,YAAK,sKAGN,CACF,EAEA,gBAAC,MAAG,CAAC,UAAU,WACb,gBAAC,MAAG,CAAC,GAAI,IACP,gBAAC,MAA0B,SAAAN,EACA,2BAAAI,EACA,mBAAAD,EACA,oBAAAD,EACA,iBAAiB,mBACjB,kBAAkB,wBAClB,WAAYK,EAAe,EAC3B,SAAUC,CAAA,CAAmB,CAC1D,CACF,CACF,CACF,CAEJ,C","sources":["webpack://graylog-web-interface/./src/pages/IndexSetConfigurationPage.tsx"],"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 { useEffect } from 'react';\n\nimport { LinkContainer } from 'components/common/router';\nimport { Row, Col, Button } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { IndexSetConfigurationForm } from 'components/indices';\nimport { useStore } from 'stores/connect';\nimport DocsHelper from 'util/DocsHelper';\nimport Routes from 'routing/Routes';\nimport type { IndexSet } from 'stores/indices/IndexSetsStore';\nimport { IndexSetsActions, IndexSetsStore } from 'stores/indices/IndexSetsStore';\nimport { IndicesConfigurationActions, IndicesConfigurationStore } from 'stores/indices/IndicesConfigurationStore';\nimport useParams from 'routing/useParams';\nimport type { HistoryFunction } from 'routing/useHistory';\nimport useHistory from 'routing/useHistory';\nimport useQuery from 'routing/useQuery';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\nimport useSendTelemetry from 'logic/telemetry/useSendTelemetry';\n\nconst _saveConfiguration = (history: HistoryFunction, indexSet: IndexSet) => IndexSetsActions.update(indexSet).then(() => {\n history.push(Routes.SYSTEM.INDICES.LIST);\n});\n\nconst IndexSetConfigurationPage = () => {\n const { indexSetId } = useParams();\n const { indexSet } = useStore(IndexSetsStore);\n const {\n retentionStrategies,\n rotationStrategies,\n retentionStrategiesContext,\n } = useStore(IndicesConfigurationStore);\n const history = useHistory();\n const { from } = useQuery();\n const sendTelemetry = useSendTelemetry();\n\n useEffect(() => {\n IndexSetsActions.get(indexSetId);\n IndicesConfigurationActions.loadRotationStrategies();\n IndicesConfigurationActions.loadRetentionStrategies();\n }, [indexSetId]);\n\n const formCancelLink = () => {\n if (from === 'details') {\n return Routes.SYSTEM.INDEX_SETS.SHOW(indexSet.id);\n }\n\n return Routes.SYSTEM.INDICES.LIST;\n };\n\n const isLoading = () => !indexSet || !rotationStrategies || !retentionStrategies || (indexSetId !== indexSet.id);\n\n if (isLoading()) {\n return ;\n }\n\n const saveConfiguration = (newIndexSet: IndexSet) => {\n _saveConfiguration(history, newIndexSet);\n\n sendTelemetry(TELEMETRY_EVENT_TYPE.INDICES.INDEX_SET_UPDATED, {\n app_pathname: 'indexsets',\n app_section: 'indexset',\n });\n };\n\n return (\n \n \n \n \n \n )}>\n \n Modify the current configuration for this index set, allowing you to customize the retention, sharding,\n and replication of messages coming from one or more streams.\n \n \n\n \n \n \n \n
\n \n \n );\n};\n\nexport default IndexSetConfigurationPage;\n"],"names":["_saveConfiguration","history","indexSet","indexSetId","retentionStrategies","rotationStrategies","retentionStrategiesContext","from","sendTelemetry","formCancelLink","saveConfiguration","newIndexSet"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy