mage-ai 0.9.70__py3-none-any.whl → 0.9.71__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/ai/utils/xgboost.py +222 -0
- mage_ai/api/errors.py +37 -25
- mage_ai/api/operations/base.py +13 -1
- mage_ai/api/parsers/PipelineScheduleParser.py +1 -1
- mage_ai/api/policies/BlockOutputPolicy.py +40 -17
- mage_ai/api/policies/GlobalDataProductPolicy.py +91 -41
- mage_ai/api/policies/KernelPolicy.py +55 -32
- mage_ai/api/policies/KernelProcessPolicy.py +56 -0
- mage_ai/api/policies/OutputPolicy.py +73 -41
- mage_ai/api/policies/PipelinePolicy.py +206 -138
- mage_ai/api/presenters/BlockLayoutItemPresenter.py +9 -7
- mage_ai/api/presenters/BlockPresenter.py +1 -1
- mage_ai/api/presenters/GlobalDataProductPresenter.py +6 -1
- mage_ai/api/presenters/KernelPresenter.py +5 -26
- mage_ai/api/presenters/KernelProcessPresenter.py +28 -0
- mage_ai/api/presenters/PipelinePresenter.py +18 -5
- mage_ai/api/presenters/StatusPresenter.py +2 -0
- mage_ai/api/presenters/SyncPresenter.py +25 -0
- mage_ai/api/resources/AutocompleteItemResource.py +1 -1
- mage_ai/api/resources/BlockLayoutItemResource.py +90 -44
- mage_ai/api/resources/BlockOutputResource.py +42 -9
- mage_ai/api/resources/BlockResource.py +4 -3
- mage_ai/api/resources/BlockRunResource.py +27 -22
- mage_ai/api/resources/ClusterResource.py +4 -1
- mage_ai/api/resources/CustomTemplateResource.py +34 -14
- mage_ai/api/resources/DataProviderResource.py +1 -1
- mage_ai/api/resources/ExecutionStateResource.py +3 -1
- mage_ai/api/resources/FileContentResource.py +8 -2
- mage_ai/api/resources/FileResource.py +10 -4
- mage_ai/api/resources/FileVersionResource.py +3 -1
- mage_ai/api/resources/GitBranchResource.py +46 -9
- mage_ai/api/resources/GlobalDataProductResource.py +44 -7
- mage_ai/api/resources/GlobalHookResource.py +4 -1
- mage_ai/api/resources/IntegrationDestinationResource.py +6 -2
- mage_ai/api/resources/IntegrationSourceResource.py +8 -4
- mage_ai/api/resources/IntegrationSourceStreamResource.py +6 -2
- mage_ai/api/resources/KernelProcessResource.py +44 -0
- mage_ai/api/resources/KernelResource.py +25 -3
- mage_ai/api/resources/OutputResource.py +33 -11
- mage_ai/api/resources/PageBlockLayoutResource.py +34 -23
- mage_ai/api/resources/PipelineInteractionResource.py +31 -15
- mage_ai/api/resources/PipelineResource.py +250 -123
- mage_ai/api/resources/PipelineRunResource.py +11 -3
- mage_ai/api/resources/PipelineScheduleResource.py +7 -2
- mage_ai/api/resources/PipelineTriggerResource.py +6 -1
- mage_ai/api/resources/ProjectResource.py +18 -7
- mage_ai/api/resources/SecretResource.py +1 -1
- mage_ai/api/resources/SeedResource.py +8 -1
- mage_ai/api/resources/StatusResource.py +21 -6
- mage_ai/api/resources/SyncResource.py +6 -8
- mage_ai/api/resources/VariableResource.py +46 -26
- mage_ai/api/resources/VersionControlProjectResource.py +9 -2
- mage_ai/api/resources/WidgetResource.py +1 -1
- mage_ai/api/resources/WorkspaceResource.py +1 -1
- mage_ai/api/views.py +47 -40
- mage_ai/authentication/permissions/seed.py +16 -2
- mage_ai/authentication/providers/oidc.py +21 -1
- mage_ai/autocomplete/utils.py +13 -9
- mage_ai/cache/base.py +1 -1
- mage_ai/cache/block.py +18 -12
- mage_ai/cache/block_action_object/__init__.py +32 -4
- mage_ai/cache/file.py +22 -19
- mage_ai/cache/pipeline.py +18 -12
- mage_ai/cli/main.py +1 -0
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +9 -5
- mage_ai/cluster_manager/config.py +2 -2
- mage_ai/cluster_manager/manage.py +1 -1
- mage_ai/cluster_manager/workspace/base.py +1 -1
- mage_ai/command_center/applications/factory.py +10 -7
- mage_ai/command_center/files/factory.py +17 -15
- mage_ai/command_center/utils.py +25 -13
- mage_ai/data/__init__.py +0 -0
- mage_ai/data/constants.py +45 -0
- mage_ai/data/models/__init__.py +0 -0
- mage_ai/data/models/base.py +119 -0
- mage_ai/data/models/constants.py +1 -0
- mage_ai/data/models/generator.py +115 -0
- mage_ai/data/models/manager.py +168 -0
- mage_ai/data/models/pyarrow/__init__.py +0 -0
- mage_ai/data/models/pyarrow/record_batch.py +55 -0
- mage_ai/data/models/pyarrow/shared.py +21 -0
- mage_ai/data/models/pyarrow/table.py +8 -0
- mage_ai/data/models/reader.py +103 -0
- mage_ai/data/models/utils.py +59 -0
- mage_ai/data/models/writer.py +91 -0
- mage_ai/data/tabular/__init__.py +0 -0
- mage_ai/data/tabular/constants.py +23 -0
- mage_ai/data/tabular/mocks.py +19 -0
- mage_ai/data/tabular/models.py +126 -0
- mage_ai/data/tabular/reader.py +602 -0
- mage_ai/data/tabular/utils.py +102 -0
- mage_ai/data/tabular/writer.py +266 -0
- mage_ai/data/variables/__init__.py +0 -0
- mage_ai/data/variables/wrapper.py +54 -0
- mage_ai/data_cleaner/analysis/charts.py +61 -39
- mage_ai/data_cleaner/column_types/column_type_detector.py +53 -31
- mage_ai/data_cleaner/estimators/encoders.py +5 -2
- mage_ai/data_integrations/utils/scheduler.py +16 -11
- mage_ai/data_preparation/decorators.py +1 -0
- mage_ai/data_preparation/executors/block_executor.py +237 -155
- mage_ai/data_preparation/executors/streaming_pipeline_executor.py +1 -1
- mage_ai/data_preparation/git/__init__.py +27 -7
- mage_ai/data_preparation/git/api.py +7 -1
- mage_ai/data_preparation/git/utils.py +22 -16
- mage_ai/data_preparation/logging/logger_manager.py +4 -3
- mage_ai/data_preparation/models/block/__init__.py +1542 -878
- mage_ai/data_preparation/models/block/data_integration/mixins.py +4 -3
- mage_ai/data_preparation/models/block/dynamic/__init__.py +17 -6
- mage_ai/data_preparation/models/block/dynamic/child.py +41 -102
- mage_ai/data_preparation/models/block/dynamic/constants.py +1 -0
- mage_ai/data_preparation/models/block/dynamic/counter.py +296 -0
- mage_ai/data_preparation/models/block/dynamic/data.py +16 -0
- mage_ai/data_preparation/models/block/dynamic/factory.py +163 -0
- mage_ai/data_preparation/models/block/dynamic/models.py +19 -0
- mage_ai/data_preparation/models/block/dynamic/shared.py +92 -0
- mage_ai/data_preparation/models/block/dynamic/utils.py +291 -168
- mage_ai/data_preparation/models/block/dynamic/variables.py +384 -144
- mage_ai/data_preparation/models/block/dynamic/wrappers.py +77 -0
- mage_ai/data_preparation/models/block/extension/utils.py +10 -1
- mage_ai/data_preparation/models/block/global_data_product/__init__.py +10 -1
- mage_ai/data_preparation/models/block/integration/__init__.py +6 -2
- mage_ai/data_preparation/models/block/outputs.py +722 -0
- mage_ai/data_preparation/models/block/platform/mixins.py +7 -8
- mage_ai/data_preparation/models/block/r/__init__.py +56 -38
- mage_ai/data_preparation/models/block/settings/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/dynamic/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/dynamic/constants.py +7 -0
- mage_ai/data_preparation/models/block/settings/dynamic/mixins.py +118 -0
- mage_ai/data_preparation/models/block/settings/dynamic/models.py +31 -0
- mage_ai/data_preparation/models/block/settings/global_data_products/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/global_data_products/mixins.py +20 -0
- mage_ai/data_preparation/models/block/settings/global_data_products/models.py +46 -0
- mage_ai/data_preparation/models/block/settings/variables/__init__.py +0 -0
- mage_ai/data_preparation/models/block/settings/variables/mixins.py +74 -0
- mage_ai/data_preparation/models/block/settings/variables/models.py +49 -0
- mage_ai/data_preparation/models/block/spark/mixins.py +2 -1
- mage_ai/data_preparation/models/block/sql/__init__.py +30 -5
- mage_ai/data_preparation/models/block/sql/utils/shared.py +21 -3
- mage_ai/data_preparation/models/block/utils.py +127 -70
- mage_ai/data_preparation/models/constants.py +19 -14
- mage_ai/data_preparation/models/custom_templates/custom_block_template.py +18 -13
- mage_ai/data_preparation/models/custom_templates/custom_pipeline_template.py +33 -16
- mage_ai/data_preparation/models/custom_templates/utils.py +1 -1
- mage_ai/data_preparation/models/file.py +41 -28
- mage_ai/data_preparation/models/global_data_product/__init__.py +88 -58
- mage_ai/data_preparation/models/global_hooks/models.py +1 -0
- mage_ai/data_preparation/models/interfaces.py +29 -0
- mage_ai/data_preparation/models/pipeline.py +365 -180
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +1 -2
- mage_ai/data_preparation/models/pipelines/seed.py +1 -1
- mage_ai/data_preparation/models/project/__init__.py +66 -18
- mage_ai/data_preparation/models/project/constants.py +2 -0
- mage_ai/data_preparation/models/triggers/__init__.py +120 -24
- mage_ai/data_preparation/models/utils.py +467 -17
- mage_ai/data_preparation/models/variable.py +1028 -137
- mage_ai/data_preparation/models/variables/__init__.py +0 -0
- mage_ai/data_preparation/models/variables/cache.py +149 -0
- mage_ai/data_preparation/models/variables/constants.py +72 -0
- mage_ai/data_preparation/models/variables/summarizer.py +336 -0
- mage_ai/data_preparation/models/variables/utils.py +77 -0
- mage_ai/data_preparation/models/widget/__init__.py +63 -41
- mage_ai/data_preparation/models/widget/charts.py +40 -27
- mage_ai/data_preparation/models/widget/constants.py +2 -0
- mage_ai/data_preparation/models/widget/utils.py +3 -3
- mage_ai/data_preparation/preferences.py +3 -3
- mage_ai/data_preparation/repo_manager.py +55 -21
- mage_ai/data_preparation/storage/base_storage.py +2 -2
- mage_ai/data_preparation/storage/gcs_storage.py +7 -4
- mage_ai/data_preparation/storage/local_storage.py +6 -3
- mage_ai/data_preparation/storage/s3_storage.py +5 -2
- mage_ai/data_preparation/templates/data_exporters/streaming/oracledb.yaml +8 -0
- mage_ai/data_preparation/variable_manager.py +281 -76
- mage_ai/io/base.py +3 -2
- mage_ai/io/bigquery.py +1 -0
- mage_ai/io/redshift.py +7 -5
- mage_ai/kernels/__init__.py +0 -0
- mage_ai/kernels/models.py +188 -0
- mage_ai/kernels/utils.py +169 -0
- mage_ai/orchestration/concurrency.py +6 -2
- mage_ai/orchestration/db/__init__.py +1 -0
- mage_ai/orchestration/db/migrations/versions/0227396a216c_add_userproject_table.py +38 -0
- mage_ai/orchestration/db/models/dynamic/__init__.py +0 -0
- mage_ai/orchestration/db/models/dynamic/controller.py +67 -0
- mage_ai/orchestration/db/models/oauth.py +2 -9
- mage_ai/orchestration/db/models/projects.py +10 -0
- mage_ai/orchestration/db/models/schedules.py +204 -187
- mage_ai/orchestration/db/models/schedules_project_platform.py +18 -12
- mage_ai/orchestration/db/models/utils.py +46 -5
- mage_ai/orchestration/metrics/pipeline_run.py +8 -9
- mage_ai/orchestration/notification/sender.py +1 -0
- mage_ai/orchestration/pipeline_scheduler_original.py +32 -8
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +1 -1
- mage_ai/orchestration/run_status_checker.py +11 -4
- mage_ai/orchestration/triggers/api.py +12 -1
- mage_ai/presenters/charts/data_sources/base.py +4 -2
- mage_ai/presenters/charts/data_sources/block.py +15 -9
- mage_ai/presenters/charts/data_sources/chart_code.py +8 -5
- mage_ai/presenters/charts/data_sources/constants.py +1 -0
- mage_ai/presenters/charts/data_sources/system_metrics.py +22 -0
- mage_ai/presenters/interactions/models.py +11 -7
- mage_ai/presenters/pages/loaders/pipelines.py +5 -3
- mage_ai/presenters/pages/models/page_components/pipeline_schedules.py +3 -1
- mage_ai/presenters/utils.py +2 -0
- mage_ai/server/api/blocks.py +2 -1
- mage_ai/server/api/downloads.py +5 -1
- mage_ai/server/api/triggers.py +3 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +5 -5
- mage_ai/server/frontend_dist/_next/static/UZLabyPgcxtZvp0O0EUUS/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1376-22de38b4ad008d8a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1557-b3502f3f1aa92ac7.js → 1557-25a7d985d5564fd3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1668-30b4619b9534519b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1799-c42db95a015689ee.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2996-2108b53b9d371d8d.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3763-61b542dafdbf5754.js → frontend_dist/_next/static/chunks/3763-40780c6d1e4b261d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-129dd2a2448a2e36.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3958-bcdfa414ccfa1eb2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4168-97fd1578d1a38315.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4982-fa5a238b139fbdd2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5699-176f445e1313f001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7162-7dd03f0f605de721.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7779-68d2b72a90c5f925.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7966-5446a8e43711e2f9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8023-6c2f172f48dcb99b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8095-c351b8a735d73e0c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{main-77fe248a6fbd12d8.js → main-b99d4e30a88d9dc7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-9fe2d9d07c94e968.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{block-layout-14f952f66964022f.js → block-layout-7f4b735c67115df5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-e7d48e6b0c3068ac.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-b943f31f050fc3a4.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-597b74828bf105db.js → frontend_dist/_next/static/chunks/pages/overview-9f1ac4ec003884f3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-7181b086c93784d2.js → [...slug]-7e737f6fc7e83e9b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-d94488e3f2eeef36.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cc641a7fa8473796.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-a5c0362763a21fa8.js → block-runs-284309877f3c5a5a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-26250e5335194ade.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-7acc7afc00df17c2.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5f4c8128b2413fd8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-4ebfc8e400315dda.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-e5e0150a256aadb3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/{profile-3f0df3decc856ee9.js → profile-3ae43c932537b254.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-32985f3f7c7dd3ab.js → frontend_dist/_next/static/chunks/pages/settings/platform/preferences-b603d7fe4b175256.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-c2e9ef989c8bfa73.js → frontend_dist/_next/static/chunks/pages/settings/platform/settings-319ddbabc239e91b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-47b64ced27c24985.js → [...slug]-5c360f72e4498855.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-e5a4d3d815cec25d.js → permissions-fb29fa6c2bd90bb0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-3b76fa959ffa09d3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-379e1ee292504842.js → [...slug]-3b787b42f1093b1f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles-0b83fbdd39e85f5b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-a1e6950974d643a8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-2af9afbe727d88aa.js → [...slug]-0aa019d87db8b0b8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4db8710f703c729.js → users-88c694d19207f2ec.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-31d0d50f7f30462b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-d079359c241db804.js → webpack-ac7fdc472bedf682.js} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +6 -6
- mage_ai/server/frontend_dist/files.html +6 -6
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-data-products.html +6 -6
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +6 -6
- mage_ai/server/frontend_dist/manage/settings.html +6 -6
- mage_ai/server/frontend_dist/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist/manage/users.html +6 -6
- mage_ai/server/frontend_dist/manage.html +6 -6
- mage_ai/server/frontend_dist/oauth.html +5 -5
- mage_ai/server/frontend_dist/overview.html +6 -6
- mage_ai/server/frontend_dist/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +12 -12
- mage_ai/server/frontend_dist/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist/templates.html +6 -6
- mage_ai/server/frontend_dist/terminal.html +6 -6
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +6 -6
- mage_ai/server/frontend_dist/version-control.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/404.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1376-22de38b4ad008d8a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1557-b3502f3f1aa92ac7.js → 1557-25a7d985d5564fd3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1668-30b4619b9534519b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1799-c42db95a015689ee.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2996-2108b53b9d371d8d.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3763-61b542dafdbf5754.js → frontend_dist_base_path_template/_next/static/chunks/3763-40780c6d1e4b261d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-129dd2a2448a2e36.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3958-bcdfa414ccfa1eb2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4168-97fd1578d1a38315.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4982-fa5a238b139fbdd2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5699-176f445e1313f001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7162-7dd03f0f605de721.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7779-68d2b72a90c5f925.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7966-5446a8e43711e2f9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8023-6c2f172f48dcb99b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-c351b8a735d73e0c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{main-70b78159c2bb3fe1.js → main-384298e9133cec76.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-13a578bce3b7f30c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{block-layout-14f952f66964022f.js → block-layout-7f4b735c67115df5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-e7d48e6b0c3068ac.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-b943f31f050fc3a4.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-597b74828bf105db.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-9f1ac4ec003884f3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-7181b086c93784d2.js → [...slug]-7e737f6fc7e83e9b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-d94488e3f2eeef36.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cc641a7fa8473796.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-a5c0362763a21fa8.js → block-runs-284309877f3c5a5a.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-26250e5335194ade.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-7acc7afc00df17c2.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5f4c8128b2413fd8.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-4ebfc8e400315dda.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-e5e0150a256aadb3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/{profile-3f0df3decc856ee9.js → profile-3ae43c932537b254.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/platform/preferences-32985f3f7c7dd3ab.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-b603d7fe4b175256.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/platform/settings-c2e9ef989c8bfa73.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-319ddbabc239e91b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-47b64ced27c24985.js → [...slug]-5c360f72e4498855.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-e5a4d3d815cec25d.js → permissions-fb29fa6c2bd90bb0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-3b76fa959ffa09d3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-379e1ee292504842.js → [...slug]-3b787b42f1093b1f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles-0b83fbdd39e85f5b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-a1e6950974d643a8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-2af9afbe727d88aa.js → [...slug]-0aa019d87db8b0b8.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-a4db8710f703c729.js → users-88c694d19207f2ec.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-31d0d50f7f30462b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-68c003fb6a175cd7.js → webpack-481689d9989710cd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/kcptwoOU-JJJg6Vwpkfmx/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/compute.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/files.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/manage.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/oauth.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/overview.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +12 -12
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +6 -6
- mage_ai/server/frontend_dist_base_path_template/templates.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/terminal.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/triggers.html +6 -6
- mage_ai/server/frontend_dist_base_path_template/version-control.html +6 -6
- mage_ai/server/kernel_output_parser.py +4 -1
- mage_ai/server/scheduler_manager.py +9 -0
- mage_ai/server/server.py +35 -31
- mage_ai/server/utils/custom_output.py +284 -0
- mage_ai/server/utils/execute_custom_code.py +245 -0
- mage_ai/server/utils/output_display.py +123 -289
- mage_ai/server/websocket_server.py +116 -69
- mage_ai/services/k8s/config.py +23 -0
- mage_ai/services/k8s/job_manager.py +6 -1
- mage_ai/services/ssh/aws/emr/utils.py +8 -8
- mage_ai/settings/keys/auth.py +1 -0
- mage_ai/settings/platform/__init__.py +159 -38
- mage_ai/settings/platform/constants.py +5 -0
- mage_ai/settings/platform/utils.py +53 -10
- mage_ai/settings/repo.py +26 -12
- mage_ai/settings/server.py +128 -37
- mage_ai/shared/array.py +24 -1
- mage_ai/shared/complex.py +45 -0
- mage_ai/shared/config.py +2 -1
- mage_ai/shared/custom_logger.py +11 -0
- mage_ai/shared/dates.py +10 -6
- mage_ai/shared/files.py +63 -8
- mage_ai/shared/hash.py +33 -9
- mage_ai/shared/io.py +9 -5
- mage_ai/shared/models.py +82 -24
- mage_ai/shared/outputs.py +87 -0
- mage_ai/shared/parsers.py +141 -15
- mage_ai/shared/path_fixer.py +11 -7
- mage_ai/shared/singletons/__init__.py +0 -0
- mage_ai/shared/singletons/base.py +47 -0
- mage_ai/shared/singletons/memory.py +38 -0
- mage_ai/shared/strings.py +34 -1
- mage_ai/shared/yaml.py +24 -0
- mage_ai/streaming/sinks/oracledb.py +57 -0
- mage_ai/streaming/sinks/sink_factory.py +4 -0
- mage_ai/system/__init__.py +0 -0
- mage_ai/system/constants.py +14 -0
- mage_ai/system/memory/__init__.py +0 -0
- mage_ai/system/memory/constants.py +1 -0
- mage_ai/system/memory/manager.py +174 -0
- mage_ai/system/memory/presenters.py +158 -0
- mage_ai/system/memory/process.py +216 -0
- mage_ai/system/memory/samples.py +13 -0
- mage_ai/system/memory/utils.py +656 -0
- mage_ai/system/memory/wrappers.py +177 -0
- mage_ai/system/models.py +58 -0
- mage_ai/system/storage/__init__.py +0 -0
- mage_ai/system/storage/utils.py +29 -0
- mage_ai/tests/api/endpoints/mixins.py +2 -2
- mage_ai/tests/api/endpoints/test_blocks.py +2 -1
- mage_ai/tests/api/endpoints/test_custom_designs.py +4 -4
- mage_ai/tests/api/endpoints/test_pipeline_runs.py +2 -2
- mage_ai/tests/api/endpoints/test_projects.py +2 -1
- mage_ai/tests/api/operations/base/test_base.py +27 -27
- mage_ai/tests/api/operations/base/test_base_with_user_authentication.py +27 -27
- mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +23 -23
- mage_ai/tests/api/operations/test_syncs.py +6 -4
- mage_ai/tests/api/resources/test_pipeline_resource.py +9 -2
- mage_ai/tests/authentication/providers/test_oidc.py +59 -0
- mage_ai/tests/base_test.py +2 -2
- mage_ai/tests/data/__init__.py +0 -0
- mage_ai/tests/data/models/__init__.py +0 -0
- mage_ai/tests/data_preparation/executors/test_block_executor.py +23 -16
- mage_ai/tests/data_preparation/git/test_git.py +4 -1
- mage_ai/tests/data_preparation/models/block/dynamic/test_combos.py +305 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_counter.py +212 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_factory.py +360 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_variables.py +332 -0
- mage_ai/tests/data_preparation/models/block/hook/test_hook_block.py +2 -2
- mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +1 -1
- mage_ai/tests/data_preparation/models/block/sql/utils/test_shared.py +26 -1
- mage_ai/tests/data_preparation/models/block/test_global_data_product.py +3 -2
- mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +5 -4
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +3 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +9 -3
- mage_ai/tests/data_preparation/models/test_block.py +115 -120
- mage_ai/tests/data_preparation/models/test_blocks_helper.py +114 -0
- mage_ai/tests/data_preparation/models/test_global_data_product.py +41 -24
- mage_ai/tests/data_preparation/models/test_pipeline.py +9 -6
- mage_ai/tests/data_preparation/models/test_project.py +4 -1
- mage_ai/tests/data_preparation/models/test_utils.py +80 -0
- mage_ai/tests/data_preparation/models/test_variable.py +242 -69
- mage_ai/tests/data_preparation/models/variables/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/variables/test_summarizer.py +481 -0
- mage_ai/tests/data_preparation/storage/shared/__init__.py +0 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +6 -7
- mage_ai/tests/data_preparation/test_variable_manager.py +57 -48
- mage_ai/tests/factory.py +64 -43
- mage_ai/tests/orchestration/db/models/test_schedules.py +3 -3
- mage_ai/tests/orchestration/db/models/test_schedules_dynamic_blocks.py +279 -0
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +1 -0
- mage_ai/tests/orchestration/triggers/test_global_data_product.py +3 -2
- mage_ai/tests/orchestration/triggers/test_utils.py +3 -2
- mage_ai/tests/services/k8s/test_job_manager.py +18 -0
- mage_ai/tests/streaming/sinks/test_oracledb.py +38 -0
- mage_ai/tests/test_shared.py +61 -0
- mage_ai/usage_statistics/logger.py +7 -2
- mage_ai/utils/code.py +33 -19
- {mage_ai-0.9.70.dist-info → mage_ai-0.9.71.dist-info}/METADATA +5 -2
- {mage_ai-0.9.70.dist-info → mage_ai-0.9.71.dist-info}/RECORD +513 -417
- mage_ai/data_preparation/models/global_data_product/constants.py +0 -6
- mage_ai/server/frontend_dist/_next/static/RhDiJSkcjCsh4xxX4BFBk/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2631-b9f9bea3f1cf906d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3782-ef4cd4f0b52072d0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4783-422429203610c318.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5699-6d708c6b2153ea08.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/635-0d6b7c8804bcd2dc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-8a23dd8360593e7a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7966-b9b85ba10667e654.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9440-4069842b90d4b801.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-2a69553d8c6eeb53.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-591abd392dc50ed4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-78e8e88f2a757a18.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-95ffcd3e2b27e567.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-b645a6d13ab9fe3a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-1ed9045b2f1dfd65.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1417ad1c821d720a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-59aca25a5b1d3998.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-349af617d05f001b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles-36fa165a48af586b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-60d01d3887e31136.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-3433c8b22e8342aa.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/TdpLLFome13qvM0gXvpHs/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2631-b9f9bea3f1cf906d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3782-ef4cd4f0b52072d0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4783-422429203610c318.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5699-6d708c6b2153ea08.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-0d6b7c8804bcd2dc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-8a23dd8360593e7a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7966-b9b85ba10667e654.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-4069842b90d4b801.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-2a69553d8c6eeb53.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-591abd392dc50ed4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-78e8e88f2a757a18.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-95ffcd3e2b27e567.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-b645a6d13ab9fe3a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-1ed9045b2f1dfd65.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1417ad1c821d720a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-59aca25a5b1d3998.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-349af617d05f001b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles-36fa165a48af586b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-60d01d3887e31136.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-3433c8b22e8342aa.js +0 -1
- mage_ai/shared/memory.py +0 -90
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +0 -48
- /mage_ai/{tests/data_preparation/shared → ai/utils}/__init__.py +0 -0
- /mage_ai/server/frontend_dist/_next/static/{RhDiJSkcjCsh4xxX4BFBk → UZLabyPgcxtZvp0O0EUUS}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{TdpLLFome13qvM0gXvpHs → kcptwoOU-JJJg6Vwpkfmx}/_ssgManifest.js +0 -0
- /mage_ai/tests/data_preparation/{shared → storage/shared}/test_secrets.py +0 -0
- {mage_ai-0.9.70.dist-info → mage_ai-0.9.71.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.70.dist-info → mage_ai-0.9.71.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.70.dist-info → mage_ai-0.9.71.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.70.dist-info → mage_ai-0.9.71.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{98677:function(n,t,e){"use strict";function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return a}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),c=e.domain,a=e.range,l=0,s=1,f=!1,d=0,p=0,h=.5;function v(){var e=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,e-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(e-d))*h,t=n*(1-d),f&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return a(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(c(n),v()):c()},e.range=function(n){return arguments.length?([l,s]=n,l=+l,s=+s,v()):[l,s]},e.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(f=!!n,v()):f},e.padding=function(n){return arguments.length?(d=Math.min(1,p=+n),v()):d},e.paddingInner=function(n){return arguments.length?(d=Math.min(1,n),v()):d},e.paddingOuter=function(n){return arguments.length?(p=+n,v()):p},e.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),v()):h},e.copy=function(){return u(c(),[l,s]).round(f).paddingInner(d).paddingOuter(p).align(h)},i.o.apply(v(),arguments)}var c=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return c(u(),n)}},62072:function(n,t,e){"use strict";function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}e.d(t,{l8:function(){return r},xf:function(){return i}})},53989:function(n,t,e){"use strict";function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},59309:function(n,t,e){"use strict";e.d(t,{ZP:function(){return l}});var r=e(12759),i=e(27500),o=e(82610),u=e(34812),c=e(77944),a={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},18246:function(n,t,e){"use strict";e.d(t,{ZP:function(){return l}});var r=e(39586),i=e(25516),o=e(54164),u=e(8512),c=e(2010),a={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},13946:function(n,t,e){"use strict";e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){"use strict";function r(n,t){if((c=n.length)>0)for(var e,r,i,o,u,c,a=0,l=n[t[0]].length;a<l;++a)for(o=u=0,e=0;e<c;++e)(i=(r=n[t[e]][a])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,c=n[0].length;u<c;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){"use strict";function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],c=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<c;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var c=0,a=0;c<e;++c)a+=n[c][i][1]||0;o[i][1]+=o[i][0]=-a/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,c=1;c<i;++c){for(var a=0,l=0,s=0;a<o;++a){for(var f=n[t[a]],d=f[c][1]||0,p=(d-(f[c-1][1]||0))/2,h=0;h<a;++h){var v=n[t[h]];p+=(v[c][1]||0)-(v[c-1][1]||0)}l+=d,s+=p*d}e[c-1][1]+=e[c-1][0]=u,l&&(u-=s/l)}e[c-1][1]+=e[c-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){"use strict";e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),c=(0,r.Z)(n),a=0,l=0,s=[],f=[];for(t=0;t<o;++t)e=c[t],a<l?(a+=u[e],s.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(s)}},8512:function(n,t,e){"use strict";function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){"use strict";e.d(t,{Z:function(){return a}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function c(n,t){return n[t]}function a(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=t(s);i<l;++i)s[o[i]].index=i;return e(s,o),s}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,i.Z)(+n),l):a},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},64657:function(n,t,e){"use strict";e.d(t,{CD:function(){return c},NU:function(){return o},a_:function(){return r},hu:function(){return u}});var r,i=e(44897);!function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var o=[i.Z.accent.warning,i.Z.background.success,i.Z.accent.negative,i.Z.content.active,i.Z.interactive.linkPrimary],u=["cancelled","completed","failed","initial","running"],c=-50},7116:function(n,t,e){"use strict";e.d(t,{Z:function(){return g}});e(82684);var r=e(34376),i=e(85854),o=e(75457),u=e(38276),c=e(30160),a=e(74395),l=e(25976),s=e(44897),f=e(70515),d=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],f.iI,f.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=e(64657),h=e(28795),v=e(28598);var g=function(n){var t=n.breadcrumbs,e=n.children,l=n.errors,s=n.monitorType,g=n.pipeline,m=n.setErrors,Z=n.subheader,x=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(a.M,{children:[(0,v.jsx)(u.Z,{p:f.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),x.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Block runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,v.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,errors:l,pageName:h.M.MONITOR,pipeline:g,setErrors:m,subheader:Z,uuid:"pipeline/monitor",children:e})}},74395:function(n,t,e){"use strict";e.d(t,{M:function(){return u},W:function(){return o}});var r=e(25976),i=e(46684),o=34*e(70515).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},53998:function(n,t,e){"use strict";e.d(t,{Z:function(){return q}});var r=e(26304),i=e(82394),o=e(21831),u=e(82684),c=e(84969),a=e(90948),l=e(63588),s=e.n(l),f=e(75823),d=e(29989),p=e(62072),h=e(53989),v=e(49894),g=e(18246),m=e(59309),Z=e(65743),x=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function b(){return b=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},b.apply(this,arguments)}function y(n){var t=n.data,e=n.className,r=n.top,i=n.left,o=n.x,c=n.y0,a=void 0===c?p.l8:c,l=n.y1,y=void 0===l?p.xf:l,j=n.xScale,k=n.yScale,w=n.color,O=n.keys,P=n.value,_=n.order,M=n.offset,N=n.children,S=function(n,t){if(null==n)return{};var e,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||(i[e]=n[e]);return i}(n,x),I=(0,f.Z)();O&&I.keys(O),P&&(0,v.Z)(I.value,P),_&&I.order((0,g.ZP)(_)),M&&I.offset((0,m.ZP)(M));var C=I(t),L=(0,h.Z)(j),D=C.map((function(n,t){var e=n.key;return{index:t,key:e,bars:n.map((function(t,r){var i=(k(a(t))||0)-(k(y(t))||0),u=k(y(t)),c="bandwidth"in j?j(o(t.data)):Math.max((j(o(t.data))||0)-L/2);return{bar:t,key:e,index:r,height:i,width:L,x:c||0,y:u||0,color:w(n.key,r)}}))}}));return N?u.createElement(u.Fragment,null,N(D)):u.createElement(d.Z,{className:s()("visx-bar-stack",e),top:r,left:i},D.map((function(n){return n.bars.map((function(t){return u.createElement(Z.Z,b({key:"bar-stack-"+n.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},S))}))})))}var j=e(67778),k=e(17066),w=e(29179),O=e(65376),P=e(48072),_=e(98677),M=e(84181),N=e(24903),S=e(55485),I=e(26226),C=e(30160),L=e(94035),D=e(44897),E=e(42631),T=e(95363),A=e(70515),B=e(48277),F=e(79221),R=e(28598),U=["height","width","xAxisLabel","yAxisLabel"];function z(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function K(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?z(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):z(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function V(n){var t=n.backgroundColor,e=n.colors,r=n.data,i=n.getXValue,u=(n.getYValue,n.height),l=n.keys,s=n.margin,f=n.numYTicks,p=n.showLegend,h=n.tooltipLeftOffset,v=void 0===h?0:h,g=n.width,m=n.xLabelFormat,Z=n.yLabelFormat,x=(0,w.Z)(),b=x.hideTooltip,S=x.showTooltip,I=x.tooltipData,L=x.tooltipLeft,A=x.tooltipOpen,U=x.tooltipTop,z=g-(s.left+s.right),V=u-(s.bottom+s.top),q=r.reduce((function(n,t){var e=t,r=l.reduce((function(n,t){return Number(e[t])&&(n+=Number(e[t])),n}),0);return n.push(r),n}),[]),X=(0,_.Z)({domain:r.map(i),padding:.4,range:[0,z],round:!1}),Y=(0,M.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(q))],range:[V,0],round:!0}),H=null;A&&I&&(H=I.bar.data[I.key],Number.isSafeInteger(H)&&(H=(0,B.uf)(H)));var J=(0,N.Z)({domain:l,range:e});return(0,R.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,R.jsxs)("svg",{height:u,width:g,children:[(0,R.jsx)("rect",{fill:t||D.Z.background.chartBlock,height:u,rx:14,width:g,x:0,y:0}),(0,R.jsx)(j.Z,{height:V,left:s.left,scale:Y,stroke:"black",strokeOpacity:.2,top:s.top,width:z}),(0,R.jsx)(d.Z,{left:s.left,top:s.top,children:(0,R.jsx)(y,{color:J,data:r,keys:l,value:function(n,t){return n[t]||0},x:i,xScale:X,yScale:Y,children:function(n){return n.map((function(n){return n.bars.map((function(t){return(0,R.jsx)("rect",{fill:t.color,height:t.height,onMouseLeave:b,onMouseMove:function(n){var e=(0,P.Z)(n),r=t.x+t.width/2+v;S({tooltipData:t,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:t.width,x:t.x,y:t.y},"bar-stack-".concat(n.index,"-").concat(t.index))}))}))}})}),(0,R.jsx)(c.Z,{hideTicks:!0,left:s.left,numTicks:f,scale:Y,stroke:D.Z.content.muted,tickFormat:function(n){return Z?Z(n):(0,F.P5)(n)},tickLabelProps:function(){return{fill:D.Z.content.muted,fontFamily:T.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:s.top}),(0,R.jsx)(a.Z,{hideTicks:!0,left:s.left,scale:X,stroke:D.Z.content.muted,tickFormat:m,tickLabelProps:function(){return{fill:D.Z.content.muted,fontFamily:T.ry,fontSize:11,textAnchor:"middle"}},top:V+s.top})]}),p&&(0,R.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:s.top/2-10,width:"100%"},children:(0,R.jsx)(k.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:J})}),A&&I&&(0,R.jsxs)(O.Z,{left:L,style:K(K({},O.j),{},{backgroundColor:D.Z.background.page,borderRadius:"".concat(E.TR,"px"),padding:".3rem .4rem"}),top:U,children:[(0,R.jsx)(C.ZP,{bold:!0,color:J(I.key),children:I.key}),(0,R.jsx)(C.ZP,{children:H}),(0,R.jsx)(C.ZP,{children:i(I.bar.data)})]})]})}var q=function(n){var t=n.height,e=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,U);return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{style:{height:t,marginBottom:A.iI,width:e},children:[o&&(0,R.jsx)(S.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(L.Z,{children:(0,R.jsx)(C.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:t,width:o?0===e?e:e-28:e},children:(0,R.jsx)(I.Z,{children:function(n){var t=n.height,e=n.width;return(0,R.jsx)(V,K(K({},u),{},{height:t,width:e}))}})}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(C.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},94035:function(n,t,e){"use strict";var r=e(25976).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);t.Z=r},79221:function(n,t,e){"use strict";e.d(t,{P5:function(){return r},Vs:function(){return i}});e(81728);function r(n,t){var e=t||{},r=e.maxFractionDigits,i=e.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(i||1e4)?o.format(n):n.toString()}function i(n,t,e){var r,i;if("undefined"===typeof n||"undefined"===typeof t)return 0;var o=null===n||void 0===n||null===(r=n(t,e))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},57772:function(n,t,e){"use strict";e.r(t);var r=e(77837),i=e(75582),o=e(82394),u=e(38860),c=e.n(u),a=e(82684),l=e(92083),s=e.n(l),f=e(25976),d=e(53998),p=e(39867),h=e(55485),v=e(85854),g=e(7116),m=e(93808),Z=e(44085),x=e(38276),b=e(35686),y=e(44897),j=e(64657),k=e(46978),w=e(55283),O=e(3917),P=e(86735),_=e(28598);function M(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function N(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?M(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):M(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function S(n){var t=n.pipeline,e=(0,a.useContext)(f.ThemeContext),r=(0,a.useState)(null),u=r[0],c=r[1],l=t.uuid,m=b.ZP.pipelines.detail(l,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,M=(0,a.useMemo)((function(){return N(N({},null===m||void 0===m?void 0:m.pipeline),{},{uuid:l})}),[m,l]),S=b.ZP.pipeline_schedules.pipelines.list(l).data,I=(0,a.useMemo)((function(){return null===S||void 0===S?void 0:S.pipeline_schedules}),[S]),C=(0,a.useMemo)((function(){return(0,P.HK)(null===M||void 0===M?void 0:M.blocks,(function(n){return n.uuid}))||{}}),[M]),L={pipeline_uuid:l};(u||0===u)&&(L.pipeline_schedule_id=Number(u));var D=b.ZP.monitor_stats.detail("block_run_count",L),E=D.data,T=D.mutate,A=((null===E||void 0===E?void 0:E.monitor_stat)||{}).stats,B=(0,a.useMemo)((function(){return(0,O.Y_)()}),[]),F=(0,a.useMemo)((function(){if(A)return Object.entries(A).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,c=B.map((function(n){return N({date:n},u[n]||{})}));return N(N({},n),{},(0,o.Z)({},r,c))}),{})}),[B,A]),R=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,_.jsx)(g.Z,{breadcrumbs:R,monitorType:j.a_.BLOCK_RUNS,pipeline:M,subheader:(0,_.jsx)(h.ZP,{children:(0,_.jsxs)(Z.Z,{backgroundColor:y.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(c(t),T(t)):(T(),c(null))},value:u||"initial",children:[(0,_.jsx)("option",{value:"initial",children:"All"}),I&&I.map((function(n){return(0,_.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,_.jsx)(x.Z,{mx:2,children:F&&Object.entries(F).map((function(n){var t,r,o=(0,i.Z)(n,2),u=o[0],c=o[1];return(0,_.jsxs)(x.Z,{mt:3,children:[(0,_.jsxs)(h.ZP,{alignItems:"center",children:[(0,_.jsx)(x.Z,{mx:1,children:(0,_.jsx)(p.Z,{color:(0,w.qn)(null===(t=C[u])||void 0===t?void 0:t.type,{blockColor:null===(r=C[u])||void 0===r?void 0:r.color,theme:e}).accent,size:k.ZG,square:!0})}),(0,_.jsx)(v.Z,{level:4,children:u})]}),(0,_.jsx)(x.Z,{mt:1,children:(0,_.jsx)(d.Z,{colors:j.NU,data:c,getXValue:function(n){return n.date},height:200,keys:j.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:j.CD,xLabelFormat:function(n){return s()(n).format("MMM DD")}})})]},u)}))})})}S.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(t){var e;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,m.Z)(S)},48277:function(n,t,e){"use strict";e.d(t,{$P:function(){return l},JI:function(){return o},VJ:function(){return a},fD:function(){return u},uf:function(){return i},vN:function(){return c}});var r=e(75582),i=function(n){var t=String(n).split("."),e=(0,r.Z)(t,2),i=e[0],o=e[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(n){var t=Math.floor(Date.now()/1e3);return n>0?t-n:t}function u(n){return(n>>>0).toString(2)}function c(n,t){return String(BigInt(n)+BigInt(t))}function a(n,t){return String(BigInt(n)-BigInt(t))}function l(n){return parseInt(n,2)}},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(57772)}])}},function(n){n.O(0,[125,2714,1557,3782,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{98677:function(n,t,e){"use strict";function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return a}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),c=e.domain,a=e.range,l=0,s=1,f=!1,d=0,p=0,h=.5;function v(){var e=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,e-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(e-d))*h,t=n*(1-d),f&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return a(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(c(n),v()):c()},e.range=function(n){return arguments.length?([l,s]=n,l=+l,s=+s,v()):[l,s]},e.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(f=!!n,v()):f},e.padding=function(n){return arguments.length?(d=Math.min(1,p=+n),v()):d},e.paddingInner=function(n){return arguments.length?(d=Math.min(1,n),v()):d},e.paddingOuter=function(n){return arguments.length?(p=+n,v()):p},e.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),v()):h},e.copy=function(){return u(c(),[l,s]).round(f).paddingInner(d).paddingOuter(p).align(h)},i.o.apply(v(),arguments)}var c=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return c(u(),n)}},62072:function(n,t,e){"use strict";function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}e.d(t,{l8:function(){return r},xf:function(){return i}})},53989:function(n,t,e){"use strict";function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},59309:function(n,t,e){"use strict";e.d(t,{ZP:function(){return l}});var r=e(12759),i=e(27500),o=e(82610),u=e(34812),c=e(77944),a={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},18246:function(n,t,e){"use strict";e.d(t,{ZP:function(){return l}});var r=e(39586),i=e(25516),o=e(54164),u=e(8512),c=e(2010),a={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},13946:function(n,t,e){"use strict";e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){"use strict";function r(n,t){if((c=n.length)>0)for(var e,r,i,o,u,c,a=0,l=n[t[0]].length;a<l;++a)for(o=u=0,e=0;e<c;++e)(i=(r=n[t[e]][a])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,c=n[0].length;u<c;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){"use strict";function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],c=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<c;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var c=0,a=0;c<e;++c)a+=n[c][i][1]||0;o[i][1]+=o[i][0]=-a/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,c=1;c<i;++c){for(var a=0,l=0,s=0;a<o;++a){for(var f=n[t[a]],d=f[c][1]||0,p=(d-(f[c-1][1]||0))/2,h=0;h<a;++h){var v=n[t[h]];p+=(v[c][1]||0)-(v[c-1][1]||0)}l+=d,s+=p*d}e[c-1][1]+=e[c-1][0]=u,l&&(u-=s/l)}e[c-1][1]+=e[c-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){"use strict";e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),c=(0,r.Z)(n),a=0,l=0,s=[],f=[];for(t=0;t<o;++t)e=c[t],a<l?(a+=u[e],s.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(s)}},8512:function(n,t,e){"use strict";function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){"use strict";e.d(t,{Z:function(){return a}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function c(n,t){return n[t]}function a(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=t(s);i<l;++i)s[o[i]].index=i;return e(s,o),s}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,i.Z)(+n),l):a},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},64657:function(n,t,e){"use strict";e.d(t,{CD:function(){return c},NU:function(){return o},a_:function(){return r},hu:function(){return u}});var r,i=e(44897);!function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var o=[i.Z.accent.warning,i.Z.background.success,i.Z.accent.negative,i.Z.content.active,i.Z.interactive.linkPrimary],u=["cancelled","completed","failed","initial","running"],c=-50},7116:function(n,t,e){"use strict";e.d(t,{Z:function(){return g}});e(82684);var r=e(34376),i=e(85854),o=e(75457),u=e(38276),c=e(30160),a=e(74395),l=e(25976),s=e(44897),f=e(70515),d=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],f.iI,f.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=e(64657),h=e(28795),v=e(28598);var g=function(n){var t=n.breadcrumbs,e=n.children,l=n.errors,s=n.monitorType,g=n.pipeline,m=n.setErrors,Z=n.subheader,x=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(a.M,{children:[(0,v.jsx)(u.Z,{p:f.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),x.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Block runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,v.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,errors:l,pageName:h.M.MONITOR,pipeline:g,setErrors:m,subheader:Z,uuid:"pipeline/monitor",children:e})}},74395:function(n,t,e){"use strict";e.d(t,{M:function(){return u},W:function(){return o}});var r=e(25976),i=e(46684),o=34*e(70515).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},53998:function(n,t,e){"use strict";e.d(t,{Z:function(){return q}});var r=e(26304),i=e(82394),o=e(21831),u=e(82684),c=e(84969),a=e(90948),l=e(63588),s=e.n(l),f=e(75823),d=e(29989),p=e(62072),h=e(53989),v=e(49894),g=e(18246),m=e(59309),Z=e(65743),x=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function b(){return b=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},b.apply(this,arguments)}function y(n){var t=n.data,e=n.className,r=n.top,i=n.left,o=n.x,c=n.y0,a=void 0===c?p.l8:c,l=n.y1,y=void 0===l?p.xf:l,j=n.xScale,k=n.yScale,w=n.color,O=n.keys,P=n.value,_=n.order,M=n.offset,N=n.children,S=function(n,t){if(null==n)return{};var e,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||(i[e]=n[e]);return i}(n,x),I=(0,f.Z)();O&&I.keys(O),P&&(0,v.Z)(I.value,P),_&&I.order((0,g.ZP)(_)),M&&I.offset((0,m.ZP)(M));var C=I(t),L=(0,h.Z)(j),D=C.map((function(n,t){var e=n.key;return{index:t,key:e,bars:n.map((function(t,r){var i=(k(a(t))||0)-(k(y(t))||0),u=k(y(t)),c="bandwidth"in j?j(o(t.data)):Math.max((j(o(t.data))||0)-L/2);return{bar:t,key:e,index:r,height:i,width:L,x:c||0,y:u||0,color:w(n.key,r)}}))}}));return N?u.createElement(u.Fragment,null,N(D)):u.createElement(d.Z,{className:s()("visx-bar-stack",e),top:r,left:i},D.map((function(n){return n.bars.map((function(t){return u.createElement(Z.Z,b({key:"bar-stack-"+n.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},S))}))})))}var j=e(67778),k=e(17066),w=e(29179),O=e(65376),P=e(48072),_=e(98677),M=e(84181),N=e(24903),S=e(55485),I=e(26226),C=e(30160),L=e(94035),D=e(44897),E=e(42631),T=e(95363),A=e(70515),B=e(48277),F=e(79221),R=e(28598),U=["height","width","xAxisLabel","yAxisLabel"];function z(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function K(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?z(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):z(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function V(n){var t=n.backgroundColor,e=n.colors,r=n.data,i=n.getXValue,u=(n.getYValue,n.height),l=n.keys,s=n.margin,f=n.numYTicks,p=n.showLegend,h=n.tooltipLeftOffset,v=void 0===h?0:h,g=n.width,m=n.xLabelFormat,Z=n.yLabelFormat,x=(0,w.Z)(),b=x.hideTooltip,S=x.showTooltip,I=x.tooltipData,L=x.tooltipLeft,A=x.tooltipOpen,U=x.tooltipTop,z=g-(s.left+s.right),V=u-(s.bottom+s.top),q=r.reduce((function(n,t){var e=t,r=l.reduce((function(n,t){return Number(e[t])&&(n+=Number(e[t])),n}),0);return n.push(r),n}),[]),X=(0,_.Z)({domain:r.map(i),padding:.4,range:[0,z],round:!1}),Y=(0,M.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(q))],range:[V,0],round:!0}),H=null;A&&I&&(H=I.bar.data[I.key],Number.isSafeInteger(H)&&(H=(0,B.uf)(H)));var J=(0,N.Z)({domain:l,range:e});return(0,R.jsxs)("div",{style:{position:"relative",zIndex:2},children:[(0,R.jsxs)("svg",{height:u,width:g,children:[(0,R.jsx)("rect",{fill:t||D.Z.background.chartBlock,height:u,rx:14,width:g,x:0,y:0}),(0,R.jsx)(j.Z,{height:V,left:s.left,scale:Y,stroke:"black",strokeOpacity:.2,top:s.top,width:z}),(0,R.jsx)(d.Z,{left:s.left,top:s.top,children:(0,R.jsx)(y,{color:J,data:r,keys:l,value:function(n,t){return n[t]||0},x:i,xScale:X,yScale:Y,children:function(n){return n.map((function(n){return n.bars.map((function(t){return(0,R.jsx)("rect",{fill:t.color,height:t.height,onMouseLeave:b,onMouseMove:function(n){var e=(0,P.Z)(n),r=t.x+t.width/2+v;S({tooltipData:t,tooltipLeft:r,tooltipTop:(null===e||void 0===e?void 0:e.y)+10})},width:t.width,x:t.x,y:t.y},"bar-stack-".concat(n.index,"-").concat(t.index))}))}))}})}),(0,R.jsx)(c.Z,{hideTicks:!0,left:s.left,numTicks:f,scale:Y,stroke:D.Z.content.muted,tickFormat:function(n){return Z?Z(n):(0,F.P5)(n)},tickLabelProps:function(){return{fill:D.Z.content.muted,fontFamily:T.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:s.top}),(0,R.jsx)(a.Z,{hideTicks:!0,left:s.left,scale:X,stroke:D.Z.content.muted,tickFormat:m,tickLabelProps:function(){return{fill:D.Z.content.muted,fontFamily:T.ry,fontSize:11,textAnchor:"middle"}},top:V+s.top})]}),p&&(0,R.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:s.top/2-10,width:"100%"},children:(0,R.jsx)(k.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:J})}),A&&I&&(0,R.jsxs)(O.Z,{left:L,style:K(K({},O.j),{},{backgroundColor:D.Z.background.page,borderRadius:"".concat(E.TR,"px"),padding:".3rem .4rem"}),top:U,children:[(0,R.jsx)(C.ZP,{bold:!0,color:J(I.key),children:I.key}),(0,R.jsx)(C.ZP,{children:H}),(0,R.jsx)(C.ZP,{children:i(I.bar.data)})]})]})}var q=function(n){var t=n.height,e=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,U);return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{style:{height:t,marginBottom:A.iI,width:e},children:[o&&(0,R.jsx)(S.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(L.Z,{children:(0,R.jsx)(C.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:t,width:o?0===e?e:e-28:e},children:(0,R.jsx)(I.Z,{children:function(n){var t=n.height,e=n.width;return(0,R.jsx)(V,K(K({},u),{},{height:t,width:e}))}})}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(C.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},94035:function(n,t,e){"use strict";var r=e(25976).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);t.Z=r},79221:function(n,t,e){"use strict";e.d(t,{P5:function(){return r},Vs:function(){return i}});e(81728);function r(n,t){var e=t||{},r=e.maxFractionDigits,i=e.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(i||1e4)?o.format(n):n.toString()}function i(n){var t,e;if("undefined"===typeof n)return 0;var r=null===n||void 0===n||null===(t=n())||void 0===t||null===(e=t.props)||void 0===e?void 0:e.children;return(Array.isArray(r)?r:[r]).join("").length}},57772:function(n,t,e){"use strict";e.r(t);var r=e(77837),i=e(75582),o=e(82394),u=e(38860),c=e.n(u),a=e(82684),l=e(92083),s=e.n(l),f=e(25976),d=e(53998),p=e(39867),h=e(55485),v=e(85854),g=e(7116),m=e(93808),Z=e(44085),x=e(38276),b=e(35686),y=e(44897),j=e(64657),k=e(46978),w=e(55283),O=e(3917),P=e(86735),_=e(28598);function M(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function N(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?M(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):M(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function S(n){var t=n.pipeline,e=(0,a.useContext)(f.ThemeContext),r=(0,a.useState)(null),u=r[0],c=r[1],l=t.uuid,m=b.ZP.pipelines.detail(l,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,M=(0,a.useMemo)((function(){return N(N({},null===m||void 0===m?void 0:m.pipeline),{},{uuid:l})}),[m,l]),S=b.ZP.pipeline_schedules.pipelines.list(l).data,I=(0,a.useMemo)((function(){return null===S||void 0===S?void 0:S.pipeline_schedules}),[S]),C=(0,a.useMemo)((function(){return(0,P.HK)(null===M||void 0===M?void 0:M.blocks,(function(n){return n.uuid}))||{}}),[M]),L={pipeline_uuid:l};(u||0===u)&&(L.pipeline_schedule_id=Number(u));var D=b.ZP.monitor_stats.detail("block_run_count",L),E=D.data,T=D.mutate,A=((null===E||void 0===E?void 0:E.monitor_stat)||{}).stats,B=(0,a.useMemo)((function(){return(0,O.Y_)()}),[]),F=(0,a.useMemo)((function(){if(A)return Object.entries(A).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,c=B.map((function(n){return N({date:n},u[n]||{})}));return N(N({},n),{},(0,o.Z)({},r,c))}),{})}),[B,A]),R=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,_.jsx)(g.Z,{breadcrumbs:R,monitorType:j.a_.BLOCK_RUNS,pipeline:M,subheader:(0,_.jsx)(h.ZP,{children:(0,_.jsxs)(Z.Z,{backgroundColor:y.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(c(t),T(t)):(T(),c(null))},value:u||"initial",children:[(0,_.jsx)("option",{value:"initial",children:"All"}),I&&I.map((function(n){return(0,_.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,_.jsx)(x.Z,{mx:2,children:F&&Object.entries(F).map((function(n){var t,r,o=(0,i.Z)(n,2),u=o[0],c=o[1];return(0,_.jsxs)(x.Z,{mt:3,children:[(0,_.jsxs)(h.ZP,{alignItems:"center",children:[(0,_.jsx)(x.Z,{mx:1,children:(0,_.jsx)(p.Z,{color:(0,w.qn)(null===(t=C[u])||void 0===t?void 0:t.type,{blockColor:null===(r=C[u])||void 0===r?void 0:r.color,theme:e}).accent,size:k.ZG,square:!0})}),(0,_.jsx)(v.Z,{level:4,children:u})]}),(0,_.jsx)(x.Z,{mt:1,children:(0,_.jsx)(d.Z,{colors:j.NU,data:c,getXValue:function(n){return n.date},height:200,keys:j.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:j.CD,xLabelFormat:function(n){return s()(n).format("MMM DD")}})})]},u)}))})})}S.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(t){var e;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,m.Z)(S)},48277:function(n,t,e){"use strict";e.d(t,{$P:function(){return l},JI:function(){return o},VJ:function(){return a},fD:function(){return u},uf:function(){return i},vN:function(){return c}});var r=e(75582),i=function(n){var t=String(n).split("."),e=(0,r.Z)(t,2),i=e[0],o=e[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(n){var t=Math.floor(Date.now()/1e3);return n>0?t-n:t}function u(n){return(n>>>0).toString(2)}function c(n,t){return String(BigInt(n)+BigInt(t))}function a(n,t){return String(BigInt(n)-BigInt(t))}function l(n){return parseInt(n,2)}},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(57772)}])}},function(n){n.O(0,[125,2714,1557,3782,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{52136:function(e,n,r){"use strict";r.d(n,{Z:function(){return m}});var t=r(47329),i=r.n(t),o=r(82684),u=r(63588),l=r.n(u),c=r(5237),a=r(29989),s=r(81352),d=r(46119),f=r(38469),p=r(12765),v=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function h(){return h=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},h.apply(this,arguments)}function m(e){var n=e.top,r=void 0===n?0:n,t=e.left,i=void 0===t?0:t,u=e.scale,m=e.height,y=e.stroke,b=void 0===y?"#eaf0f6":y,x=e.strokeWidth,g=void 0===x?1:x,k=e.strokeDasharray,Z=e.className,O=e.numTicks,j=void 0===O?10:O,_=e.lineStyle,P=e.offset,w=e.tickValues,E=e.children,N=function(e,n){if(null==e)return{};var r,t,i={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(i[r]=e[r]);return i}(e,v),T=null!=w?w:(0,d.Z)(u,j),C=(null!=P?P:0)+(0,p.Z)(u)/2,R=T.map((function(e,n){var r,t=(null!=(r=(0,f.Z)(u(e)))?r:0)+C;return{index:n,from:new s.Z({x:t,y:0}),to:new s.Z({x:t,y:m})}}));return o.createElement(a.Z,{className:l()("visx-columns",Z),top:r,left:i},E?E({lines:R}):R.map((function(e){var n=e.from,r=e.to,t=e.index;return o.createElement(c.Z,h({key:"column-line-"+t,from:n,to:r,stroke:b,strokeWidth:g,strokeDasharray:k,style:_},N))})))}m.propTypes={tickValues:i().array,height:i().number.isRequired}},84791:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var t=r(72430),i=(0,r(93342).Z)("domain","range","reverse","clamp","interpolate","nice","round");function o(e){return i((0,t.Z)(),e)}},85587:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var t=r(82684),i=r(63588),o=r.n(i),u=r(39309),l=["children","data","x","y","fill","className","curve","innerRef","defined"];function c(){return c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},c.apply(this,arguments)}function a(e){var n=e.children,r=e.data,i=void 0===r?[]:r,a=e.x,s=e.y,d=e.fill,f=void 0===d?"transparent":d,p=e.className,v=e.curve,h=e.innerRef,m=e.defined,y=void 0===m?function(){return!0}:m,b=function(e,n){if(null==e)return{};var r,t,i={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(i[r]=e[r]);return i}(e,l),x=(0,u.jv)({x:a,y:s,defined:y,curve:v});return n?t.createElement(t.Fragment,null,n({path:x})):t.createElement("path",c({ref:h,className:o()("visx-linepath",p),d:x(i)||"",fill:f,strokeLinecap:"round"},b))}},39309:function(e,n,r){"use strict";r.d(n,{SO:function(){return u},jv:function(){return l}});var t=r(48167),i=r(92201),o=r(49894);function u(e){var n=void 0===e?{}:e,r=n.x,i=n.x0,u=n.x1,l=n.y,c=n.y0,a=n.y1,s=n.defined,d=n.curve,f=(0,t.Z)();return r&&(0,o.Z)(f.x,r),i&&(0,o.Z)(f.x0,i),u&&(0,o.Z)(f.x1,u),l&&(0,o.Z)(f.y,l),c&&(0,o.Z)(f.y0,c),a&&(0,o.Z)(f.y1,a),s&&f.defined(s),d&&f.curve(d),f}function l(e){var n=void 0===e?{}:e,r=n.x,t=n.y,u=n.defined,l=n.curve,c=(0,i.Z)();return r&&(0,o.Z)(c.x,r),t&&(0,o.Z)(c.y,t),u&&c.defined(u),l&&c.curve(l),c}},98889:function(e,n,r){"use strict";r.d(n,{Z:function(){return m}});var t=r(47329),i=r.n(t),o=r(82684),u=r(63588),l=r.n(u),c=r(39309),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},s.apply(this,arguments)}function d(e){var n=e.children,r=e.x,t=e.x0,i=e.x1,u=e.y,d=e.y0,f=e.y1,p=e.data,v=void 0===p?[]:p,h=e.defined,m=void 0===h?function(){return!0}:h,y=e.className,b=e.curve,x=e.innerRef,g=function(e,n){if(null==e)return{};var r,t,i={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(i[r]=e[r]);return i}(e,a),k=(0,c.SO)({x:r,x0:t,x1:i,y:u,y0:d,y1:f,defined:m,curve:b});return n?o.createElement(o.Fragment,null,n({path:k})):o.createElement("path",s({ref:x,className:l()("visx-area",y),d:k(v)||""},g))}var f=["id","children"];function p(){return p=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},p.apply(this,arguments)}function v(e){var n=e.id,r=e.children,t=function(e,n){if(null==e)return{};var r,t,i={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(i[r]=e[r]);return i}(e,f);return o.createElement("defs",null,o.createElement("clipPath",p({id:n},t),r))}function h(){return h=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},h.apply(this,arguments)}function m(e){var n=e.className,r=e.curve,t=e.clipAboveTo,i=e.clipBelowTo,u=e.data,c=e.defined,a=e.x,s=e.y0,f=e.y1,p=e.aboveAreaProps,m=e.belowAreaProps,y=e.id,b=void 0===y?"":y;return o.createElement("g",{className:l()("visx-threshold",n)},o.createElement(d,{curve:r,data:u,x:a,y1:f,defined:c},(function(e){var n=e.path,r=null,l=null;return r=n.y0(i)(u),l=n.y0(t)(u),o.createElement("g",null,o.createElement(v,{id:"threshold-clip-below-"+b},o.createElement("path",{d:r||""})),o.createElement(v,{id:"threshold-clip-above-"+b},o.createElement("path",{d:l||""})))})),o.createElement(d,h({curve:r,data:u,defined:c,x:a,y0:s,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+b+")"},m)),o.createElement(d,h({curve:r,data:u,defined:c,x:a,y0:s,y1:f,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+b+")"},p)))}v.propTypes={id:i().string.isRequired,children:i().node},m.propTypes={className:i().string,clipAboveTo:i().oneOfType([i().func,i().number]).isRequired,clipBelowTo:i().oneOfType([i().func,i().number]).isRequired,id:i().string.isRequired,data:i().array.isRequired,defined:i().func,x:i().oneOfType([i().func,i().number]).isRequired,y0:i().oneOfType([i().func,i().number]).isRequired,y1:i().oneOfType([i().func,i().number]).isRequired}},64657:function(e,n,r){"use strict";r.d(n,{CD:function(){return l},NU:function(){return o},a_:function(){return t},hu:function(){return u}});var t,i=r(44897);!function(e){e.BLOCK_RUNS="block_runs",e.BLOCK_RUNTIME="block_runtime",e.PIPELINE_RUNS="pipeline_runs"}(t||(t={}));var o=[i.Z.accent.warning,i.Z.background.success,i.Z.accent.negative,i.Z.content.active,i.Z.interactive.linkPrimary],u=["cancelled","completed","failed","initial","running"],l=-50},7116:function(e,n,r){"use strict";r.d(n,{Z:function(){return m}});r(82684);var t=r(34376),i=r(85854),o=r(75457),u=r(38276),l=r(30160),c=r(74395),a=r(25976),s=r(44897),d=r(70515),f=a.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],d.iI,d.tr,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(e){return!e.selected&&"\n cursor: pointer;\n "})),p=r(64657),v=r(28795),h=r(28598);var m=function(e){var n=e.breadcrumbs,r=e.children,a=e.errors,s=e.monitorType,m=e.pipeline,y=e.setErrors,b=e.subheader,x=(0,t.useRouter)();return(0,h.jsx)(o.Z,{before:(0,h.jsxs)(c.M,{children:[(0,h.jsx)(u.Z,{p:d.cd,children:(0,h.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,h.jsx)(f,{onClick:function(e){e.preventDefault(),x.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,h.jsx)(l.ZP,{children:"Pipeline runs"})}),(0,h.jsx)(f,{onClick:function(e){e.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,h.jsx)(l.ZP,{children:"Block runs"})}),(0,h.jsx)(f,{onClick:function(e){e.preventDefault(),x.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,h.jsx)(l.ZP,{children:"Block runtime"})})]}),breadcrumbs:n,errors:a,pageName:v.M.MONITOR,pipeline:m,setErrors:y,subheader:b,uuid:"pipeline/monitor",children:r})}},74395:function(e,n,r){"use strict";r.d(n,{M:function(){return u},W:function(){return o}});var t=r(25976),i=r(46684),o=34*r(70515).iI,u=t.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},98684:function(e,n,r){"use strict";r.d(n,{K:function(){return i}});var t=r(70987),i=function(e){var n=e||t.Z,r=n.brand,i=r.earth200,o=r.earth300,u=r.earth400,l=r.energy200,c=r.energy300,a=r.energy400,s=r.fire200,d=r.fire300,f=r.fire400,p=r.water200,v=r.water300,h=r.water400,m=r.wind200,y=r.wind300,b=r.wind400,x=n.chart;return[x.backgroundPrimary,x.backgroundSecondary,x.backgroundTertiary].concat([b,h,f,a,u,y,v,d,c,o,m,p,s,l,i])}},94035:function(e,n,r){"use strict";var t=r(25976).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);n.Z=t},79221:function(e,n,r){"use strict";r.d(n,{P5:function(){return t},Vs:function(){return i}});r(81728);function t(e,n){var r=n||{},t=r.maxFractionDigits,i=r.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:t||2,notation:"compact"});return"number"!==typeof e?e:e>=(i||1e4)?o.format(e):e.toString()}function i(e){var n,r;if("undefined"===typeof e)return 0;var t=null===e||void 0===e||null===(n=e())||void 0===n||null===(r=n.props)||void 0===r?void 0:r.children;return(Array.isArray(t)?t:[t]).join("").length}},82864:function(e,n,r){"use strict";r.r(n);var t=r(77837),i=r(75582),o=r(82394),u=r(38860),l=r.n(u),c=r(82684),a=r(92083),s=r.n(a),d=r(39867),f=r(55485),p=r(85854),v=r(74168),h=r(7116),m=r(93808),y=r(38276),b=r(44085),x=r(30160),g=r(35686),k=r(44897),Z=r(42631),O=r(46978),j=r(64657),_=r(25976),P=r(81728),w=r(55283),E=r(3917),N=r(86735),T=r(28598);function C(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function R(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?C(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var M="all_blocks";function D(e){var n,r=e.pipeline,t=(0,c.useContext)(_.ThemeContext),u=(0,c.useState)(null),l=u[0],a=u[1],m=r.uuid,C=g.ZP.pipelines.detail(m,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,D=(0,c.useMemo)((function(){return R(R({},null===C||void 0===C?void 0:C.pipeline),{},{uuid:m})}),[C,m]),I=g.ZP.pipeline_schedules.pipelines.list(m).data,S=(0,c.useMemo)((function(){return null===I||void 0===I?void 0:I.pipeline_schedules}),[I]),q=(0,c.useMemo)((function(){return(0,N.HK)(null===D||void 0===D?void 0:D.blocks,(function(e){return e.uuid}))||{}}),[D]),F={pipeline_uuid:m};(l||0===l)&&(F.pipeline_schedule_id=Number(l));var L=g.ZP.monitor_stats.detail("block_run_time",F),U=L.data,B=L.mutate;(0,c.useEffect)((function(){B(l)}),[B,l]);var A=((null===U||void 0===U?void 0:U.monitor_stat)||{}).stats,K=(0,c.useMemo)((function(){return(0,E.Y_)()}),[]),W=(0,c.useMemo)((function(){var e,n;return A&&(e=(0,o.Z)({},M,[]),n={},Object.entries(A).forEach((function(r){var t=(0,i.Z)(r,2),o=t[0],u=t[1].data;n[o]=[],K.forEach((function(r,t){n[o].push({x:r,y:r in u?[u[r]]:null}),e.all_blocks[t]||(e.all_blocks[t]={x:r,y:null}),r in u&&(e.all_blocks[t].y||(e.all_blocks[t].y=[]),e.all_blocks[t].y.push({blockUUID:o,runtime:u[r]}))}))}))),R(R({},e),n)}),[K,A]),V=(0,c.useMemo)((function(){var e=[];return e.push({bold:!0,label:function(){return"Monitors"}}),e}),[]);return(0,T.jsx)(h.Z,{breadcrumbs:V,monitorType:j.a_.BLOCK_RUNTIME,pipeline:D,subheader:(0,T.jsx)(f.ZP,{children:(0,T.jsxs)(b.Z,{backgroundColor:k.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(e){var n=e.target.value;"initial"!==n?(a(n),B(n)):(B(),a(null))},value:l||"initial",children:[(0,T.jsx)("option",{value:"initial",children:"All"}),S&&S.map((function(e){return(0,T.jsx)("option",{value:e.id,children:e.name},e.id)}))]})}),children:(0,T.jsx)(y.Z,{mx:2,children:(null===W||void 0===W||null===(n=W.all_blocks)||void 0===n?void 0:n.length)>0&&Object.entries(W).map((function(e,n){var r,o,u=(0,i.Z)(e,2),l=u[0],c=u[1];return(0,T.jsxs)(y.Z,{mt:2,children:[(0,T.jsxs)(f.ZP,{alignItems:"center",children:[(0,T.jsx)(y.Z,{mx:1,children:(0,T.jsx)(d.Z,{color:(0,w.qn)(null===(r=q[l])||void 0===r?void 0:r.type,{blockColor:null===(o=q[l])||void 0===o?void 0:o.color,theme:t}).accent,size:O.ZG,square:!0})}),(0,T.jsx)(p.Z,{level:4,children:l===M?(0,P.J3)((0,P.kC)(l)):l})]}),(0,T.jsx)("div",{style:{backgroundColor:k.Z.background.chartBlock,borderRadius:"".concat(Z.TR,"px"),marginTop:"8px"},children:(0,T.jsx)(v.Z,{data:c,getX:function(e){return s()(e.x).valueOf()},getY:l===M?function(e,n){var r,t;return null===e||void 0===e||null===(r=e.y)||void 0===r||null===(t=r[n])||void 0===t?void 0:t.runtime}:null,getYScaleValues:l===M?function(e){return(null===e||void 0===e?void 0:e.map((function(e){return null===e||void 0===e?void 0:e.runtime})))||[]}:null,gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:l===M?800:200,hideGridX:!0,margin:{bottom:30,left:35,right:-1,top:10},noCurve:!0,renderXTooltipContent:function(e){return(0,T.jsx)(x.ZP,{center:!0,inverted:!0,small:!0,children:s()(e.x).format("MMM DD")})},renderYTooltipContent:function(e,n){var r,t=null===e||void 0===e||null===(r=e.y)||void 0===r?void 0:r[n];if(l===M){var i=null===t||void 0===t?void 0:t.blockUUID,o=null===t||void 0===t?void 0:t.runtime;return void 0!==o&&(0,T.jsxs)(x.ZP,{center:!0,inverted:!0,small:!0,children:[i||"",": ",o.toFixed?o.toFixed(3):o,"s"]})}return void 0!==t&&(0,T.jsxs)(x.ZP,{center:!0,inverted:!0,small:!0,children:[t.toFixed?t.toFixed(3):t,"s"]})},thickStroke:!0,xLabelFormat:function(e){return s()(e).format("MMM DD")},xLabelRotate:!1,yLabelFormat:function(e){return e%1===0?e:e.toFixed(1)}})})]},"".concat(l,"_").concat(n))}))})})}D.getInitialProps=function(){var e=(0,t.Z)(l().mark((function e(n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:r}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),n.default=(0,m.Z)(D)},76017:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return r(82864)}])}},function(e){e.O(0,[3662,125,1799,2714,1557,3782,4168,9774,2888,179],(function(){return n=76017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{98677:function(n,t,e){"use strict";function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return a}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),c=e.domain,a=e.range,l=0,s=1,f=!1,d=0,p=0,h=.5;function v(){var e=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,e-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(e-d))*h,t=n*(1-d),f&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return a(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(c(n),v()):c()},e.range=function(n){return arguments.length?([l,s]=n,l=+l,s=+s,v()):[l,s]},e.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(f=!!n,v()):f},e.padding=function(n){return arguments.length?(d=Math.min(1,p=+n),v()):d},e.paddingInner=function(n){return arguments.length?(d=Math.min(1,n),v()):d},e.paddingOuter=function(n){return arguments.length?(p=+n,v()):p},e.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),v()):h},e.copy=function(){return u(c(),[l,s]).round(f).paddingInner(d).paddingOuter(p).align(h)},i.o.apply(v(),arguments)}var c=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return c(u(),n)}},53989:function(n,t,e){"use strict";function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},13946:function(n,t,e){"use strict";e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){"use strict";function r(n,t){if((c=n.length)>0)for(var e,r,i,o,u,c,a=0,l=n[t[0]].length;a<l;++a)for(o=u=0,e=0;e<c;++e)(i=(r=n[t[e]][a])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,c=n[0].length;u<c;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){"use strict";function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],c=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<c;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var c=0,a=0;c<e;++c)a+=n[c][i][1]||0;o[i][1]+=o[i][0]=-a/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,c=1;c<i;++c){for(var a=0,l=0,s=0;a<o;++a){for(var f=n[t[a]],d=f[c][1]||0,p=(d-(f[c-1][1]||0))/2,h=0;h<a;++h){var v=n[t[h]];p+=(v[c][1]||0)-(v[c-1][1]||0)}l+=d,s+=p*d}e[c-1][1]+=e[c-1][0]=u,l&&(u-=s/l)}e[c-1][1]+=e[c-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){"use strict";e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),c=(0,r.Z)(n),a=0,l=0,s=[],f=[];for(t=0;t<o;++t)e=c[t],a<l?(a+=u[e],s.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(s)}},8512:function(n,t,e){"use strict";function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){"use strict";e.d(t,{Z:function(){return a}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function c(n,t){return n[t]}function a(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=t(s);i<l;++i)s[o[i]].index=i;return e(s,o),s}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,i.Z)(+n),l):a},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},7116:function(n,t,e){"use strict";e.d(t,{Z:function(){return m}});e(82684);var r=e(34376),i=e(85854),o=e(75457),u=e(38276),c=e(30160),a=e(74395),l=e(25976),s=e(44897),f=e(70515),d=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],f.iI,f.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=e(64657),h=e(28795),v=e(28598);var m=function(n){var t=n.breadcrumbs,e=n.children,l=n.errors,s=n.monitorType,m=n.pipeline,g=n.setErrors,Z=n.subheader,b=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(a.M,{children:[(0,v.jsx)(u.Z,{p:f.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Block runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,v.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,errors:l,pageName:h.M.MONITOR,pipeline:m,setErrors:g,subheader:Z,uuid:"pipeline/monitor",children:e})}},74395:function(n,t,e){"use strict";e.d(t,{M:function(){return u},W:function(){return o}});var r=e(25976),i=e(46684),o=34*e(70515).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},94035:function(n,t,e){"use strict";var r=e(25976).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);t.Z=r},79221:function(n,t,e){"use strict";e.d(t,{P5:function(){return r},Vs:function(){return i}});e(81728);function r(n,t){var e=t||{},r=e.maxFractionDigits,i=e.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(i||1e4)?o.format(n):n.toString()}function i(n,t,e){var r,i;if("undefined"===typeof n||"undefined"===typeof t)return 0;var o=null===n||void 0===n||null===(r=n(t,e))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},65663:function(n,t,e){"use strict";e.r(t);var r=e(77837),i=e(75582),o=e(82394),u=e(38860),c=e.n(u),a=e(82684),l=e(12691),s=e.n(l),f=e(92083),d=e.n(f),p=e(25976),h=e(53998),v=e(55485),m=e(85854),g=e(48670),Z=e(7116),b=e(93808),x=e(38276),y=e(30160),j=e(35686),_=e(64657),w=e(72473),k=e(30229),M=e(70515),O=e(81728),P=e(24491),N=e(3917),I=e(28598);function C(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function E(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?C(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):C(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var D=p.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]);function S(n){var t=n.pipeline.uuid,e=(0,a.useState)(null),r=e[0],u=e[1],c=j.ZP.pipeline_schedules.pipelines.list(t).data,l=(0,a.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),f=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.reduce((function(n,t){return E(E({},n),{},(0,o.Z)({},null===t||void 0===t?void 0:t.id,t))}),{})}),[l]),p=j.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,a.useMemo)((function(){return E(E({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:t})}),[p,t]),C=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,S=((null===C||void 0===C?void 0:C.monitor_stat)||{}).stats,A=(0,a.useMemo)((function(){return(0,N.Y_)()}),[]),L=(0,a.useMemo)((function(){return(0,P.p)(S,A)}),[A,S]),R=(0,a.useMemo)((function(){if(S)return Object.entries(S).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,c=A.map((function(n){return E({date:n},u[n]||{})}));return E(E({},n),{},(0,o.Z)({},r,c))}),{})}),[A,S]),F=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,I.jsx)(Z.Z,{breadcrumbs:F,errors:r,monitorType:_.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,I.jsxs)(x.Z,{mt:2,mx:2,children:[(0,I.jsx)(x.Z,{ml:1,children:(0,I.jsx)(D,{children:(0,I.jsx)(m.Z,{children:"All pipeline runs"})})}),(0,I.jsx)(x.Z,{mt:1,children:(0,I.jsx)(h.Z,{colors:_.NU,data:L,getXValue:function(n){return n.date},height:200,keys:_.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:_.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})}),R&&Object.entries(R).map((function(n){var e,r=(0,i.Z)(n,2),o=r[0],u=r[1],c=null===f||void 0===f?void 0:f[o];return(0,I.jsxs)(x.Z,{mt:3,children:[(0,I.jsxs)(v.ZP,{alignItems:"center",children:[(0,I.jsx)(x.Z,{mx:1,children:(0,I.jsx)(D,{children:(0,I.jsx)(y.ZP,{bold:!0,large:!0,children:(0,O.kC)(null===(e=k.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===e?void 0:e.call(k.Z4))})})}),(0,I.jsx)(s(),{as:"/pipelines/".concat(t,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,I.jsx)(g.Z,{children:(0,I.jsxs)(v.ZP,{alignItems:"center",children:[(0,I.jsx)(m.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,I.jsx)(x.Z,{ml:1}),(0,I.jsx)(w.ChevronRight,{default:!0,size:2*M.iI})]})})})]}),(0,I.jsx)(x.Z,{mt:1,children:(0,I.jsx)(h.Z,{colors:_.NU,data:u,getXValue:function(n){return n.date},height:200,keys:_.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:_.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},o)}))]})})}S.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(t){var e;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,b.Z)(S)},89677:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return e(65663)}])}},function(n){n.O(0,[125,2714,1557,3782,5831,9774,2888,179],(function(){return t=89677,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{98677:function(n,t,e){"use strict";function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return a}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),c=e.domain,a=e.range,l=0,s=1,f=!1,d=0,p=0,h=.5;function v(){var e=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,e-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(e-d))*h,t=n*(1-d),f&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return a(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(c(n),v()):c()},e.range=function(n){return arguments.length?([l,s]=n,l=+l,s=+s,v()):[l,s]},e.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(f=!!n,v()):f},e.padding=function(n){return arguments.length?(d=Math.min(1,p=+n),v()):d},e.paddingInner=function(n){return arguments.length?(d=Math.min(1,n),v()):d},e.paddingOuter=function(n){return arguments.length?(p=+n,v()):p},e.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),v()):h},e.copy=function(){return u(c(),[l,s]).round(f).paddingInner(d).paddingOuter(p).align(h)},i.o.apply(v(),arguments)}var c=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return c(u(),n)}},53989:function(n,t,e){"use strict";function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},13946:function(n,t,e){"use strict";e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){"use strict";function r(n,t){if((c=n.length)>0)for(var e,r,i,o,u,c,a=0,l=n[t[0]].length;a<l;++a)for(o=u=0,e=0;e<c;++e)(i=(r=n[t[e]][a])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,c=n[0].length;u<c;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){"use strict";function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],c=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<c;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var c=0,a=0;c<e;++c)a+=n[c][i][1]||0;o[i][1]+=o[i][0]=-a/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,c=1;c<i;++c){for(var a=0,l=0,s=0;a<o;++a){for(var f=n[t[a]],d=f[c][1]||0,p=(d-(f[c-1][1]||0))/2,h=0;h<a;++h){var v=n[t[h]];p+=(v[c][1]||0)-(v[c-1][1]||0)}l+=d,s+=p*d}e[c-1][1]+=e[c-1][0]=u,l&&(u-=s/l)}e[c-1][1]+=e[c-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){"use strict";e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){"use strict";e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),c=(0,r.Z)(n),a=0,l=0,s=[],f=[];for(t=0;t<o;++t)e=c[t],a<l?(a+=u[e],s.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(s)}},8512:function(n,t,e){"use strict";function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){"use strict";e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){"use strict";e.d(t,{Z:function(){return a}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function c(n,t){return n[t]}function a(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=t(s);i<l;++i)s[o[i]].index=i;return e(s,o),s}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,i.Z)(+n),l):a},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},7116:function(n,t,e){"use strict";e.d(t,{Z:function(){return m}});e(82684);var r=e(34376),i=e(85854),o=e(75457),u=e(38276),c=e(30160),a=e(74395),l=e(25976),s=e(44897),f=e(70515),d=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],f.iI,f.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=e(64657),h=e(28795),v=e(28598);var m=function(n){var t=n.breadcrumbs,e=n.children,l=n.errors,s=n.monitorType,m=n.pipeline,g=n.setErrors,Z=n.subheader,b=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(a.M,{children:[(0,v.jsx)(u.Z,{p:f.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Block runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===m||void 0===m?void 0:m.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,v.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:t,errors:l,pageName:h.M.MONITOR,pipeline:m,setErrors:g,subheader:Z,uuid:"pipeline/monitor",children:e})}},74395:function(n,t,e){"use strict";e.d(t,{M:function(){return u},W:function(){return o}});var r=e(25976),i=e(46684),o=34*e(70515).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},94035:function(n,t,e){"use strict";var r=e(25976).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);t.Z=r},79221:function(n,t,e){"use strict";e.d(t,{P5:function(){return r},Vs:function(){return i}});e(81728);function r(n,t){var e=t||{},r=e.maxFractionDigits,i=e.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof n?n:n>=(i||1e4)?o.format(n):n.toString()}function i(n){var t,e;if("undefined"===typeof n)return 0;var r=null===n||void 0===n||null===(t=n())||void 0===t||null===(e=t.props)||void 0===e?void 0:e.children;return(Array.isArray(r)?r:[r]).join("").length}},65663:function(n,t,e){"use strict";e.r(t);var r=e(77837),i=e(75582),o=e(82394),u=e(38860),c=e.n(u),a=e(82684),l=e(12691),s=e.n(l),f=e(92083),d=e.n(f),p=e(25976),h=e(53998),v=e(55485),m=e(85854),g=e(48670),Z=e(7116),b=e(93808),x=e(38276),y=e(30160),j=e(35686),_=e(64657),w=e(72473),k=e(30229),M=e(70515),O=e(81728),P=e(24491),N=e(3917),I=e(28598);function C(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function E(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?C(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):C(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var D=p.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]);function S(n){var t=n.pipeline.uuid,e=(0,a.useState)(null),r=e[0],u=e[1],c=j.ZP.pipeline_schedules.pipelines.list(t).data,l=(0,a.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),f=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.reduce((function(n,t){return E(E({},n),{},(0,o.Z)({},null===t||void 0===t?void 0:t.id,t))}),{})}),[l]),p=j.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,a.useMemo)((function(){return E(E({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:t})}),[p,t]),C=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,S=((null===C||void 0===C?void 0:C.monitor_stat)||{}).stats,A=(0,a.useMemo)((function(){return(0,N.Y_)()}),[]),L=(0,a.useMemo)((function(){return(0,P.p)(S,A)}),[A,S]),R=(0,a.useMemo)((function(){if(S)return Object.entries(S).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,c=A.map((function(n){return E({date:n},u[n]||{})}));return E(E({},n),{},(0,o.Z)({},r,c))}),{})}),[A,S]),F=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,I.jsx)(Z.Z,{breadcrumbs:F,errors:r,monitorType:_.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,I.jsxs)(x.Z,{mt:2,mx:2,children:[(0,I.jsx)(x.Z,{ml:1,children:(0,I.jsx)(D,{children:(0,I.jsx)(m.Z,{children:"All pipeline runs"})})}),(0,I.jsx)(x.Z,{mt:1,children:(0,I.jsx)(h.Z,{colors:_.NU,data:L,getXValue:function(n){return n.date},height:200,keys:_.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:_.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})}),R&&Object.entries(R).map((function(n){var e,r=(0,i.Z)(n,2),o=r[0],u=r[1],c=null===f||void 0===f?void 0:f[o];return(0,I.jsxs)(x.Z,{mt:3,children:[(0,I.jsxs)(v.ZP,{alignItems:"center",children:[(0,I.jsx)(x.Z,{mx:1,children:(0,I.jsx)(D,{children:(0,I.jsx)(y.ZP,{bold:!0,large:!0,children:(0,O.kC)(null===(e=k.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===e?void 0:e.call(k.Z4))})})}),(0,I.jsx)(s(),{as:"/pipelines/".concat(t,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,I.jsx)(g.Z,{children:(0,I.jsxs)(v.ZP,{alignItems:"center",children:[(0,I.jsx)(m.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,I.jsx)(x.Z,{ml:1}),(0,I.jsx)(w.ChevronRight,{default:!0,size:2*M.iI})]})})})]}),(0,I.jsx)(x.Z,{mt:1,children:(0,I.jsx)(h.Z,{colors:_.NU,data:u,getXValue:function(n){return n.date},height:200,keys:_.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:_.CD,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},o)}))]})})}S.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(t){var e;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,b.Z)(S)},89677:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return e(65663)}])}},function(n){n.O(0,[125,2714,1557,3782,5831,9774,2888,179],(function(){return t=89677,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{8955:function(e,n,t){"use strict";t.d(n,{G7:function(){return y},ZP:function(){return P},u$:function(){return j}});var i=t(75582),r=t(82394),o=t(26304),u=t(90299),l=t(9134),c=t(24138),s=t(38276),a=t(30160),d=t(75499),p=t(70515),f=t(16488),v=t(42122),h=t(28598),b=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=44,O={uuid:"Run details"},x={uuid:"Dependency tree"},y=[x,O];function P(e){var n=e.height,t=e.heightOffset,r=e.pipeline,g=e.selectedRun,P=e.selectedTab,k=e.setSelectedTab,Z=m({},(0,o.Z)(e,b));g?Z.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):Z.noStatus=!0;var _=(0,v.Kn)(null===g||void 0===g?void 0:g.variables)?m({},null===g||void 0===g?void 0:g.variables):(null===g||void 0===g?void 0:g.variables)||{},w=null===g||void 0===g?void 0:g.event_variables;if(w&&(0,v.Kn)(w)&&!(0,v.Qr)(w))if((0,v.Kn)(_)&&_.hasOwnProperty("event")){var T=(0,v.Kn)(_.event)?_.event:{};_.event=m(m({},T),w)}else _.event=m({},w);var S=[];_&&JSON.stringify(_,null,2).split("\n").forEach((function(e){S.push(" ".concat(e))}));var E=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,h.jsx)(l.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],I=g&&(0,h.jsx)(s.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:E.map((function(e,n){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),D=P&&k;return(0,h.jsxs)(h.Fragment,{children:[D&&(0,h.jsx)(u.Z,{onClickTab:k,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:y,underlineStyle:!0}),(!D||x.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,h.jsx)(c.ZP,m(m({},Z),{},{height:n,heightOffset:(t||0)+(D?j:0),pipeline:r})),O.uuid===(null===P||void 0===P?void 0:P.uuid)&&I]})}},66909:function(e,n,t){"use strict";t.d(n,{Eh:function(){return s},t0:function(){return a}});var i=t(25976),r=t(2842),o=t(4982),u=t(61896),l=t(47041),c=t(70515),s=(c.iI,o.O$+3*c.iI+u.dN),a=i.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})([""," overflow:auto;position:absolute;width:100%;"," ",""],l.w5,(function(e){return"\n height: calc(100vh - ".concat(r.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.overflowHidden&&"\n overflow: hidden;\n "}));i.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},16488:function(e,n,t){"use strict";t.d(n,{IJ:function(){return h},M8:function(){return Z},Uc:function(){return O},XM:function(){return k},_U:function(){return v},eI:function(){return j},gU:function(){return y},lO:function(){return E},ri:function(){return g},tL:function(){return x},vJ:function(){return P},xH:function(){return m}});var i,r=t(82394),o=t(92083),u=t.n(o),l=t(3917),c=t(4383),s=t(30229),a=t(42122),d=t(86735);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=function(e){return!!e&&!Object.values(s.U5).includes(e)};function h(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,o=n.started_at,l=n.status,c=null;o&&i&&(c=u()(i).valueOf()-u()(o).valueOf());return f(f({},e),{},(0,r.Z)({},t,{runtime:c,status:l}))}),{})}var b,g=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:s.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:s.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:s.Xm.API}];return e?n.slice(0,1):n};function m(e){var n=(0,a.gR)(e,[s.gm.INTERVAL,s.gm.TYPE]),t=e[s.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var i=e[s.gm.TYPE];return i&&(n["schedule_type[]"]=i),n}function j(e){return e?new Date(u()(e).valueOf()):null}function O(e,n){return n?(0,l.XG)(e,n):function(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return u()(j(n)).format(l.Nx)}(e)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(b||(b={}));var x=(i={},(0,r.Z)(i,b.DAY,86400),(0,r.Z)(i,b.HOUR,3600),(0,r.Z)(i,b.MINUTE,60),(0,r.Z)(i,b.SECOND,1),i);function y(e){var n=b.SECOND,t=e;return e%86400===0?(t/=86400,n=b.DAY):e%3600===0?(t/=3600,n=b.HOUR):e%60===0&&(t/=60,n=b.MINUTE),{time:t,unit:n}}function P(e,n){return e*x[n]}function k(e,n,t){var i,r=u()(e);return r.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),r.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),r.set("second",0),i=r.format(l.TD),null!==t&&void 0!==t&&t.includeSeconds&&(i=i.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(i=r.format(l.lE),null!==t&&void 0!==t&&t.convertToUtc&&(i=(0,l.d$)(i,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),i}function Z(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i=!0;if(i){var r=(0,c.XF)();n?t="".concat(r,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(t="".concat(r,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)))}return t}function _(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var i=t.indexOf(e),r=0;if(n<0)for(var o=0;o>n;o--)0===i?(i=t.length-1,r-=1):i-=1;else if(n>0)for(var u=0;u<n;u++)i===t.length-1?(i=0,r+=1):i+=1;var l="number"===typeof t[i]?t[i]:e;return{additionalOffset:r,cronValue:String(l)}}(+e,n,t)}var w=(0,d.m5)(60),T=(0,d.m5)(24),S=(0,l.Cs)();function E(e,n){if(!e)return e;var t=u()().local().format("Z"),i=t.split(":"),r="-"===t[0],o=3===i[0].length?Number(i[0].slice(1)):Number(i[0]),l=Number(i[1]);(r&&!n||!r&&n)&&(o=-o,l=-l);var c=e.split(" "),s=c[0],a=c[1],d=c[2],p=_(s,l,w),f=_(a,o+p.additionalOffset,T);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var v=_(d,f.additionalOffset,S);c[2]=v.cronValue}return c.join(" ")}},55072:function(e,n,t){"use strict";t.d(n,{Et:function(){return p},Q:function(){return d}});t(82684);var i=t(71180),r=t(55485),o=t(38276),u=t(31748),l=t(72473),c=t(79633),s=t(70515),a=t(28598),d=30,p=9;n.ZP=function(e){var n=e.page,t=e.maxPages,d=e.onUpdate,p=e.totalPages,f=[],v=t;if(v>p)f=Array.from({length:p},(function(e,n){return n}));else{var h=Math.floor(v/2),b=n-h;n+h>=p?(b=p-v+2,v-=2):n-h<=0?(b=0,v-=2):(v-=4,b=n-Math.floor(v/2)),f=Array.from({length:v},(function(e,n){return n+b}))}return(0,a.jsx)(a.Fragment,{children:p>0&&(0,a.jsxs)(r.ZP,{alignItems:"center",children:[(0,a.jsx)(i.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,a.jsx)(l.PaginateArrowLeft,{size:1.5*s.iI,stroke:u.Av})}),!f.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!f.includes(1)&&(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),f.map((function(e){return(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!f.includes(p-1)&&(0,a.jsxs)(a.Fragment,{children:[!f.includes(p-2)&&(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(i.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(p-1)},children:p})},p-1)]}),(0,a.jsx)(o.Z,{ml:1}),(0,a.jsx)(i.ZP,{disabled:n===p-1,onClick:function(){return d(n+1)},children:(0,a.jsx)(l.PaginateArrowRight,{size:1.5*s.iI,stroke:u.Av})})]})})}},9134:function(e,n,t){"use strict";var i=t(82684),r=t(21124),o=t(68432),u=t(25976),l=t(65292),c=t(44897),s=t(95363),a=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,v=e.source,h=e.wrapLines,b=(0,i.useContext)(u.ThemeContext);function g(e){var i=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(b.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(b.content||c.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:h,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(g,{value:n})}},children:v})}},14532:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ue}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),c=t(82684),s=t(69864),a=t(34376),d=t(23192),p=t(71180),f=t(15338),v=t(97618),h=t(55485),b=t(85854),g=t(55072),m=t(75457),j=t(44265),O=t(57653),x=t(93808),y=t(38276),P=t(4190),k=t(30160),Z=t(35686),_=t(21831),w=t(26304),T=t(90299),S=t(93859),E=t(24138),I=t(62302),D=t(88494),C=t(28256),N=t(48339),R=t(46684),M=t(70515),U=t(66909),L=t(8955),A=t(16488),B=t(81728),G=t(86735),F=t(28598),H=["blockRuns","blocks","blocksOverride","columns","dataType","height","heightOffset","loadingData","outputs","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData","width"];function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z={uuid:"Dependency tree"},J={uuid:"Block output"},Y=[J,z];var K=t(28795),$=t(81655),q=t(3917),W=t(72619),Q=t(95924),ee=t(69419),ne=t(70320);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re=100;function oe(e){var n=e.pipeline,t=e.pipelineRun,i=(0,ne.qB)(),o=(0,a.useRouter)(),u=(0,ee.iV)(),l=null!==u&&void 0!==u&&u.page?u.page:0,x=(0,c.useState)(null),X=x[0],te=x[1],oe=(0,c.useState)(Y[0]),ue=oe[0],le=oe[1],ce=(0,c.useState)(null),se=ce[0],ae=ce[1],de=(0,c.useState)(null),pe=de[0],fe=de[1],ve=(0,c.useMemo)((function(){return!!pe&&pe!==j.VO.RUNNING}),[pe]),he=n.uuid,be=Z.ZP.pipelines.detail(he,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ge=(0,c.useMemo)((function(){return ie(ie({},null===be||void 0===be?void 0:be.pipeline),{},{uuid:he})}),[be,he]),me=Z.ZP.pipeline_runs.detail(t.id,{_format:"with_basic_details"},{refreshInterval:ve?null:3e3,revalidateOnFocus:!0}),je=me.data,Oe=me.mutate,xe=(0,c.useMemo)((function(){return(null===je||void 0===je?void 0:je.pipeline_run)||{}}),[je]),ye=xe.execution_date,Pe=xe.id,ke=xe.status,Ze={_limit:re,_offset:l*re,pipeline_run_id:Pe},_e=null===u||void 0===u?void 0:u[$.lG.SORT_COL_IDX],we=null===u||void 0===u?void 0:u[$.lG.SORT_DIRECTION];if(_e){var Te=d.fi[_e],Se=we||$.sh.ASC;Ze.order_by="".concat(Te,"%20").concat(Se)}(0,c.useEffect)((function(){pe!==ke&&fe(ke)}),[pe,ke]);var Ee=Z.ZP.block_runs.list(Ze,{refreshInterval:ve?null:5e3},{pauseFetch:"undefined"===typeof Pe||null===Pe}),Ie=Ee.data,De=Ee.mutate,Ce=(0,c.useMemo)((function(){return(null===Ie||void 0===Ie?void 0:Ie.block_runs)||[]}),[Ie]),Ne=Ce.map((function(e){return e.block_uuid})),Re=(0,c.useMemo)((function(){return Ne}),[Ne]),Me=Z.ZP.blocks.pipeline_runs.list(null===t||void 0===t?void 0:t.id,{_limit:re,block_uuid:Re},{refreshInterval:ve?null:5e3}).data,Ue=(0,s.Db)(Z.ZP.pipeline_runs.useUpdate(Pe),{onSuccess:function(e){return(0,W.wD)(e,{callback:function(e){e.pipeline_run;te(null),null===De||void 0===De||De(),Oe()},onErrorCallback:function(e,n){return ae({errors:n,response:e})}})}}),Le=(0,r.Z)(Ue,2),Ae=Le[0],Be=Le[1].isLoading,Ge=Z.ZP.outputs.block_runs.list(null===X||void 0===X?void 0:X.id),Fe=Ge.data,He=Ge.loading;(0,c.useEffect)((function(){X||(null===ue||void 0===ue?void 0:ue.uuid)!==J.uuid||le(z)}),[X,null===ue||void 0===ue?void 0:ue.uuid]);var Xe=(0,c.useMemo)((function(){return(0,F.jsx)(d.ZP,{blockRuns:Ce,onClickRow:function(e){te((function(n){var t=Ce[e],i=(null===n||void 0===n?void 0:n.id)!==t.id?t:null;return i&&le((function(e){return e!==J?J:e})),i}))},pipeline:ge,selectedRun:X,setErrors:ae,sortableColumnIndexes:d.lG})}),[Ce,ge,X]),Ve=(null===ge||void 0===ge?void 0:ge.type)!==O.qL.STREAMING&&pe&&pe!==j.VO.COMPLETED,ze=((null===ge||void 0===ge?void 0:ge.type)===O.qL.PYTHON||(null===ge||void 0===ge?void 0:ge.type)===O.qL.INTEGRATION)&&X&&j.Az.includes(pe),Je=(0,c.useMemo)((function(){var e;return(null===Ie||void 0===Ie||null===(e=Ie.metadata)||void 0===e?void 0:e.count)||[]}),[Ie]),Ye=(0,c.useMemo)((function(){return(0,F.jsx)(y.Z,{p:2,children:(0,F.jsx)(g.ZP,{maxPages:g.Et,onUpdate:function(e){var n=Number(e),t=ie(ie({},u),{},{page:n>=0?n:0});te(null),o.push("/pipelines/[pipeline]/runs/[run]","/pipelines/".concat(he,"/runs/").concat(Pe,"?").concat((0,ee.uM)(t)))},page:Number(l),totalPages:Math.ceil(Je/re)})})}),[l,Pe,he,u,o,Je]),Ke=(0,c.useCallback)((function(e){return function(e){var n,t,i,o=e.blockRuns,u=e.blocks,l=e.blocksOverride,c=(e.columns,e.dataType,e.height),s=e.heightOffset,a=e.loadingData,d=e.outputs,p=e.pipeline,v=e.renderColumnHeader,b=(e.rows,e.selectedRun),g=e.selectedTab,m=e.setSelectedTab,j=(e.textData,e.width),O=V({},(0,w.Z)(e,H));O.blockStatus=(0,A.IJ)(o);var x=(0,G.HK)(u,(function(e){return e.uuid})),Z=(0,G.HK)(l,(function(e){return e.uuid})),X=V(V({},x),Z),K=null===X||void 0===X?void 0:X[null===b||void 0===b||null===(n=b.block_uuid)||void 0===n||null===(t=n.split)||void 0===t||null===(i=t.call(n,":"))||void 0===i?void 0:i[0]],$=[],q=[],W=(0,B.bH)();if(!a){var Q,ee={};null===d||void 0===d||d.forEach((function(e){var n=e.type;ee[n]||(ee[n]={outputs:[],priority:Object.keys(ee).length}),ee[n].outputs.push(e)})),null===(Q=(0,G.YC)(Object.entries(ee),(function(e){var n=(0,r.Z)(e,2);return n[0],n[1].priority})))||void 0===Q||Q.forEach((function(e,n){var t=(0,r.Z)(e,2),i=t[0],o=t[1].outputs,u=[];null===o||void 0===o||o.forEach((function(e,t){var r=e.sample_data,l=e.text_data,a=e.type,d=(0,F.jsx)(y.Z,{ml:2,children:(0,F.jsx)(k.ZP,{children:"This block run has no output."})},"output-empty-".concat(n,"-").concat(t)),p=(0,F.jsx)("div",{});if(a)p=(0,F.jsx)(C.Z,{block:K,contained:!0,containerWidth:j,disableSpacingBetweenGroups:!0,first:0===t,height:c-(s+90)-102,index:t,last:t===o.length-1,normalPadding:!0,output:e,selected:!0},"output-".concat(t));else if(a===N.Gi.TABLE){var f=((null===r||void 0===r?void 0:r.columns)||[]).slice(0,40),h=(null===r||void 0===r?void 0:r.rows)||[];p=h&&(null===h||void 0===h?void 0:h.length)>=1?(0,F.jsx)(S.Z,{columnHeaderHeight:v?U.Eh:0,columns:f,height:c-s-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:v,rows:h},"output-table-".concat(n,"-").concat(t)):d}else if(N.Gi.IMAGE_PNG===a&&l)p=(0,F.jsx)("div",{style:{backgroundColor:"white",maxHeight:c-s-90,overflow:"auto"},children:(0,F.jsx)("img",{alt:"Image from code output",src:"data:image/png;base64, ".concat(l)})});else if(N.Gi.TEXT_HTML===a&&l){var b=String((0,B.un)(l));p=(0,F.jsx)(D.T5,{contained:!0,normalPadding:!0,children:(0,F.jsx)(D.wx,{monospace:!0,children:(0,F.jsx)(I.Z,{html:l})})},b)}else{var g=(0,B.Pb)(l)?JSON.stringify(JSON.parse(l),null,2):l;p="undefined"!==typeof l&&null!==l?(0,F.jsx)(y.Z,{ml:2,children:(0,F.jsx)(k.ZP,{monospace:!0,children:(0,F.jsx)("pre",{children:g})})},"output-text-".concat(n,"-").concat(t)):d}var m=W[n];N.Gi.TEXT===i?(u.push(p),0===t&&q.push({uuid:"Block output ".concat(t+1).concat(m)})):($.push(p),q.push({uuid:"Block output ".concat(t+1).concat(m)}))})),N.Gi.TEXT===i&&$.push(u)}))}var ne=$,te=q,ie=Y;(null===te||void 0===te?void 0:te.length)>=2&&(ie=[J].concat((0,_.Z)(te.slice(1)),[z]));var re=g&&m,oe=ne[ie.findIndex((function(e){return e.uuid===(null===g||void 0===g?void 0:g.uuid)}))];return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{position:"fixed",top:R.Mz},children:re&&(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(y.Z,{py:0,children:(0,F.jsx)(T.Z,{onClickTab:m,regularSizeText:!0,selectedTabUUID:null===g||void 0===g?void 0:g.uuid,tabs:b?ie:[z],underlineStyle:!0})})})}),(0,F.jsxs)("div",{style:{position:"relative",top:L.u$},children:[re&&(0,F.jsx)(f.Z,{light:!0}),(!b||z.uuid===(null===g||void 0===g?void 0:g.uuid))&&(0,F.jsx)(E.ZP,V(V({},O),{},{blocksOverride:l,enablePorts:!1,height:c,heightOffset:(s||0)+(re?L.u$+1:0),pipeline:p})),b&&g&&z.uuid!==(null===g||void 0===g?void 0:g.uuid)&&(0,F.jsxs)(F.Fragment,{children:[a&&(0,F.jsx)(y.Z,{mt:2,children:(0,F.jsx)(h.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,F.jsx)(P.Z,{color:"white",large:!0})})}),!a&&(0,F.jsx)(y.Z,{py:M.cd,children:oe})]})]})]})}(ie(ie({},e),{},{blocks:null===Me||void 0===Me?void 0:Me.blocks,blockRuns:Ce,blocksOverride:Je<=re?null===Me||void 0===Me?void 0:Me.blocks:null,loadingData:He,outputs:null===Fe||void 0===Fe?void 0:Fe.outputs,selectedRun:X,selectedTab:ue,setSelectedTab:le,showDynamicBlocks:!0}))}),[Ce,Me,Fe,He,X,ue,le,Je]);return(0,F.jsxs)(m.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(he,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return i?(0,q.XG)(ye,i):ye}}],buildSidekick:Ke,errors:se,pageName:K.M.RUNS,pipeline:ge,setErrors:ae,subheader:(Ve||ze)&&(0,F.jsxs)(h.ZP,{alignItems:"center",children:[j.BF.includes(pe)&&(0,F.jsxs)(v.Z,{children:[(0,F.jsx)(k.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,F.jsx)(y.Z,{mr:1}),(0,F.jsx)(P.Z,{inverted:!0}),(0,F.jsx)(y.Z,{mr:2})]}),Ve&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(p.ZP,{danger:!0,loading:Be,onClick:function(e){(0,Q.j)(e),Ae({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,F.jsx)(y.Z,{mr:2})]}),ze&&(0,F.jsxs)(p.ZP,{loading:Be,onClick:function(e){(0,Q.j)(e),Ae({pipeline_run:{from_block_uuid:X.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",X.block_uuid,")"]})]}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"pipelines/detail/".concat(K.M.RUNS),children:[(0,F.jsx)(y.Z,{mt:M.cd,px:M.cd,children:(0,F.jsx)(b.Z,{level:5,children:"Block runs"})}),(0,F.jsx)(f.Z,{light:!0,mt:M.cd,short:!0}),Xe,Ye]})}oe.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t,i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,i=t.pipeline,r=t.run,e.abrupt("return",{pipeline:{uuid:i},pipelineRun:{id:r}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ue=(0,x.Z)(oe)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(14532)}])}},function(e){e.O(0,[125,1799,9161,7162,1557,3782,8095,4982,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{81334:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(82394),r=t(82684),o=t(27277),u=t(31882),l=t(38276),c=t(48381),s=t(30160),a=t(17488),d=t(25976),p=t(44897),f=t(42631),v=t(47041),g=t(70515),h=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,f.BG,40*g.iI,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||p.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*g.iI,"px;\n ")})),m=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*g.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||p.Z.interactive).hoverBackground,";\n ")})),_=t(39643),y=t(95924),b=t(86735),j=t(44688),x=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n,t=e.removeTag,i=e.selectTag,d=e.selectedTags,p=void 0===d?[]:d,f=e.tags,v=void 0===f?[]:f,g=e.uuid,O=(0,r.useRef)(null),w=(0,r.useState)(!1),P=w[0],k=w[1],C=(0,r.useState)(null),S=C[0],E=C[1],N=(0,r.useMemo)((function(){return(0,b.YC)(v||[],"uuid")}),[v]),T=(0,r.useMemo)((function(){return null===N||void 0===N?void 0:N.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[N]),D=(0,r.useMemo)((function(){return(null===S||void 0===S?void 0:S.length)>=1?T.concat({itemObject:{uuid:S},searchQueries:[S],value:"Add tag: ".concat(S)}):T}),[T,S]),I=(0,j.y)(),R=I.registerOnKeyDown,M=I.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return M(g)}}),[M,g]),null===R||void 0===R||R(g,(function(e,n){var t;P&&n[_.vP]&&(k(!1),null===O||void 0===O||null===(t=O.current)||void 0===t||t.blur())}),[P,O]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c.Z,{onClickTag:t,tags:p}),(0,x.jsxs)(l.Z,{mt:1,style:{position:"relative"},children:[(0,x.jsx)(a.Z,{onBlur:function(){return setTimeout((function(){return k(!1)}),150)},onChange:function(e){return E(e.target.value)},onFocus:function(){return k(!0)},ref:O,value:S||""}),(0,x.jsx)(h,{topOffset:null===O||void 0===O||null===(n=O.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,x.jsx)(o.Z,{eventProperties:{eventParameters:{item_type:"tag"}},itemGroups:[{items:P?D:[],renderItem:function(e,n){var t=e.value;return(0,x.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,x.jsx)(u.Z,{small:!0,children:(0,x.jsx)(s.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),E(null)},searchQuery:S,uuid:g})})]})]})}},68781:function(e,n,t){"use strict";var i;t.d(n,{R:function(){return r}}),function(e){e.AZURE_CONTAINER_INSTANCE="azure_container_instance",e.ECS="ecs",e.GCP_CLOUD_RUN="gcp_cloud_run",e.K8S="k8s",e.LOCAL_PYTHON="local_python",e.PYSPARK="pyspark"}(i||(i={}));var r=[i.AZURE_CONTAINER_INSTANCE,i.ECS,i.GCP_CLOUD_RUN,i.K8S,i.LOCAL_PYTHON,i.PYSPARK]},37003:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return B}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),c=t(82684),s=t(34376),a=t(75457),d=t(93808),p=t(71180),f=t(70652),v=t(55485),g=t(85854),h=t(48670),m=t(57653),_=t(44085),y=t(88543),b=t(38276),j=t(81334),x=t(30160),O=t(17488),Z=t(35686),w=t(98464),P=t(77417),k=t(68781),C=t(78419),S=t(70515),E=t(53808),N=t(42122),T=t(81728),D=t(86735),I=t(28598);function R(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n,t,i,r,u,l,s,a,d,R,A,F,U=e.isPipelineUpdating,H=e.pipeline,L=e.updatePipeline,G=(0,P.Z)().project,K=(0,c.useRef)(null),B=(0,c.useRef)(null),Y=null===H||void 0===H?void 0:H.uuid,z=(0,c.useMemo)((function(){return(null===H||void 0===H?void 0:H.blocks)||[]}),[H]),W=(0,c.useState)(!1),Q=W[0],X=W[1],q=(0,c.useState)(!1),J=q[0],$=q[1],V=(0,c.useState)(null),ee=V[0],ne=V[1],te=(0,w.Z)(H);(0,c.useEffect)((function(){(0,N.Xy)(H,te)||ne(H)}),[H,te]);var ie=(0,c.useCallback)((function(e){X(!0),ne(e)}),[]),re="".concat(C.g6,"_").concat(Y),oe=(0,c.useState)({}),ue=oe[0],le=oe[1],ce="".concat(C.vF,"_").concat(Y),se=(0,c.useState)(!1),ae=se[0],de=se[1],pe=(0,c.useCallback)((function(e){le((function(n){var t=e(n);return(0,E.t8)(re,JSON.stringify(t)),t}))}),[re,le]),fe=(0,c.useCallback)((function(e){de((function(n){var t=e(n);return(0,E.t8)(ce,t),t}))}),[ce,de]);(0,c.useEffect)((function(){var e=(0,E.U2)(re);e&&(0,T.Pb)(e)&&le(JSON.parse(e))}),[re,le]),(0,c.useEffect)((function(){var e=(0,E.U2)(ce);e&&de(e)}),[ce,de]);var ve=(0,c.useMemo)((function(){return null===ee||void 0===ee?void 0:ee.executor_type}),[ee]);(0,c.useEffect)((function(){J||!ve||k.R.find((function(e){return e===ve}))||$(!0)}),[J,ve]);var ge=(0,c.useMemo)((function(){return(null===z||void 0===z?void 0:z.filter((function(e){var n=e.uuid;return!(null===ue||void 0===ue||!ue[n])}))).length===z.length}),[z,ue]),he=(0,c.useMemo)((function(){return!(null!==z&&void 0!==z&&z.length)}),[z]),me=(0,c.useMemo)((function(){return(null===ee||void 0===ee?void 0:ee.tags)||[]}),[ee]),_e=Z.ZP.tags.list().data,ye=(0,c.useMemo)((function(){return((null===_e||void 0===_e?void 0:_e.tags)||[]).filter((function(e){var n=e.uuid;return!me.includes(n)}))}),[_e,me]),be=(0,c.useMemo)((function(){var e;return null===G||void 0===G||null===(e=G.pipelines)||void 0===e?void 0:e.settings}),[G]),je=(0,c.useMemo)((function(){var e,n,t;return(null===be||void 0===be||null===(e=be.triggers)||void 0===e?void 0:e.save_in_code_automatically)&&"undefined"===typeof(null===ee||void 0===ee||null===(n=ee.settings)||void 0===n||null===(t=n.triggers)||void 0===t?void 0:t.save_in_code_automatically)}),[ee,be]);return(0,I.jsxs)(b.Z,{p:S.cd,children:[(0,I.jsxs)(y.Z,{title:"Details",children:[(0,I.jsx)(y.S,{invalid:Q&&!(null!==ee&&void 0!==ee&&ee.name),textInput:{onChange:function(e){return ie((function(n){return M(M({},n),{},{name:e.target.value})}))},value:null===ee||void 0===ee?void 0:ee.name},title:"Pipeline name"}),(0,I.jsx)(y.S,{textInput:{onChange:function(e){return ie((function(n){return M(M({},n),{},{description:e.target.value})}))},placeholder:"Enter description...",value:(null===ee||void 0===ee?void 0:ee.description)||""},title:"Pipeline description"}),(0,I.jsx)(y.S,{description:"When enabled, this setting allows sharing of objects and memory space across blocks within a single pipeline.",title:"Run pipeline in a single process",toggleSwitch:{checked:!(null===ee||void 0===ee||!ee.run_pipeline_in_one_process),onCheck:function(e){return ie((function(n){return M(M({},n),{},{run_pipeline_in_one_process:e(null===n||void 0===n?void 0:n.run_pipeline_in_one_process)})}))}}}),(0,I.jsx)(y.S,{description:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(x.ZP,{muted:!0,small:!0,children:"Every time a trigger is created or updated in this pipeline, it\u2019ll be automatically be persisted it in code."}),(null===be||void 0===be||null===(n=be.triggers)||void 0===n?void 0:n.save_in_code_automatically)&&(0,I.jsx)(x.ZP,{small:!0,warning:!0,children:"This settings is enabled at the project level. Changing the value here will only affect this pipeline."})]}),title:"Save triggers in code automatically",toggleSwitch:{checked:je||!(null===ee||void 0===ee||null===(t=ee.settings)||void 0===t||null===(i=t.triggers)||void 0===i||!i.save_in_code_automatically),onCheck:function(e){return ie((function(n){var t,i,r;return M(M({},n),{},{settings:M(M({},null===n||void 0===n?void 0:n.settings),{},{triggers:M(M({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t.triggers),{},{save_in_code_automatically:e(je||(null===n||void 0===n||null===(i=n.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically))})})})}))}}})]}),(0,I.jsx)(b.Z,{mt:S.HN,children:(0,I.jsxs)(y.Z,{title:"Pipeline level concurrency",children:[(0,I.jsx)(y.S,{description:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(x.ZP,{muted:!0,small:!0,children:"Limit the concurrent pipeline runs across all trigers in this pipeline."})}),textInput:{monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{concurrency_config:M(M({},null===n||void 0===n?void 0:n.concurrency_config),{},{pipeline_run_limit_all_triggers:Number(e.target.value)})})}))},placeholder:"e.g. 40",type:"number",value:String((null===ee||void 0===ee||null===(r=ee.concurrency_config)||void 0===r?void 0:r.pipeline_run_limit_all_triggers)||"")},title:"Pipeline run limit across all triggers"}),(0,I.jsx)(y.S,{description:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(x.ZP,{muted:!0,small:!0,children:"Limit the concurrent pipeline runs in a single trigger for this pipeline."})}),textInput:{monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{concurrency_config:M(M({},null===n||void 0===n?void 0:n.concurrency_config),{},{pipeline_run_limit:Number(e.target.value)})})}))},placeholder:"e.g. 10",type:"number",value:String((null===ee||void 0===ee||null===(u=ee.concurrency_config)||void 0===u?void 0:u.pipeline_run_limit)||"")},title:"Pipeline run limit in 1 trigger"}),(0,I.jsx)(y.S,{description:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(x.ZP,{muted:!0,small:!0,children:"Limit the concurrent blocks runs in one pipeline run."})}),textInput:{monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{concurrency_config:M(M({},null===n||void 0===n?void 0:n.concurrency_config),{},{block_run_limit:Number(e.target.value)})})}))},placeholder:"e.g. 20",type:"number",value:String((null===ee||void 0===ee||null===(l=ee.concurrency_config)||void 0===l?void 0:l.block_run_limit)||"")},title:"Block run limit"}),(0,I.jsx)(y.S,{description:(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(x.ZP,{muted:!0,small:!0,children:"Choose whether to wait or skip when the pipeline run limit is reached."})}),selectInput:{onChange:function(e){return ie((function(n){return M(M({},n),{},{concurrency_config:M(M({},null===n||void 0===n?void 0:n.concurrency_config),{},{on_pipeline_run_limit_reached:e.target.value})})}))},options:null===(s=Object.values(m.pF))||void 0===s?void 0:s.map((function(e){return{label:(0,T.kC)(e),value:e}})),placeholder:"Select an option",value:(null===ee||void 0===ee||null===(a=ee.concurrency_config)||void 0===a?void 0:a.on_pipeline_run_limit_reached)||""},title:"How to handle new pipeline runs when limit reached"})]})}),(0,I.jsxs)(b.Z,{mt:S.HN,children:[(0,I.jsx)(g.Z,{children:"Executor type"}),(0,I.jsxs)(x.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,I.jsx)(h.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/compute-resource#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor",openNewWindow:!0,children:"documentation"}),"."]}),(0,I.jsxs)(b.Z,{mt:1,children:[!J&&(0,I.jsx)(_.Z,{label:"Executor type",onChange:function(e){return ie((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:K,value:(null===ee||void 0===ee?void 0:ee.executor_type)||"",children:k.R.map((function(e){return(0,I.jsx)("option",{value:e,children:e},e)}))}),J&&(0,I.jsx)(O.Z,{label:"Executor type",monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{executor_type:e.target.value})}))},ref:B,setContentOnMount:!0,value:(null===ee||void 0===ee?void 0:ee.executor_type)||""}),(0,I.jsx)(b.Z,{mt:1,children:(0,I.jsx)(h.Z,{muted:!0,onClick:function(){J?(ie((function(e){return M(M({},e),{},{executor_type:null===H||void 0===H?void 0:H.executor_type})})),setTimeout((function(){var e;return null===K||void 0===K||null===(e=K.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===B||void 0===B||null===(e=B.current)||void 0===e?void 0:e.focus()}),1),$(!J)},preventDefault:!0,small:!0,children:J?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,I.jsxs)(b.Z,{mt:S.HN,children:[(0,I.jsx)(g.Z,{children:"Retry configuration"}),(0,I.jsxs)(x.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,I.jsx)(h.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,I.jsx)(b.Z,{mt:1,children:(0,I.jsxs)(v.ZP,{children:[(0,I.jsx)(O.Z,{label:"Retries",monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{retries:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===ee||void 0===ee||null===(d=ee.retry_config)||void 0===d?void 0:d.retries)||""}),(0,I.jsx)(b.Z,{mr:1}),(0,I.jsx)(O.Z,{label:"Delay",monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===ee||void 0===ee||null===(R=ee.retry_config)||void 0===R?void 0:R.delay)||""}),(0,I.jsx)(b.Z,{mr:1}),(0,I.jsx)(O.Z,{label:"Max delay",monospace:!0,onChange:function(e){return ie((function(n){return M(M({},n),{},{retry_config:M(M({},null===n||void 0===n?void 0:n.retry_config),{},{max_delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===ee||void 0===ee||null===(A=ee.retry_config)||void 0===A?void 0:A.max_delay)||""}),(0,I.jsx)(b.Z,{mr:1}),(0,I.jsx)(f.Z,{checked:!(null===ee||void 0===ee||null===(F=ee.retry_config)||void 0===F||!F.exponential_backoff),label:"Exponential backoff",onClick:function(){return ie((function(e){var n;return M(M({},e),{},{retry_config:M(M({},null===e||void 0===e?void 0:e.retry_config),{},{exponential_backoff:!(null!==e&&void 0!==e&&null!==(n=e.retry_config)&&void 0!==n&&n.exponential_backoff)})})}))}})]})})]}),(0,I.jsxs)(b.Z,{mt:S.HN,children:[(0,I.jsx)(g.Z,{children:"Tags"}),(0,I.jsx)(b.Z,{mt:1,children:(0,I.jsx)(j.Z,{removeTag:function(e){ie((function(n){return M(M({},n),{},{tags:me.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){ie((function(n){return M(M({},n),{},{tags:(0,D.$C)(e.uuid,me,(function(n){return n===e.uuid}))})}))},selectedTags:null===me||void 0===me?void 0:me.map((function(e){return{uuid:e}})),tags:ye,uuid:"TagsAutocompleteInputField-".concat(null===H||void 0===H?void 0:H.uuid)})})]}),(0,I.jsx)(b.Z,{mt:S.HN,children:(0,I.jsx)(v.ZP,{children:(0,I.jsx)(p.ZP,{disabled:!Q,loading:U,onClick:function(){return L({concurrency_config:null===ee||void 0===ee?void 0:ee.concurrency_config,description:null===ee||void 0===ee?void 0:ee.description,executor_type:null===ee||void 0===ee?void 0:ee.executor_type,name:null===ee||void 0===ee?void 0:ee.name,retry_config:null===ee||void 0===ee?void 0:ee.retry_config,run_pipeline_in_one_process:null===ee||void 0===ee?void 0:ee.run_pipeline_in_one_process,settings:null===ee||void 0===ee?void 0:ee.settings,tags:null===ee||void 0===ee?void 0:ee.tags}).then((function(){return X(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,I.jsx)(b.Z,{mt:S.HN,children:(0,I.jsx)(f.Z,{checked:ge&&!he,disabled:he,label:"Hide all blocks in notebook",onClick:function(){return pe((function(){return ge?{}:null===z||void 0===z?void 0:z.reduce((function(e,n){var t=n.uuid;return M(M({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,I.jsx)(b.Z,{mt:S.Mq,children:(0,I.jsx)(f.Z,{checked:ae,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return fe((function(e){return!e}))}})})]})},F=t(28795),U=t(69864),H=t(72619);function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function K(e){var n=e.pipeline,t=(0,s.useRouter)(),i=(0,c.useState)(null),o=i[0],u=i[1],l=null===n||void 0===n?void 0:n.uuid,d=Z.ZP.pipelines.detail(l).data,p=G(G({},null===d||void 0===d?void 0:d.pipeline),n),f=(0,U.Db)(Z.ZP.pipelines.useUpdate(l,{update_content:!0}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;l!==n&&(window.location.href="".concat(t.basePath,"/pipelines/").concat(n,"/settings"))}},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),v=(0,r.Z)(f,2),g=v[0],h=v[1].isLoading;return(0,I.jsx)(a.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:o,pageName:F.M.SETTINGS,pipeline:p,setErrors:u,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(F.M.SETTINGS,"_").concat(l),children:p&&(0,I.jsx)(A,{isPipelineUpdating:h,pipeline:p,updatePipeline:function(e){return g({pipeline:e})}})})}K.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var B=(0,d.Z)(K)},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(37003)}])},80022:function(e,n,t){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return i}})},15544:function(e,n,t){"use strict";function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.d(n,{Z:function(){return i}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(61049);function r(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,i.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(12539),r=t(80022);function o(e,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}}},function(e){e.O(0,[1557,3782,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{86627:function(n,e,t){"use strict";t.r(e);var r=t(77837),u=t(38860),i=t.n(u),c=t(37361),s=t(93808),a=t(28274),o=t(24755),d=t(50178),f=t(28598);function _(){var n=((0,d.PR)()||{}).id;return(0,f.jsx)(a.Z,{uuidItemSelected:o.DQ,uuidWorkspaceSelected:o.tC,children:(0,f.jsx)(c.Z,{contained:!0,disableFields:[c.X.PERMISSIONS,c.X.ROLES],slug:n})})}_.getInitialProps=(0,r.Z)(i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,s.Z)(_)},10736:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return t(86627)}])}},function(n){n.O(0,[1557,5699,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{86627:function(n,e,t){"use strict";t.r(e);var r=t(77837),u=t(38860),i=t.n(u),c=t(37361),s=t(93808),a=t(28274),o=t(24755),d=t(50178),f=t(28598);function _(){var n=((0,d.PR)()||{}).id;return(0,f.jsx)(a.Z,{uuidItemSelected:o.DQ,uuidWorkspaceSelected:o.tC,children:(0,f.jsx)(c.Z,{contained:!0,disableFields:[c.X.PERMISSIONS,c.X.ROLES],slug:n})})}_.getInitialProps=(0,r.Z)(i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,s.Z)(_)},10736:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return t(86627)}])}},function(n){n.O(0,[1557,5699,3958,9774,2888,179],(function(){return e=10736,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3605],{55729:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(82394),i=n(75582),o=n(82684),c=n(69864),l=n(71180),s=n(15338),d=n(97618),u=n(55485),a=n(85854),p=n(48670),j=n(65956),f=n(82359),h=n(88543),v=n(38276),g=n(30160),m=n(17488),Z=n(69650),x=n(12468),b=n(35686),y=n(77417),O=n(25976),_=n(44897),P=n(42631),w=n(70515),k=O.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),C=n(72473),E=n(72191),S=n(70320),D=n(81728),N=n(42122),I=n(72619),L=n(23780),A=n(28598);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=function(e){var t,n,O,_=e.cancelButtonText,P=e.contained,H=e.header,M=e.onCancel,T=e.onSaveSuccess,F=e.rootProject,B=(0,L.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),U=(0,i.Z)(B,1)[0],V=(0,o.useState)(null),W=V[0],X=V[1],q=(0,o.useState)(!1),z=q[0],G=q[1],J=(0,y.Z)(),K=J.fetchProjects,Y=J.project,Q=J.projectPlatformActivated,$=J.rootProject,ee=(0,o.useMemo)((function(){return F?$:Y}),[Y,$,F]),te=ee||{},ne=te.name,re=te.openai_api_key,ie=te.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){W||X(ee)}),[ee,W]);var ce=(0,c.Db)(b.ZP.projects.useUpdate(ne),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var t,n=e.project;K(),X(n),G(!1),(0,S.hY)(null===n||void 0===n||null===(t=n.features)||void 0===t?void 0:t[f.d.LOCAL_TIMEZONE]),T&&(null===T||void 0===T||T(n))},onErrorCallback:function(e,t){return U({errors:t,response:e})}})}}),le=(0,i.Z)(ce,2),se=le[0],de=le[1].isLoading,ue=(0,o.useCallback)((function(e){return se({project:R(R({},e),{},{root_project:F})})}),[F,se]),ae=(0,A.jsxs)(A.Fragment,{children:[H,(0,A.jsxs)(j.Z,{noPadding:!0,children:[(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Project name"})}),(0,A.jsx)(g.ZP,{default:!0,monospace:!0,children:ne})]}),(0,A.jsx)(s.Z,{light:!0}),(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Project UUID"})}),(0,A.jsx)(g.ZP,{default:!!ie,monospace:!0,muted:!ie,children:ie||"Not required"})]}),(0,A.jsx)(s.Z,{light:!0}),(0,A.jsx)(v.Z,{p:w.cd,children:(0,A.jsxs)(u.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,A.jsxs)(d.Z,{flexDirection:"column",children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Help improve Mage"})}),(0,A.jsxs)(g.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,A.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,A.jsx)(v.Z,{mr:w.cd}),(0,A.jsx)(Z.Z,{checked:null===W||void 0===W?void 0:W.help_improve_mage,compact:!0,id:"help_improve_mage_toggle",onCheck:function(){return X((function(e){return R(R({},e),{},{help_improve_mage:!(null!==W&&void 0!==W&&W.help_improve_mage)})}))}})]})})]}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsx)(h.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,A.jsx)(h.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===W||void 0===W||null===(t=W.pipelines)||void 0===t||null===(n=t.settings)||void 0===n||null===(O=n.triggers)||void 0===O||!O.save_in_code_automatically),onCheck:function(e){return X((function(t){var n,r,i,o,c,l;return R(R({},t),{},{pipelines:R(R({},null===t||void 0===t?void 0:t.pipelines),{},{settings:R(R({},null===t||void 0===t||null===(n=t.pipelines)||void 0===n?void 0:n.settings),{},{triggers:R(R({},null===t||void 0===t||null===(r=t.pipelines)||void 0===r||null===(i=r.settings)||void 0===i?void 0:i.triggers),{},{save_in_code_automatically:e(null===t||void 0===t||null===(o=t.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(l=c.triggers)||void 0===l?void 0:l.save_in_code_automatically)})})})})}))}}})}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsx)(j.Z,{noPadding:!0,overflowVisible:!0,children:(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsxs)(a.Z,{level:5,children:["Features\xa0",(0,A.jsx)(p.Z,{bold:!0,href:"https://docs.mage.ai/development/project/features",largeSm:!0,openNewWindow:!0,children:"(docs)"})]})}),Object.entries((0,N.gR)(null===W||void 0===W?void 0:W.features,[f.d.CODE_BLOCK_V2])||{}).map((function(e,t){var n=(0,i.Z)(e,2),o=n[0],c=n[1],l=Q&&!F&&(null===ee||void 0===ee?void 0:ee.features_override)&&o in(null===ee||void 0===ee?void 0:ee.features_override);return(0,A.jsx)(v.Z,{mt:0===t?0:1,children:(0,A.jsxs)(u.ZP,{alignItems:"center",children:[(0,A.jsxs)(d.Z,{flex:1,children:[(0,A.jsx)(Z.Z,{disabled:l,checked:!!c,compact:!0,onCheck:function(){return X((function(e){return R(R({},e),{},{features:R(R({},null===W||void 0===W?void 0:W.features),{},(0,r.Z)({},o,!c))})}))}}),(0,A.jsx)(v.Z,{mr:w.cd}),(0,A.jsxs)(d.Z,{children:[(0,A.jsx)(g.ZP,{default:!c,monospace:!0,children:(0,D.vg)(o)}),o===f.d.LOCAL_TIMEZONE&&(0,A.jsx)(v.Z,{ml:1,children:(0,A.jsx)(x.Z,R({},S.EB))})]})]}),l&&(0,A.jsx)(g.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsx)(j.Z,{noPadding:!0,children:(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"OpenAI"})}),re&&!z?(0,A.jsxs)(u.ZP,R(R({},u.A0),{},{children:[(0,A.jsx)(g.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,A.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return G(!0)},secondary:!0,title:"Edit",children:(0,A.jsx)(C.Edit,{size:E.bL})})]})):(0,A.jsx)(m.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return X((function(t){return R(R({},t),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===W||void 0===W?void 0:W.openai_api_key)||""})]})}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsxs)(u.ZP,{alignItems:"center",children:[(0,A.jsx)(l.ZP,{id:"save-project-settings",loading:de,onClick:function(){var e={features:null===W||void 0===W?void 0:W.features,help_improve_mage:null===W||void 0===W?void 0:W.help_improve_mage,openai_api_key:null===W||void 0===W?void 0:W.openai_api_key,pipelines:null===W||void 0===W?void 0:W.pipelines};!0===(null===ee||void 0===ee?void 0:ee.help_improve_mage)&&!1===(null===W||void 0===W?void 0:W.help_improve_mage)&&(e.deny_improve_mage=!0),ue(e)},primary:!0,children:"Save project settings"}),M&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v.Z,{mr:w.cd}),(0,A.jsx)(l.ZP,{onClick:M,secondary:!0,children:_||"Cancel"})]})]})]});return P?(0,A.jsx)(k,{children:ae}):ae}},46568:function(e,t,n){"use strict";var r=n(82394),i=n(26304),o=(n(82684),n(33591)),c=n(28598),l=["children","fullHeight","gutter","style"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.children,n=e.fullHeight,r=e.gutter,s=e.style,u=void 0===s?{}:s,a=(0,i.Z)(e,l),p=d({},u);return r&&(p.paddingLeft=r,p.paddingRight=p.paddingLeft),n&&(p.height="100%"),(0,c.jsx)(o.Col,d(d({},a),{},{style:p,children:t}))}},82682:function(e,t,n){"use strict";var r=n(82394),i=n(26304),o=n(82684),c=n(33591),l=n(28598),s=["children","fullHeight","gutter","justifyContent","style"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.children,n=e.fullHeight,r=e.gutter,d=e.justifyContent,a=e.style,p=void 0===a?{}:a,j=(0,i.Z)(e,s),f=u({},p);return r&&(f.marginLeft=-1*r,f.marginRight=f.marginLeft),n&&(f.height="100%"),(0,l.jsx)(c.Row,u(u({},j),{},{justifyContent:d,style:f,children:o.Children.map(t,(function(e,t){return e&&o.cloneElement(e,{gutter:r,key:t})}))}))}},70791:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(38860),o=n.n(i),c=n(46568),l=n(55729),s=n(93808),d=n(82682),u=n(28274),a=n(38276),p=n(70515),j=n(24755),f=n(28598);function h(){return(0,f.jsx)(u.Z,{uuidItemSelected:j.B2.PREFERENCES,uuidWorkspaceSelected:j.Pl.PROJECT_PLATFORM,children:(0,f.jsx)(a.Z,{p:p.cd,children:(0,f.jsx)(d.Z,{justifyContent:"center",children:(0,f.jsx)(c.Z,{xl:8,xxl:6,children:(0,f.jsx)(l.Z,{rootProject:!0})})})})})}h.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,s.Z)(h)},8071:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/platform/preferences",function(){return n(70791)}])}},function(e){e.O(0,[1557,5699,9774,2888,179],(function(){return t=8071,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3605],{55729:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(82394),i=n(75582),o=n(82684),c=n(69864),l=n(71180),s=n(15338),u=n(97618),d=n(55485),a=n(85854),p=n(48670),f=n(65956),j=n(82359),h=n(88543),v=n(38276),g=n(30160),m=n(17488),b=n(69650),y=n(12468),Z=n(35686),x=n(77417),O=n(25976),_=n(44897),P=n(42631),w=n(70515),k=O.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),E=n(72473),C=n(72191),S=n(70320),D=n(81728),N=n(42122),I=n(72619),L=n(23780),A=n(28598);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=function(e){var t,n,O,_=e.cancelButtonText,P=e.contained,H=e.header,T=e.onCancel,M=e.onSaveSuccess,F=e.rootProject,B=(0,L.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),U=(0,i.Z)(B,1)[0],V=(0,o.useState)(null),W=V[0],X=V[1],q=(0,o.useState)(!1),z=q[0],G=q[1],J=(0,x.Z)(),K=J.fetchProjects,Y=J.project,Q=J.projectPlatformActivated,$=J.rootProject,ee=(0,o.useMemo)((function(){return F?$:Y}),[Y,$,F]),te=ee||{},ne=te.name,re=te.openai_api_key,ie=te.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){W||X(ee)}),[ee,W]);var ce=(0,c.Db)(Z.ZP.projects.useUpdate(ne),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var t,n=e.project;K(),X(n),G(!1),(0,S.hY)(null===n||void 0===n||null===(t=n.features)||void 0===t?void 0:t[j.d.LOCAL_TIMEZONE]),M&&(null===M||void 0===M||M(n))},onErrorCallback:function(e,t){return U({errors:t,response:e})}})}}),le=(0,i.Z)(ce,2),se=le[0],ue=le[1].isLoading,de=(0,o.useCallback)((function(e){return se({project:R(R({},e),{},{root_project:F})})}),[F,se]),ae=(0,A.jsxs)(A.Fragment,{children:[H,(0,A.jsxs)(f.Z,{noPadding:!0,children:[(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Project name"})}),(0,A.jsx)(g.ZP,{default:!0,monospace:!0,children:ne})]}),(0,A.jsx)(s.Z,{light:!0}),(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Project UUID"})}),(0,A.jsx)(g.ZP,{default:!!ie,monospace:!0,muted:!ie,children:ie||"Not required"})]}),(0,A.jsx)(s.Z,{light:!0}),(0,A.jsx)(v.Z,{p:w.cd,children:(0,A.jsxs)(d.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,A.jsxs)(u.Z,{flexDirection:"column",children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"Help improve Mage"})}),(0,A.jsxs)(g.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,A.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,A.jsx)(v.Z,{mr:w.cd}),(0,A.jsx)(b.Z,{checked:null===W||void 0===W?void 0:W.help_improve_mage,compact:!0,id:"help_improve_mage_toggle",onCheck:function(){return X((function(e){return R(R({},e),{},{help_improve_mage:!(null!==W&&void 0!==W&&W.help_improve_mage)})}))}})]})})]}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsx)(h.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,A.jsx)(h.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===W||void 0===W||null===(t=W.pipelines)||void 0===t||null===(n=t.settings)||void 0===n||null===(O=n.triggers)||void 0===O||!O.save_in_code_automatically),onCheck:function(e){return X((function(t){var n,r,i,o,c,l;return R(R({},t),{},{pipelines:R(R({},null===t||void 0===t?void 0:t.pipelines),{},{settings:R(R({},null===t||void 0===t||null===(n=t.pipelines)||void 0===n?void 0:n.settings),{},{triggers:R(R({},null===t||void 0===t||null===(r=t.pipelines)||void 0===r||null===(i=r.settings)||void 0===i?void 0:i.triggers),{},{save_in_code_automatically:e(null===t||void 0===t||null===(o=t.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(l=c.triggers)||void 0===l?void 0:l.save_in_code_automatically)})})})})}))}}})}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsx)(f.Z,{noPadding:!0,overflowVisible:!0,children:(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsxs)(a.Z,{level:5,children:["Features\xa0",(0,A.jsx)(p.Z,{bold:!0,href:"https://docs.mage.ai/development/project/features",largeSm:!0,openNewWindow:!0,children:"(docs)"})]})}),Object.entries((0,N.gR)(null===W||void 0===W?void 0:W.features,[j.d.CODE_BLOCK_V2])||{}).map((function(e,t){var n=(0,i.Z)(e,2),o=n[0],c=n[1],l=Q&&!F&&(null===ee||void 0===ee?void 0:ee.features_override)&&o in(null===ee||void 0===ee?void 0:ee.features_override);return(0,A.jsx)(v.Z,{mt:0===t?0:1,children:(0,A.jsxs)(d.ZP,{alignItems:"center",children:[(0,A.jsxs)(u.Z,{flex:1,children:[(0,A.jsx)(b.Z,{disabled:l,checked:!!c,compact:!0,onCheck:function(){return X((function(e){return R(R({},e),{},{features:R(R({},null===W||void 0===W?void 0:W.features),{},(0,r.Z)({},o,!c))})}))}}),(0,A.jsx)(v.Z,{mr:w.cd}),(0,A.jsxs)(u.Z,{children:[(0,A.jsx)(g.ZP,{default:!c,monospace:!0,children:(0,D.vg)(o)}),o===j.d.LOCAL_TIMEZONE&&(0,A.jsx)(v.Z,{ml:1,children:(0,A.jsx)(y.Z,R({},S.EB))})]})]}),l&&(0,A.jsx)(g.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsx)(f.Z,{noPadding:!0,children:(0,A.jsxs)(v.Z,{p:w.cd,children:[(0,A.jsx)(v.Z,{mb:1,children:(0,A.jsx)(a.Z,{level:5,children:"OpenAI"})}),re&&!z?(0,A.jsxs)(d.ZP,R(R({},d.A0),{},{children:[(0,A.jsx)(g.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,A.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return G(!0)},secondary:!0,title:"Edit",children:(0,A.jsx)(E.Edit,{size:C.bL})})]})):(0,A.jsx)(m.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return X((function(t){return R(R({},t),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===W||void 0===W?void 0:W.openai_api_key)||""})]})}),(0,A.jsx)(v.Z,{mt:w.HN}),(0,A.jsxs)(d.ZP,{alignItems:"center",children:[(0,A.jsx)(l.ZP,{id:"save-project-settings",loading:ue,onClick:function(){var e={features:null===W||void 0===W?void 0:W.features,help_improve_mage:null===W||void 0===W?void 0:W.help_improve_mage,openai_api_key:null===W||void 0===W?void 0:W.openai_api_key,pipelines:null===W||void 0===W?void 0:W.pipelines};!0===(null===ee||void 0===ee?void 0:ee.help_improve_mage)&&!1===(null===W||void 0===W?void 0:W.help_improve_mage)&&(e.deny_improve_mage=!0),de(e)},primary:!0,children:"Save project settings"}),T&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v.Z,{mr:w.cd}),(0,A.jsx)(l.ZP,{onClick:T,secondary:!0,children:_||"Cancel"})]})]})]});return P?(0,A.jsx)(k,{children:ae}):ae}},46568:function(e,t,n){"use strict";var r=n(82394),i=n(26304),o=(n(82684),n(33591)),c=n(28598),l=["children","fullHeight","gutter","style"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.children,n=e.fullHeight,r=e.gutter,s=e.style,d=void 0===s?{}:s,a=(0,i.Z)(e,l),p=u({},d);return r&&(p.paddingLeft=r,p.paddingRight=p.paddingLeft),n&&(p.height="100%"),(0,c.jsx)(o.Col,u(u({},a),{},{style:p,children:t}))}},82682:function(e,t,n){"use strict";var r=n(82394),i=n(26304),o=n(82684),c=n(33591),l=n(28598),s=["children","fullHeight","gutter","justifyContent","style"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.children,n=e.fullHeight,r=e.gutter,u=e.justifyContent,a=e.style,p=void 0===a?{}:a,f=(0,i.Z)(e,s),j=d({},p);return r&&(j.marginLeft=-1*r,j.marginRight=j.marginLeft),n&&(j.height="100%"),(0,l.jsx)(c.Row,d(d({},f),{},{justifyContent:u,style:j,children:o.Children.map(t,(function(e,t){return e&&o.cloneElement(e,{gutter:r,key:t})}))}))}},70791:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(38860),o=n.n(i),c=n(46568),l=n(55729),s=n(93808),u=n(82682),d=n(28274),a=n(38276),p=n(70515),f=n(24755),j=n(28598);function h(){return(0,j.jsx)(d.Z,{uuidItemSelected:f.B2.PREFERENCES,uuidWorkspaceSelected:f.Pl.PROJECT_PLATFORM,children:(0,j.jsx)(a.Z,{p:p.cd,children:(0,j.jsx)(u.Z,{justifyContent:"center",children:(0,j.jsx)(c.Z,{xl:8,xxl:6,children:(0,j.jsx)(l.Z,{rootProject:!0})})})})})}h.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,s.Z)(h)},8071:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/platform/preferences",function(){return n(70791)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[1557,5699,9774,2888,179],(function(){return t=8071,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3112],{80754:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return D}});var n=r(77837),o=r(38860),i=r.n(o),c=r(93808),
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3112],{80754:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return D}});var n=r(77837),o=r(38860),i=r.n(o),c=r(93808),u=r(82394),s=r(75582),l=r(82684),a=r(69864),d=r(21764),f=r(32013),p=r(98777),j=r(71180),v=r(15338),h=r(55485),g=r(88543),m=r(38276),b=r(30160),Z=r(35686),x=r(77417),O=r(72473),P=r(70515),y=r(81728),w=r(42122),S=r(72619),_=r(23780),k=r(28598);function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){(0,u.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E=function(){var e,t=(0,_.VI)(null,{},[],{uuid:"Platform/Settings"}),r=((0,s.Z)(t,1)[0],(0,x.Z)()),n=r.project,o=r.rootProject,i=(0,l.useState)(null),c=i[0],I=i[1],E=(0,l.useState)(!1),T=(E[0],E[1]),N=(0,l.useState)(null),R=N[0],D=N[1],B=(0,l.useCallback)((function(e){I(e),T(!0)}),[I,T]);(0,l.useEffect)((function(){o&&!c&&I(null===o||void 0===o?void 0:o.platform_settings),n&&!R&&D(null===n||void 0===n?void 0:n.name)}),[o]);var A=(0,l.useMemo)((function(){var e=(0,y.RA)((0,y.Y6)());return(0,k.jsx)(j.ZP,{beforeIcon:(0,k.jsx)(O.Add,{}),compact:!0,onClick:function(){return B((function(t){return C(C({},t),{},{projects:C(C({},null===c||void 0===c?void 0:c.projects),{},(0,u.Z)({},e,{}))})}))},secondary:!0,small:!0,children:"Register project"})}),[c]),F=(0,a.Db)(Z.ZP.projects.useUpdate(null===o||void 0===o?void 0:o.name),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(e){var t=e.project;B((function(e){return C(C(C({},e),t),{},{features:C(C({},null===e||void 0===e?void 0:e.features),{},{override:!(null===t||void 0===t||!t.features_override)&&!(0,w.Qr)(null===t||void 0===t?void 0:t.features_override)})})})),d.Am.success("Platform settings successfully saved.",{position:d.Am.POSITION.BOTTOM_RIGHT,toastId:"platform-settings-success-".concat(null===t||void 0===t?void 0:t.name)})}})}}),M=(0,s.Z)(F,2),H=M[0],W=M[1].isLoading;return(0,k.jsxs)(m.Z,{p:P.cd,children:[(0,k.jsx)(g.Z,{headerChildren:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(m.Z,{ml:P.cd}),A]}),title:"Projects",children:(0,k.jsx)(f.Z,{noBorder:!0,noBoxShadow:!0,visibleMappingForced:Object.keys((null===c||void 0===c?void 0:c.projects)||{}).reduce((function(e,t,r){return C(C({},e),{},(0,u.Z)({},String(r),!0))}),{}),children:Object.entries((null===c||void 0===c?void 0:c.projects)||{}).map((function(e){var t=(0,s.Z)(e,2),r=t[0],n=t[1],o=n.path,i=n.uuid;return(0,k.jsxs)(p.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,k.jsx)(h.ZP,{alignItems:"center",children:(0,k.jsx)(b.ZP,{large:!0,monospace:!0,children:r})}),titleXPadding:P.cd*P.iI,titleYPadding:P.cd*P.iI,children:[(0,k.jsx)(g.S,{description:"Unique name of project.",textInput:{fullWidth:!1,monospace:!0,onChange:function(e){return B((function(t){return C(C({},t),{},{projects:C(C({},null===c||void 0===c?void 0:c.projects),{},(0,u.Z)({},r,C(C({},n),{},{uuid:e.target.value})))})}))},placeholder:r,value:i},title:"Name"}),(0,k.jsx)(g.S,{description:(0,k.jsxs)(b.ZP,{muted:!0,small:!0,children:["Relative path to the project directory starting from the root project directory.",(0,k.jsx)("br",{}),"If blank, the default path will be the project name."]}),textInput:{fullWidth:!1,monospace:!0,onChange:function(e){return B((function(t){return C(C({},t),{},{projects:C(C({},null===c||void 0===c?void 0:c.projects),{},(0,u.Z)({},r,C(C({},n),{},{path:e.target.value})))})}))},placeholder:r,value:o||""},title:"Path"}),(0,k.jsx)(g.S,{description:"The currently selected project.",title:"Currently selected project",toggleSwitch:{checked:r===R,onCheck:function(){return D(r===R?null:r)}}}),(0,k.jsx)(v.Z,{light:!0}),(0,k.jsx)(g.S,{children:(0,k.jsx)(j.ZP,{compact:!0,noBorder:!0,onClick:function(){B((function(e){return C(C({},e),{},{projects:(0,w.gR)(null===c||void 0===c?void 0:c.projects,[r])})}))},small:!0,children:"Deregister project"})})]},r)}))})}),(0,k.jsx)(m.Z,{mt:P.HN}),(0,k.jsx)(g.Z,{title:"Features",children:(0,k.jsx)(g.S,{description:(0,k.jsxs)(b.ZP,{muted:!0,small:!0,children:["If this setting is toggled, the feature flags that are set from the root project",(0,k.jsx)("br",{}),"will override the feature flags of all sub-projects."]}),title:"Override all project features",toggleSwitch:{checked:null===c||void 0===c||null===(e=c.features)||void 0===e?void 0:e.override,onCheck:function(){return B((function(e){var t;return C(C({},e),{},{features:C(C({},null===e||void 0===e?void 0:e.features),{},{override:!(null!==c&&void 0!==c&&null!==(t=c.features)&&void 0!==t&&t.override)})})}))}}})}),(0,k.jsx)(m.Z,{my:P.HN,children:(0,k.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,k.jsx)("div",{}),(0,k.jsx)(j.ZP,{beforeIcon:(0,k.jsx)(O.Save,{}),loading:W,onClick:function(){return H({project:{activate_project:R,platform_settings:c,root_project:!0}})},primary:!0,children:"Save settings"})]})})]})},T=r(28274),N=r(24755);function R(){return(0,k.jsx)(T.Z,{uuidItemSelected:N.B2.SETTINGS,uuidWorkspaceSelected:N.Pl.PROJECT_PLATFORM,children:(0,k.jsx)(E,{})})}R.getInitialProps=(0,n.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var D=(0,c.Z)(R)},39863:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/platform/settings",function(){return r(80754)}])},80022:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},15544:function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},13692:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(61049);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,n.Z)(e,t)}},93189:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(12539),o=r(80022);function i(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}},function(e){e.O(0,[1557,5699,9774,2888,179],(function(){return t=39863,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{5149:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(58146),o=u(93808),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(i.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,o.Z)(c)},79877:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return u(5149)}])}},function(n){n.O(0,[1557,5699,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{5149:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(58146),o=u(93808),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(i.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,o.Z)(c)},79877:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions/[...slug]",function(){return u(5149)}])}},function(n){n.O(0,[1557,5699,7779,9774,2888,179],(function(){return r=79877,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,i){"use strict";i.r(n);var t=i(77837),r=i(38860),s=i.n(r),u=i(82684),c=i(34376),o=i(71180),d=i(15338),l=i(55485),a=i(58146),p=i(93808),m=i(28274),f=i(38276),h=i(75499),v=i(30160),x=i(35686),j=i(72473),_=i(70515),P=i(24755),Z=i(3917),w=i(36717),b=i(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),i=n[0],t=n[1],r=x.ZP.permissions.list({_limit:1e3}).data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!i,label:function(){return"Permissions"}}];return i?(p[0].onClick=function(){return t(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[i&&(0,b.jsx)(a.Z,{contained:!0,onCancel:function(){return t(!1)}}),!i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:_.cd,children:(0,b.jsx)(o.ZP,{beforeIcon:(0,b.jsx)(j.Locked,{}),onClick:function(){return t(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var i,t=null===(i=s[n])||void 0===i?void 0:i.id;e.push("/settings/workspace/permissions/".concat(t))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,i=e.created_at,t=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||t},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,Z.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:i&&(0,Z.d$)(i)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,t.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,i){"use strict";i.d(n,{q:function(){return s}});var t=i(75582),r=i(36288);function s(e){return Object.entries(r.K4).reduce((function(n,i){var r=(0,t.Z)(i,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return i(34331)}])}},function(e){e.O(0,[1557,5699,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4085],{34331:function(e,n,i){"use strict";i.r(n);var t=i(77837),r=i(38860),s=i.n(r),u=i(82684),c=i(34376),o=i(71180),d=i(15338),l=i(55485),a=i(58146),p=i(93808),m=i(28274),f=i(38276),h=i(75499),v=i(30160),x=i(35686),j=i(72473),_=i(70515),P=i(24755),Z=i(3917),w=i(36717),b=i(28598);function k(){var e=(0,c.useRouter)(),n=(0,u.useState)(!1),i=n[0],t=n[1],r=x.ZP.permissions.list({_limit:1e3}).data,s=(0,u.useMemo)((function(){return(null===r||void 0===r?void 0:r.permissions)||[]}),[r]),p=[{bold:!i,label:function(){return"Permissions"}}];return i?(p[0].onClick=function(){return t(!1)},p.push({bold:!0,label:function(){return"New permission"}})):p[0].linkProps={href:"/settings/workspace/permissions"},(0,b.jsxs)(m.Z,{appendBreadcrumbs:!0,breadcrumbs:p,title:"Permissions",uuidItemSelected:P.B2.PERMISSIONS,uuidWorkspaceSelected:P.Pl.USER_MANAGEMENT,children:[i&&(0,b.jsx)(a.Z,{contained:!0,onCancel:function(){return t(!1)}}),!i&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Z,{p:_.cd,children:(0,b.jsx)(o.ZP,{beforeIcon:(0,b.jsx)(j.Locked,{}),onClick:function(){return t(!0)},primary:!0,children:"Add new permission"})}),(0,b.jsx)(d.Z,{light:!0}),(0,b.jsx)(h.Z,{columnFlex:[3,1,null,6,null,null],columns:[{uuid:"Entity"},{uuid:"Subtype"},{uuid:"Entity ID"},{uuid:"Access"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var i,t=null===(i=s[n])||void 0===i?void 0:i.id;e.push("/settings/workspace/permissions/".concat(t))},rows:null===s||void 0===s?void 0:s.map((function(e){var n=e.access,i=e.created_at,t=e.entity,r=e.entity_id,s=e.entity_name,u=e.entity_type,c=(e.id,e.updated_at),o=(e.user,n?(0,w.q)(n):[]),d=(null===o||void 0===o?void 0:o.length)||0;return[(0,b.jsx)(v.ZP,{monospace:!0,children:s||t},"entityName"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!u,children:u||"-"},"entityType"),(0,b.jsx)(v.ZP,{default:!0,monospace:!!r,children:r||"-"},"entityID"),(0,b.jsx)("div",{children:d>=1&&(0,b.jsx)(l.ZP,{alignItems:"center",flexWrap:"wrap",children:null===o||void 0===o?void 0:o.map((function(e,n){return(0,b.jsx)("div",{children:(0,b.jsxs)(v.ZP,{default:!0,monospace:!0,small:!0,children:[e,d>=2&&n<d-1&&(0,b.jsx)(v.ZP,{inline:!0,muted:!0,small:!0,children:",\xa0"})]})},e)}))})},"access"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,children:c&&(0,Z.d$)(c)},"updatedAt"),(0,b.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:i&&(0,Z.d$)(i)},"createdAt")]})),uuid:"permissions"})]})]})}k.getInitialProps=(0,t.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},36717:function(e,n,i){"use strict";i.d(n,{q:function(){return s}});var t=i(75582),r=i(36288);function s(e){return Object.entries(r.K4).reduce((function(n,i){var r=(0,t.Z)(i,2),s=r[0],u=r[1];return e&Number(s)?n.concat(u):n}),[])}},65960:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/permissions",function(){return i(34331)}])}},function(e){e.O(0,[1557,5699,7779,9774,2888,179],(function(){return n=65960,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{55729:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(82394),i=n(75582),o=n(82684),c=n(69864),s=n(71180),l=n(15338),u=n(97618),d=n(55485),a=n(85854),p=n(48670),f=n(65956),j=n(82359),h=n(88543),v=n(38276),g=n(30160),m=n(17488),b=n(69650),y=n(12468),Z=n(35686),x=n(77417),O=n(25976),_=n(44897),P=n(42631),w=n(70515),k=O.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),C=n(72473),E=n(72191),S=n(70320),D=n(81728),I=n(42122),N=n(72619),L=n(23780),H=n(28598);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=function(e){var t,n,O,_=e.cancelButtonText,P=e.contained,A=e.header,M=e.onCancel,R=e.onSaveSuccess,W=e.rootProject,B=(0,L.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),F=(0,i.Z)(B,1)[0],U=(0,o.useState)(null),V=U[0],X=U[1],Y=(0,o.useState)(!1),q=Y[0],z=Y[1],G=(0,x.Z)(),K=G.fetchProjects,J=G.project,Q=G.projectPlatformActivated,$=G.rootProject,ee=(0,o.useMemo)((function(){return W?$:J}),[J,$,W]),te=ee||{},ne=te.name,re=te.openai_api_key,ie=te.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){V||X(ee)}),[ee,V]);var ce=(0,c.Db)(Z.ZP.projects.useUpdate(ne),{onSuccess:function(e){return(0,N.wD)(e,{callback:function(e){var t,n=e.project;K(),X(n),z(!1),(0,S.hY)(null===n||void 0===n||null===(t=n.features)||void 0===t?void 0:t[j.d.LOCAL_TIMEZONE]),R&&(null===R||void 0===R||R(n))},onErrorCallback:function(e,t){return F({errors:t,response:e})}})}}),se=(0,i.Z)(ce,2),le=se[0],ue=se[1].isLoading,de=(0,o.useCallback)((function(e){return le({project:T(T({},e),{},{root_project:W})})}),[W,le]),ae=(0,H.jsxs)(H.Fragment,{children:[A,(0,H.jsxs)(f.Z,{noPadding:!0,children:[(0,H.jsxs)(v.Z,{p:w.cd,children:[(0,H.jsx)(v.Z,{mb:1,children:(0,H.jsx)(a.Z,{level:5,children:"Project name"})}),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,children:ne})]}),(0,H.jsx)(l.Z,{light:!0}),(0,H.jsxs)(v.Z,{p:w.cd,children:[(0,H.jsx)(v.Z,{mb:1,children:(0,H.jsx)(a.Z,{level:5,children:"Project UUID"})}),(0,H.jsx)(g.ZP,{default:!!ie,monospace:!0,muted:!ie,children:ie||"Not required"})]}),(0,H.jsx)(l.Z,{light:!0}),(0,H.jsx)(v.Z,{p:w.cd,children:(0,H.jsxs)(d.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,H.jsxs)(u.Z,{flexDirection:"column",children:[(0,H.jsx)(v.Z,{mb:1,children:(0,H.jsx)(a.Z,{level:5,children:"Help improve Mage"})}),(0,H.jsxs)(g.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,H.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,H.jsx)(v.Z,{mr:w.cd}),(0,H.jsx)(b.Z,{checked:null===V||void 0===V?void 0:V.help_improve_mage,compact:!0,id:"help_improve_mage_toggle",onCheck:function(){return X((function(e){return T(T({},e),{},{help_improve_mage:!(null!==V&&void 0!==V&&V.help_improve_mage)})}))}})]})})]}),(0,H.jsx)(v.Z,{mt:w.HN}),(0,H.jsx)(h.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,H.jsx)(h.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===V||void 0===V||null===(t=V.pipelines)||void 0===t||null===(n=t.settings)||void 0===n||null===(O=n.triggers)||void 0===O||!O.save_in_code_automatically),onCheck:function(e){return X((function(t){var n,r,i,o,c,s;return T(T({},t),{},{pipelines:T(T({},null===t||void 0===t?void 0:t.pipelines),{},{settings:T(T({},null===t||void 0===t||null===(n=t.pipelines)||void 0===n?void 0:n.settings),{},{triggers:T(T({},null===t||void 0===t||null===(r=t.pipelines)||void 0===r||null===(i=r.settings)||void 0===i?void 0:i.triggers),{},{save_in_code_automatically:e(null===t||void 0===t||null===(o=t.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(s=c.triggers)||void 0===s?void 0:s.save_in_code_automatically)})})})})}))}}})}),(0,H.jsx)(v.Z,{mt:w.HN}),(0,H.jsx)(f.Z,{noPadding:!0,overflowVisible:!0,children:(0,H.jsxs)(v.Z,{p:w.cd,children:[(0,H.jsx)(v.Z,{mb:1,children:(0,H.jsxs)(a.Z,{level:5,children:["Features\xa0",(0,H.jsx)(p.Z,{bold:!0,href:"https://docs.mage.ai/development/project/features",largeSm:!0,openNewWindow:!0,children:"(docs)"})]})}),Object.entries((0,I.gR)(null===V||void 0===V?void 0:V.features,[j.d.CODE_BLOCK_V2])||{}).map((function(e,t){var n=(0,i.Z)(e,2),o=n[0],c=n[1],s=Q&&!W&&(null===ee||void 0===ee?void 0:ee.features_override)&&o in(null===ee||void 0===ee?void 0:ee.features_override);return(0,H.jsx)(v.Z,{mt:0===t?0:1,children:(0,H.jsxs)(d.ZP,{alignItems:"center",children:[(0,H.jsxs)(u.Z,{flex:1,children:[(0,H.jsx)(b.Z,{disabled:s,checked:!!c,compact:!0,onCheck:function(){return X((function(e){return T(T({},e),{},{features:T(T({},null===V||void 0===V?void 0:V.features),{},(0,r.Z)({},o,!c))})}))}}),(0,H.jsx)(v.Z,{mr:w.cd}),(0,H.jsxs)(u.Z,{children:[(0,H.jsx)(g.ZP,{default:!c,monospace:!0,children:(0,D.vg)(o)}),o===j.d.LOCAL_TIMEZONE&&(0,H.jsx)(v.Z,{ml:1,children:(0,H.jsx)(y.Z,T({},S.EB))})]})]}),s&&(0,H.jsx)(g.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,H.jsx)(v.Z,{mt:w.HN}),(0,H.jsx)(f.Z,{noPadding:!0,children:(0,H.jsxs)(v.Z,{p:w.cd,children:[(0,H.jsx)(v.Z,{mb:1,children:(0,H.jsx)(a.Z,{level:5,children:"OpenAI"})}),re&&!q?(0,H.jsxs)(d.ZP,T(T({},d.A0),{},{children:[(0,H.jsx)(g.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,H.jsx)(s.ZP,{iconOnly:!0,onClick:function(){return z(!0)},secondary:!0,title:"Edit",children:(0,H.jsx)(C.Edit,{size:E.bL})})]})):(0,H.jsx)(m.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return X((function(t){return T(T({},t),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===V||void 0===V?void 0:V.openai_api_key)||""})]})}),(0,H.jsx)(v.Z,{mt:w.HN}),(0,H.jsxs)(d.ZP,{alignItems:"center",children:[(0,H.jsx)(s.ZP,{id:"save-project-settings",loading:ue,onClick:function(){var e={features:null===V||void 0===V?void 0:V.features,help_improve_mage:null===V||void 0===V?void 0:V.help_improve_mage,openai_api_key:null===V||void 0===V?void 0:V.openai_api_key,pipelines:null===V||void 0===V?void 0:V.pipelines};!0===(null===ee||void 0===ee?void 0:ee.help_improve_mage)&&!1===(null===V||void 0===V?void 0:V.help_improve_mage)&&(e.deny_improve_mage=!0),de(e)},primary:!0,children:"Save project settings"}),M&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(v.Z,{mr:w.cd}),(0,H.jsx)(s.ZP,{onClick:M,secondary:!0,children:_||"Cancel"})]})]})]});return P?(0,H.jsx)(k,{children:ae}):ae}},46568:function(e,t,n){"use strict";var r=n(82394),i=n(26304),o=(n(82684),n(33591)),c=n(28598),s=["children","fullHeight","gutter","style"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.children,n=e.fullHeight,r=e.gutter,l=e.style,d=void 0===l?{}:l,a=(0,i.Z)(e,s),p=u({},d);return r&&(p.paddingLeft=r,p.paddingRight=p.paddingLeft),n&&(p.height="100%"),(0,c.jsx)(o.Col,u(u({},a),{},{style:p,children:t}))}},82682:function(e,t,n){"use strict";var r=n(82394),i=n(26304),o=n(82684),c=n(33591),s=n(28598),l=["children","fullHeight","gutter","justifyContent","style"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.children,n=e.fullHeight,r=e.gutter,u=e.justifyContent,a=e.style,p=void 0===a?{}:a,f=(0,i.Z)(e,l),j=d({},p);return r&&(j.marginLeft=-1*r,j.marginRight=j.marginLeft),n&&(j.height="100%"),(0,s.jsx)(c.Row,d(d({},f),{},{justifyContent:u,style:j,children:o.Children.map(t,(function(e,t){return e&&o.cloneElement(e,{gutter:r,key:t})}))}))}},61316:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(38860),o=n.n(i),c=n(46568),s=n(55729),l=n(93808),u=n(82682),d=n(28274),a=n(38276),p=n(70515),f=n(24755),j=n(28598);function h(){return(0,j.jsx)(d.Z,{uuidItemSelected:f.HY,uuidWorkspaceSelected:f.WH,children:(0,j.jsx)(a.Z,{p:p.cd,children:(0,j.jsx)(u.Z,{justifyContent:"center",children:(0,j.jsx)(c.Z,{xl:8,xxl:6,children:(0,j.jsx)(s.Z,{})})})})})}h.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,l.Z)(h)},33323:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return n(61316)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[1557,5699,9774,2888,179],(function(){return t=33323,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6875],{2591:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),o=u(17022),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(o.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(c)},44981:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles/[...slug]",function(){return u(2591)}])}},function(n){n.O(0,[1557,5699,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6875],{2591:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),o=u(17022),a=u(28598);function c(n){var r=n.slug;return(0,a.jsx)(o.Z,{slug:r})}c.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(c)},44981:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles/[...slug]",function(){return u(2591)}])}},function(n){n.O(0,[1557,5699,1376,9774,2888,179],(function(){return r=44981,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2344],{53795:function(e,n,r){"use strict";r.r(n);var s=r(77837),t=r(75582),o=r(38860),i=r.n(o),u=r(21764),c=r(82684),a=r(69864),l=r(34376),d=r(71180),p=r(15338),f=r(55485),h=r(48670),m=r(63637),x=r(93808),j=r(17022),k=r(28274),w=r(38276),Z=r(75499),v=r(30160),b=r(12468),g=r(35686),_=r(70515),C=r(24755),P=r(3917),I=r(76417),T=r(72619),A=r(95924),O=r(28598);function E(){var e=(0,l.useRouter)(),n=(0,c.useState)(!1),r=n[0],s=n[1],o=g.ZP.roles.list().data,i=(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.roles)||[]}),[o]),x=[{bold:!r,label:function(){return"Roles"}}];r?(x[0].onClick=function(){return s(!1)},x.push({bold:!0,label:function(){return"New role"}})):x[0].linkProps={href:"/settings/workspace/roles"};var E=(0,a.Db)(g.ZP.seeds.useCreate(),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){u.Am.success("Started creating default roles and permissions. Check back later to see the roles.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"seed-create-success"})},onErrorCallback:function(e){var n=e.error,r=n.errors,s=n.exception,t=n.message,o=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||s||t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),N=(0,t.Z)(E,2),S=N[0],R=N[1].isLoading;return(0,O.jsxs)(k.Z,{appendBreadcrumbs:!0,breadcrumbs:x,title:"Roles",uuidItemSelected:C.B2.ROLES,uuidWorkspaceSelected:C.Pl.USER_MANAGEMENT,children:[r&&(0,O.jsx)(j.Z,{contained:!0,onCancel:function(){return s(!1)}}),!r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(w.Z,{p:_.cd,children:(0,O.jsxs)(f.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,O.jsx)(d.ZP,{beforeIcon:(0,O.jsx)(m.Z,{}),onClick:function(){return s(!0)},primary:!0,children:"Add new role"}),(0,O.jsx)(w.Z,{mr:_.cd}),(0,O.jsx)(b.Z,{appearBefore:!0,fullSize:!0,description:(0,O.jsxs)(v.ZP,{default:!0,children:["This will create 6 roles and 100s of permissions",(0,O.jsx)("br",{}),"that Mage normally uses when user defined",(0,O.jsx)("br",{}),"permissions isn\u2019t turned on."]}),lightBackground:!0,widthFitContent:!0,children:(0,O.jsx)(d.ZP,{compact:!0,loading:R,onClick:function(){return S({seed:{permissions:!0,roles:!0}})},secondary:!0,small:!0,children:"Create default roles and permissions"})})]})}),(0,O.jsx)(p.Z,{light:!0}),(0,O.jsx)(Z.Z,{columnFlex:[1,1,1,null],columns:[{uuid:"Role"},{uuid:"Created by"},{uuid:"Last updated"},{rightAligned:!0,uuid:"Created at"}],onClickRow:function(n){var r,s=null===(r=i[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/roles/".concat(s))},rows:null===i||void 0===i?void 0:i.map((function(n){var r=n.created_at,s=(n.id,n.name),t=n.updated_at,o=n.user;return[(0,O.jsx)(v.ZP,{children:s},"name"),o?(0,O.jsx)(h.Z,{default:!0,onClick:function(n){(0,A.j)(n),e.push("/settings/workspace/users/".concat(null===o||void 0===o?void 0:o.id))},children:(0,I.s)(o)}):(0,O.jsx)("div",{},"user"),(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:t&&(0,P.d$)(t)},"updatedAt"),(0,O.jsx)(v.ZP,{monospace:!0,default:!0,rightAligned:!0,children:r&&(0,P.d$)(r)},"createdAt")]})),uuid:"roles"})]})]})}E.getInitialProps=(0,s.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,x.Z)(E)},8619:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/roles",function(){return r(53795)}])}},function(e){e.O(0,[1557,5699,1376,9774,2888,179],(function(){return n=8619,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{79264:function(e,n,t){"use strict";var i=t(82394),r=t(75582),o=t(82684),l=t(21764),s=t(46568),c=t(97618),a=t(68562),u=t(82682),d=t(30160),h=t(17488),p=t(36300),f=t(72473),b=t(31748),y=t(79633),m=t(70515),v=t(72619),j=t(33834),g=t(69864),x=t(35686),Z=t(28598);n.Z=function(e){var n=e.copyText,t=e.deleteVariable,_=e.disableKeyEdit,w=e.editStateInit,O=void 0!==w&&w,k=e.fetchVariables,P=e.focusKey,C=e.hideEdit,S=e.obfuscate,T=e.onEnterCallback,I=e.onEscapeCallback,E=e.pipelineUUID,M=e.updateVariable,D=e.variable||{},q=D.uuid,G=D.value,N=(0,o.useRef)(null),H=(0,o.useRef)(null),A=(0,o.useState)(!1),R=A[0],W=A[1],z=(0,o.useState)(q),L=z[0],U=z[1],V=(0,o.useState)(G),B=V[0],F=V[1],Y=(0,o.useState)(O),J=Y[0],K=Y[1],X=(0,g.Db)(x.ZP.variables.pipelines.useUpdate(E,q),{onSuccess:function(e){return(0,v.wD)(e,{callback:function(){K(!1),k()}})}}),$=(0,r.Z)(X,1)[0],Q=(0,o.useCallback)((function(e){if("Enter"===e.key){var n=B;try{n=JSON.parse(B)}catch(t){}M?L&&B&&(null===M||void 0===M||M((0,i.Z)({},L,B)),K(!1)):$({variable:{name:L,value:n}}),(0,j.ez)(),null===T||void 0===T||T()}else"Escape"===e.key&&((0,j.ez)(),K(!1),null===I||void 0===I||I())}),[T,I,M,$,L,B]),ee=(0,o.useCallback)((function(){(0,j.ez)(),t()}),[t]);(0,o.useEffect)((function(){var e,n;J&&(P?null===N||void 0===N||null===(e=N.current)||void 0===e||e.focus():null===H||void 0===H||null===(n=H.current)||void 0===n||n.focus())}),[J,P]);var ne=n||"kwargs['".concat(q,"']");return(0,Z.jsx)("div",{onMouseEnter:function(){return W(!0)},onMouseLeave:function(){return W(!1)},children:(0,Z.jsxs)(u.Z,{children:[(0,Z.jsx)(s.Z,{hiddenSmDown:!0,md:1,children:(0,Z.jsx)(p.qZ,{noPadding:!0,children:(0,Z.jsx)(a.ZP,{backgroundColor:b.qJ,borderless:!0,centerText:!0,muted:!0,onClick:function(){navigator.clipboard.writeText(ne),l.Am.success("Successfully copied to clipboard.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:q})},small:!0,uuid:"Sidekick/GlobalVariables/".concat(q),withIcon:!0,children:(0,Z.jsx)(f.Copy,{size:2.5*m.iI})})})}),(0,Z.jsx)(s.Z,{md:S?9:4,children:J&&!_?(0,Z.jsx)(p.qZ,{children:(0,Z.jsx)(h.Z,{borderless:!0,compact:!0,fullWidth:!0,monospace:!0,onChange:function(e){U(e.target.value),e.preventDefault()},onKeyDown:Q,paddingHorizontal:0,placeholder:"variable",ref:N,small:!0,value:L})}):(0,Z.jsx)(p.qZ,{children:(0,Z.jsx)(d.ZP,{color:y.Or,monospace:!0,small:!0,title:q,children:q})})}),(0,Z.jsx)(s.Z,{md:S?2:7,children:J?(0,Z.jsx)(p.qZ,{children:(0,Z.jsx)(h.Z,{borderless:!0,compact:!0,fullWidth:!0,monospace:!0,onChange:function(e){F(e.target.value),e.preventDefault()},onKeyDown:Q,paddingHorizontal:0,placeholder:"enter value",ref:H,small:!0,value:B})}):(0,Z.jsxs)(p.qZ,{children:[S?(0,Z.jsx)(d.ZP,{monospace:!0,small:!0,children:R?"*":"*******"}):(0,Z.jsx)(d.ZP,{monospace:!0,small:!0,title:G.toString(),children:G.toString()}),(0,Z.jsxs)(c.Z,{children:[!C&&R&&(0,Z.jsx)(a.ZP,{backgroundColor:b.qJ,borderless:!0,inline:!0,muted:!0,onClick:function(){K(!0)},small:!0,uuid:"Sidekick/GlobalVariables/edit_".concat(q),withIcon:!0,children:(0,Z.jsx)(f.Edit,{size:2.5*m.iI})}),t&&R&&(0,Z.jsx)(a.ZP,{backgroundColor:b.qJ,borderless:!0,inline:!0,muted:!0,onClick:ee,small:!0,uuid:"Sidekick/GlobalVariables/delete_".concat(q),withIcon:!0,children:(0,Z.jsx)(f.Trash,{size:2.5*m.iI})})]})]})})]})})}},36300:function(e,n,t){"use strict";t.d(n,{kA:function(){return a},qZ:function(){return u}});var i=t(25976),r=t(2842),o=t(4982),l=t(61896),s=t(47041),c=t(70515),a=(c.iI,o.O$,c.iI,l.dN,i.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-cr39lf-0"})(["height:calc(100vh - ","px - ","px);width:fit-content;",""],r.Wi,s.nn,(function(e){return e.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-cr39lf-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "})),i.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-cr39lf-2"})(["",""],(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))),u=i.default.td.withConfig({displayName:"indexstyle__CellStyle",componentId:"sc-cr39lf-3"})(["display:flex;align-items:center;justify-content:space-between;border:1px solid #1C1C1C;height:100%;",""],(function(e){return!e.noPadding&&"\n padding: 0 ".concat(2*c.iI,"px;\n ")}))},46568:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),l=t(28598),s=["children","fullHeight","gutter","style"];function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,c=e.style,u=void 0===c?{}:c,d=(0,r.Z)(e,s),h=a({},u);return i&&(h.paddingLeft=i,h.paddingRight=h.paddingLeft),t&&(h.height="100%"),(0,l.jsx)(o.Col,a(a({},d),{},{style:h,children:n}))}},82682:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=t(82684),l=t(33591),s=t(28598),c=["children","fullHeight","gutter","justifyContent","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,a=e.justifyContent,d=e.style,h=void 0===d?{}:d,p=(0,r.Z)(e,c),f=u({},h);return i&&(f.marginLeft=-1*i,f.marginRight=f.marginLeft),t&&(f.height="100%"),(0,s.jsx)(l.Row,u(u({},p),{},{justifyContent:a,style:f,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:i,key:n})}))}))}},60480:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var i,r=t(77837),o=t(82394),l=t(75582),s=t(38860),c=t.n(s),a=t(82684),u=t(12691),d=t.n(u),h=t(21764),p=t(69864),f=t(71180),b=t(90299),y=t(70652),m=t(50724),v=t(15338),j=t(1402),g=t(55485),x=t(85854),Z=t(48670),_=t(93808),w=t(44085),O=t(28274),k=t(38276);!function(e){e.SSH="ssh",e.HTTPS="https"}(i||(i={}));var P=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",labelDescription:"Defaults to Python's os.getcwd() if omitted. Mage will create this local directory if it doesn't already exist.",uuid:"repo_path"}],C=[{autoComplete:"username",label:"Username",uuid:"username"},{autoComplete:"email",label:"Email",uuid:"email"},{autoComplete:"ssh_public_key",label:"SSH public key in base64",type:"password",uuid:"ssh_public_key"},{autoComplete:"ssh_private_key",label:"SSH private key in base64",type:"password",uuid:"ssh_private_key"}],S=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",label:"Email",required:!0,uuid:"email"},{autoComplete:"access_token",label:"Access token",labelDescription:"Add your Git access token to authenticate with your provided username. The access token will be stored as a Mage secret. You will see the secret below if you have already added it.",required:!0,type:"password",uuid:"access_token"}],T=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],I=t(30160),E=t(17488),M=t(79264),D=t(35686),q=t(70515),G=t(24755),N=t(15610),H=t(72619),A=t(69419),R=t(28598);function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L={label:function(){return"One-way Git Sync"},uuid:"git_sync"},U={label:function(){return"Git Actions"},uuid:"git_integration"},V=[L,U];function B(){var e=D.ZP.syncs.list(),n=e.data,t=e.mutate,r=(0,a.useState)(null),s=r[0],c=r[1],u=(0,a.useState)(null),_=u[0],W=u[1],B=(0,a.useState)(null),F=B[0],Y=B[1];(0,a.useEffect)((function(){if(n){var e,t=null===n||void 0===n||null===(e=n.syncs)||void 0===e?void 0:e[0];W(null===t||void 0===t?void 0:t.user_git_settings),c(t)}}),[n]);var J=(0,a.useMemo)((function(){if(n){var e,t=null===n||void 0===n||null===(e=n.syncs)||void 0===e?void 0:e[0];return!(null===t||void 0===t||!t.branch)}return!1}),[n]),K=D.ZP.git_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1}),X=K.data,$=(K.mutate,(0,a.useMemo)((function(){return(null===X||void 0===X?void 0:X.git_branch)||{}}),[X]).is_git_integration_enabled),Q=(0,p.Db)(D.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(e){var n=e.sync;n&&(c(n),window.location.reload(),h.Am.success("Sync saved",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e,n){return Y({errors:n,response:e})}})}}),ee=(0,l.Z)(Q,2),ne=ee[0],te=ee[1].isLoading,ie=(0,p.Db)(D.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(e){e.sync&&h.Am.success("Success!",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e,n){return Y({errors:n,response:e})}})}}),re=(0,l.Z)(ie,2),oe=re[0],le=re[1].isLoading,se=(0,p.Db)((function(e){return D.ZP.secrets.useDelete(e)()}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){t()},onErrorCallback:function(e){var n=e.error,t=(n.errors,n.message);setErrorMessages((function(e){return e.concat(t)}))}})}}),ce=(0,l.Z)(se,1)[0],ae=(0,a.useMemo)((function(){return(null===s||void 0===s?void 0:s.auth_type)||i.SSH}),[null===s||void 0===s?void 0:s.auth_type]),ue=(0,a.useMemo)((function(){return ae===i.HTTPS?S:C}),[ae]),de=D.ZP.statuses.list().data,he=(0,a.useMemo)((function(){var e,n;return null===de||void 0===de||null===(e=de.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.require_user_authentication}),[de]),pe=(0,a.useMemo)((function(){return V}),[]),fe=(0,a.useState)(),be=fe[0],ye=fe[1];(0,a.useEffect)((function(){be||ye($?U:L)}),[$,be]);var me=(0,a.useMemo)((function(){var e,n=c,t=s;(null===be||void 0===be?void 0:be.uuid)===U.uuid&&he&&(n=W,t=_);var i=Object.entries(t||{}).filter((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1];return t.endsWith("_secret_name")&&!!i}));return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("form",{children:ue.map((function(e){var i,r,l=e.autoComplete,s=e.disabled,c=e.label,a=e.labelDescription,u=e.required,d=e.type,p=e.uuid;return r="ssh_public_key"===p?(0,R.jsx)(k.Z,{mb:1,children:(0,R.jsxs)(I.ZP,{small:!0,children:["Run ",(0,R.jsx)(Z.Z,{onClick:function(){navigator.clipboard.writeText("cat ~/.ssh/id_ed25519.pub | base64 | tr -d \\\\n && echo"),h.Am.success("Successfully copied to clipboard.",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:p})},small:!0,children:"cat ~/.ssh/id_ed25519.pub | base64 | tr -d \\\\n && echo"})," in terminal to get base64 encoded public key and paste the result here. The key will be stored as a Mage secret. You will see the secret below if you have already added it."]})}):"ssh_private_key"===p?(0,R.jsx)(k.Z,{mb:1,children:(0,R.jsxs)(I.ZP,{small:!0,children:["Follow same steps as the public key, but run ",(0,R.jsx)(Z.Z,{onClick:function(){navigator.clipboard.writeText("cat ~/.ssh/id_ed25519 | base64 | tr -d \\\\n && echo"),h.Am.success("Successfully copied to clipboard.",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:p})},small:!0,children:"cat ~/.ssh/id_ed25519 | base64 | tr -d \\\\n && echo"})," instead. The key will be stored as a Mage secret. You will see the secret below if you have already added it."]})}):a&&(0,R.jsx)(k.Z,{mb:1,children:(0,R.jsx)(I.ZP,{small:!0,children:a})}),(0,R.jsxs)(k.Z,{mt:2,children:[r,(0,R.jsx)(E.Z,{autoComplete:l,disabled:s,label:c,onChange:function(e){n((function(n){return z(z({},n),{},(0,o.Z)({},p,e.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:d,value:(null===(i=t)||void 0===i?void 0:i[p])||""})]},p)}))}),(0,R.jsx)(k.Z,{mb:1,mt:q.Mq,children:(0,R.jsx)(x.Z,{level:5,children:"Git secrets"})}),i&&i.length>0?i.map((function(e){var n=(0,l.Z)(e,2),t=(n[0],n[1]);return(0,R.jsx)(M.Z,{deleteVariable:function(){return ce(t)},hideEdit:!0,obfuscate:!0,variable:{uuid:t,value:"placeholder"}},t)})):(0,R.jsxs)(I.ZP,{children:["You have no Git secrets saved for ",null===be||void 0===be||null===(e=be.label)||void 0===e?void 0:e.call(be)]})]})}),[ue,ce,he,be,W,c,s,_]),ve=(0,A.iV)();(0,a.useEffect)((function(){null!==ve&&void 0!==ve&&ve.tab&&ye(pe.find((function(e){return e.uuid===(null===ve||void 0===ve?void 0:ve.tab)})))}),[ve,pe]);var je=(0,a.useMemo)((function(){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(k.Z,{mt:q.Mq,children:[(0,R.jsxs)(I.ZP,{inline:!0,children:["To learn more about One-way git sync, click"," "]}),(0,R.jsx)(Z.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git-sync",openNewWindow:!0,children:"here"})]}),(0,R.jsx)(k.Z,{mt:q.Mq,children:(0,R.jsx)(I.ZP,{bold:!0,children:"Sync with a specified branch. These settings will be saved at the project level."})}),(0,R.jsx)("form",{children:T.map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,r=e.required,l=e.type,a=e.uuid;return(0,R.jsx)(k.Z,{mt:2,children:(0,R.jsx)(E.Z,{autoComplete:n,disabled:t,label:i,onChange:function(e){c((function(n){return z(z({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:r,setContentOnMount:!0,type:l,value:(null===s||void 0===s?void 0:s[a])||""})},a)}))}),(0,R.jsx)(g.ZP,{alignItems:"center",children:(0,R.jsx)(k.Z,{mt:2,children:(0,R.jsx)(y.Z,{checked:null===s||void 0===s?void 0:s.sync_submodules,label:"Include submodules",onClick:function(){c((function(e){return z(z({},e),{},{sync_submodules:!(null!==s&&void 0!==s&&s.sync_submodules)})}))}})})}),(0,R.jsx)(k.Z,{mt:2,children:(0,R.jsx)(x.Z,{level:5,children:"Additional sync settings"})}),(0,R.jsx)(g.ZP,{alignItems:"center",children:(0,R.jsx)(k.Z,{mt:2,children:(0,R.jsx)(y.Z,{checked:null===s||void 0===s?void 0:s.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){c((function(e){return z(z({},e),{},{sync_on_pipeline_run:!(null!==s&&void 0!==s&&s.sync_on_pipeline_run)})}))}})})}),(0,R.jsx)(g.ZP,{alignItems:"center",children:(0,R.jsx)(k.Z,{mt:2,children:(0,R.jsx)(y.Z,{checked:null===s||void 0===s?void 0:s.sync_on_start,label:"Sync on server start up",onClick:function(){c((function(e){return z(z({},e),{},{sync_on_start:!(null!==s&&void 0!==s&&s.sync_on_start)})}))}})})}),(0,R.jsx)(k.Z,{mt:q.Mq,children:(0,R.jsx)(I.ZP,{bold:!0,children:"Configure the Git authentication credentials that will be used to sync with the specified Git repository."})}),me]})}),[s,me]),ge=(0,a.useMemo)((function(){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(k.Z,{mt:q.Mq,children:[!$&&(0,R.jsx)(k.Z,{mb:1,children:(0,R.jsx)(I.ZP,{bold:!0,warning:!0,children:"When One-way git sync is enabled, you will be unable to access the Git Actions modal. If you want to bypass this safeguard, set the GIT_ENABLE_GIT_INTEGRATION environment variable."})}),(0,R.jsxs)(I.ZP,{bold:!0,children:["We recommend using the ",(0,R.jsx)(d(),{as:"/version-control",href:"/version-control",children:(0,R.jsx)(Z.Z,{bold:!0,inline:!0,children:"version control app"})})," unless you have a specific need to use the Git Actions modal."]})]}),(0,R.jsx)(k.Z,{mt:q.Mq,children:(0,R.jsx)(I.ZP,{children:"These fields are required to help Mage configure your Git settings. These settings will be specific to your user."})}),me]})}),[$,me]);return(0,R.jsx)(O.Z,{uuidItemSelected:G.fF,uuidWorkspaceSelected:G.WH,children:(0,R.jsxs)(k.Z,{p:q.cd,style:{width:"600px"},children:[(0,R.jsx)(x.Z,{children:"Git repository settings"}),(0,R.jsx)(k.Z,{mt:1,children:(0,R.jsx)(I.ZP,{bold:!0,children:"Authentication type"})}),(0,R.jsx)(k.Z,{mt:1,children:(0,R.jsx)(w.Z,{compact:!0,label:"Authentication type",onChange:function(e){var n=e.target.value;c((function(e){return z(z({},e),{},{auth_type:n})}))},value:ae,children:Object.entries(i).map((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1];return(0,R.jsx)("option",{value:i,children:t},i)}))})}),(0,R.jsx)(k.Z,{mt:q.Mq,children:ae===i.SSH&&(0,R.jsxs)(I.ZP,{bold:!0,children:["You will need to ",(0,R.jsx)(Z.Z,{href:"https://docs.mage.ai/development/git/configure#generate-ssh-token",openNewWindow:!0,children:"set up your SSH key"})," if you have not done so already."]})}),(0,R.jsx)("form",{children:P.map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,r=e.labelDescription,l=e.required,a=e.type,u=e.uuid;return(0,R.jsxs)(k.Z,{mt:2,children:[r&&(0,R.jsx)(k.Z,{mb:1,children:(0,R.jsx)(I.ZP,{small:!0,children:r})}),(0,R.jsx)(E.Z,{autoComplete:n,disabled:t,label:i,onChange:function(e){c((function(n){return z(z({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:a,value:(null===s||void 0===s?void 0:s[u])||""})]},u)}))}),(0,R.jsx)(k.Z,{mt:q.Mq,children:(0,R.jsx)(v.Z,{light:!0})}),(0,R.jsx)(b.Z,{onClickTab:function(e){var n=e.uuid;(0,N.u)({tab:n})},selectedTabUUID:null===be||void 0===be?void 0:be.uuid,tabs:pe,underlineStyle:!0}),(0,R.jsx)(v.Z,{light:!0}),(0,R.jsxs)(k.Z,{ml:2,children:[L.uuid===(null===be||void 0===be?void 0:be.uuid)&&je,U.uuid===(null===be||void 0===be?void 0:be.uuid)&&ge]}),(0,R.jsx)(k.Z,{mt:q.HN,children:(0,R.jsx)(f.ZP,{loading:te,onClick:function(){return ne({sync:z(z({},s),{},{user_git_settings:_})})},primary:!0,children:"Save repository settings"})}),F&&(0,R.jsx)(m.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===Y||void 0===Y?void 0:Y(null)},children:(0,R.jsx)(j.Z,z(z({},F),{},{onClose:function(){return null===Y||void 0===Y?void 0:Y(null)}}))}),J&&(0,R.jsxs)(k.Z,{mt:q.HN,children:[(0,R.jsx)(x.Z,{children:"Synchronize code from remote repository"}),(0,R.jsxs)(k.Z,{mt:1,children:[(0,R.jsxs)(I.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,R.jsx)("br",{}),"This may ",(0,R.jsx)(I.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," your existing data, so make sure you\u2019ve committed or backed up your current changes."]}),(0,R.jsx)(k.Z,{mt:2}),(0,R.jsxs)(I.ZP,{children:["Reset will tell Mage to try to clone your repository from remote. This will also ",(0,R.jsx)(I.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," all your local changes and reset any settings you may have configured for your local Git repo. This may be helpful if you are having issues syncing your repository."]})]}),(0,R.jsx)(k.Z,{mt:2,children:(0,R.jsxs)(g.ZP,{children:[(0,R.jsx)(f.ZP,{loading:le,onClick:function(){return oe({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"}),(0,R.jsx)(k.Z,{ml:2}),(0,R.jsx)(f.ZP,{danger:!0,loading:le,onClick:function(){return oe({sync:{action_type:"reset"}})},children:"Reset repository"})]})})]})]})})}B.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var F=(0,_.Z)(B)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(60480)}])}},function(e){e.O(0,[125,1799,7162,1557,5699,8095,4982,9774,2888,179],(function(){return n=37056,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8011],{49597:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),a=u(37361),c=u(28598);function o(n){var r=n.slug;return(0,c.jsx)(a.Z,{slug:r})}o.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(o)},23292:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users/[...slug]",function(){return u(49597)}])}},function(n){n.O(0,[1557,5699,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8011],{49597:function(n,r,u){"use strict";u.r(r);var t=u(77837),e=u(38860),s=u.n(e),i=u(93808),a=u(37361),c=u(28598);function o(n){var r=n.slug;return(0,c.jsx)(a.Z,{slug:r})}o.getInitialProps=function(){var n=(0,t.Z)(s().mark((function n(r){var u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.query.slug,n.abrupt("return",{slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return n.stop()}}),n)})));return function(r){return n.apply(this,arguments)}}(),r.default=(0,i.Z)(o)},23292:function(n,r,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users/[...slug]",function(){return u(49597)}])}},function(n){n.O(0,[1557,5699,3958,9774,2888,179],(function(){return r=23292,n(n.s=r);var r}));var r=n.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{87992:function(e,n,r){"use strict";r.r(n);var u=r(77837),s=r(38860),t=r.n(s),i=r(82684),a=r(34376),l=r(71180),d=r(15338),c=r(93808),o=r(28274),f=r(38276),m=r(75499),p=r(30160),h=r(37361),_=r(35686),v=r(72473),w=r(70515),x=r(24755),Z=r(3917),j=r(50178),P=r(28598);function k(){var e=(0,a.useRouter)(),n=(0,i.useState)(!1),r=n[0],u=n[1],s=(0,j.PR)()||{},t=(s.id,s.owner),c=_.ZP.users.list({},{revalidateOnFocus:!1}).data,k=(0,i.useMemo)((function(){return(null===c||void 0===c?void 0:c.users)||[]}),[null===c||void 0===c?void 0:c.users]),b=[{bold:!r,label:function(){return"Users"}}];return r?(b[0].onClick=function(){return u(!1)},b.push({bold:!0,label:function(){return"New user"}})):b[0].linkProps={href:"/settings/workspace/users"},(0,P.jsxs)(o.Z,{appendBreadcrumbs:!0,breadcrumbs:b,title:"Users",uuidItemSelected:x.B2.USERS,uuidWorkspaceSelected:x.Pl.USER_MANAGEMENT,children:[r&&(0,P.jsx)(h.Z,{contained:!0,onCancel:function(){return u(!1)}}),!r&&(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(f.Z,{p:w.cd,children:(0,P.jsx)(l.ZP,{beforeIcon:(0,P.jsx)(v.AddUserSmileyFace,{}),onClick:function(){return u(!0)},primary:!0,children:"Add new user"})}),(0,P.jsx)(d.Z,{light:!0}),(0,P.jsx)(m.Z,{columnFlex:[null,1,1,1,1,null,null],columns:[{label:function(){return""},uuid:"avatar"},{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"},{uuid:"Email"},{uuid:"Role"},{rightAligned:!0,uuid:"Created"}],onClickRow:function(n){var r,u=null===(r=k[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/users/".concat(u))},rows:k.map((function(e){var n=e.avatar,r=e.created_at,u=e.email,s=e.first_name,t=e.last_name,i=e.roles_display,a=e.roles_new,l=e.username,d=a||[];return d.sort((function(e,n){return e.id-n.id})),[(0,P.jsx)(p.ZP,{large:!0,rightAligned:!0,children:n},"avatar"),(0,P.jsx)(p.ZP,{children:l||"-"},"username"),(0,P.jsx)(p.ZP,{default:!0,children:s||"-"},"firstName"),(0,P.jsx)(p.ZP,{default:!0,children:t||"-"},"lastName"),(0,P.jsx)(p.ZP,{default:!0,children:u},"email"),(0,P.jsx)(p.ZP,{default:!0,children:d.length>0?d[0].name:i},"roles"),(0,P.jsx)(p.ZP,{default:!0,monospace:!0,children:r&&(0,Z.d$)(r)},"created")]})),uuid:"pipeline-runs"})]})]})}k.getInitialProps=(0,u.Z)(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,c.Z)(k)},48673:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(87992)}])}},function(e){e.O(0,[1557,5699,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{87992:function(e,n,r){"use strict";r.r(n);var u=r(77837),s=r(38860),t=r.n(s),i=r(82684),a=r(34376),l=r(71180),d=r(15338),c=r(93808),o=r(28274),f=r(38276),m=r(75499),p=r(30160),h=r(37361),_=r(35686),v=r(72473),w=r(70515),x=r(24755),Z=r(3917),j=r(50178),P=r(28598);function k(){var e=(0,a.useRouter)(),n=(0,i.useState)(!1),r=n[0],u=n[1],s=(0,j.PR)()||{},t=(s.id,s.owner),c=_.ZP.users.list({},{revalidateOnFocus:!1}).data,k=(0,i.useMemo)((function(){return(null===c||void 0===c?void 0:c.users)||[]}),[null===c||void 0===c?void 0:c.users]),b=[{bold:!r,label:function(){return"Users"}}];return r?(b[0].onClick=function(){return u(!1)},b.push({bold:!0,label:function(){return"New user"}})):b[0].linkProps={href:"/settings/workspace/users"},(0,P.jsxs)(o.Z,{appendBreadcrumbs:!0,breadcrumbs:b,title:"Users",uuidItemSelected:x.B2.USERS,uuidWorkspaceSelected:x.Pl.USER_MANAGEMENT,children:[r&&(0,P.jsx)(h.Z,{contained:!0,onCancel:function(){return u(!1)}}),!r&&(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(f.Z,{p:w.cd,children:(0,P.jsx)(l.ZP,{beforeIcon:(0,P.jsx)(v.AddUserSmileyFace,{}),onClick:function(){return u(!0)},primary:!0,children:"Add new user"})}),(0,P.jsx)(d.Z,{light:!0}),(0,P.jsx)(m.Z,{columnFlex:[null,1,1,1,1,null,null],columns:[{label:function(){return""},uuid:"avatar"},{uuid:"Username"},{uuid:"First name"},{uuid:"Last name"},{uuid:"Email"},{uuid:"Role"},{rightAligned:!0,uuid:"Created"}],onClickRow:function(n){var r,u=null===(r=k[n])||void 0===r?void 0:r.id;e.push("/settings/workspace/users/".concat(u))},rows:k.map((function(e){var n=e.avatar,r=e.created_at,u=e.email,s=e.first_name,t=e.last_name,i=e.roles_display,a=e.roles_new,l=e.username,d=a||[];return d.sort((function(e,n){return e.id-n.id})),[(0,P.jsx)(p.ZP,{large:!0,rightAligned:!0,children:n},"avatar"),(0,P.jsx)(p.ZP,{children:l||"-"},"username"),(0,P.jsx)(p.ZP,{default:!0,children:s||"-"},"firstName"),(0,P.jsx)(p.ZP,{default:!0,children:t||"-"},"lastName"),(0,P.jsx)(p.ZP,{default:!0,children:u},"email"),(0,P.jsx)(p.ZP,{default:!0,children:d.length>0?d[0].name:i},"roles"),(0,P.jsx)(p.ZP,{default:!0,monospace:!0,children:r&&(0,Z.d$)(r)},"created")]})),uuid:"pipeline-runs"})]})]})}k.getInitialProps=(0,u.Z)(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,c.Z)(k)},48673:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(87992)}])}},function(e){e.O(0,[1557,5699,3958,9774,2888,179],(function(){return n=48673,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|