mage-ai 0.9.45__py3-none-any.whl → 0.9.46__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/api/constants.py +2 -0
- mage_ai/api/operations/base.py +208 -12
- mage_ai/api/policies/BasePolicy.py +3 -3
- mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
- mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
- mage_ai/api/policies/ComputeServicePolicy.py +50 -0
- mage_ai/api/policies/DownloadPolicy.py +29 -0
- mage_ai/api/policies/GlobalHookPolicy.py +126 -0
- mage_ai/api/policies/OauthPolicy.py +56 -4
- mage_ai/api/policies/ProjectPolicy.py +1 -0
- mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
- mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
- mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
- mage_ai/api/presenters/DownloadPresenter.py +13 -0
- mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
- mage_ai/api/presenters/PipelinePresenter.py +1 -0
- mage_ai/api/presenters/ProjectPresenter.py +1 -0
- mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
- mage_ai/api/presenters/WorkspacePresenter.py +22 -22
- mage_ai/api/resources/AsyncBaseResource.py +39 -0
- mage_ai/api/resources/ClusterResource.py +1 -1
- mage_ai/api/resources/ComputeClusterResource.py +109 -0
- mage_ai/api/resources/ComputeConnectionResource.py +103 -0
- mage_ai/api/resources/ComputeServiceResource.py +35 -0
- mage_ai/api/resources/DownloadResource.py +56 -0
- mage_ai/api/resources/ExecutionStateResource.py +1 -1
- mage_ai/api/resources/GlobalHookResource.py +192 -0
- mage_ai/api/resources/KernelResource.py +10 -0
- mage_ai/api/resources/OauthResource.py +28 -33
- mage_ai/api/resources/PipelineResource.py +4 -4
- mage_ai/api/resources/PipelineScheduleResource.py +37 -16
- mage_ai/api/resources/ProjectResource.py +5 -3
- mage_ai/api/resources/SessionResource.py +0 -9
- mage_ai/api/resources/SparkApplicationResource.py +5 -5
- mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
- mage_ai/api/resources/SparkExecutorResource.py +1 -2
- mage_ai/api/resources/SparkJobResource.py +3 -6
- mage_ai/api/resources/SparkSqlResource.py +6 -11
- mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
- mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
- mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
- mage_ai/api/resources/SparkStageResource.py +3 -6
- mage_ai/api/resources/SparkThreadResource.py +1 -2
- mage_ai/api/resources/mixins/spark.py +25 -4
- mage_ai/authentication/oauth2.py +1 -3
- mage_ai/authentication/permissions/constants.py +4 -0
- mage_ai/authentication/providers/active_directory.py +136 -0
- mage_ai/authentication/providers/constants.py +3 -0
- mage_ai/authentication/providers/ghe.py +24 -25
- mage_ai/authentication/providers/google.py +25 -26
- mage_ai/authentication/providers/oauth.py +2 -2
- mage_ai/authentication/providers/okta.py +28 -29
- mage_ai/authentication/providers/sso.py +2 -2
- mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
- mage_ai/cluster_manager/workspace/base.py +7 -3
- mage_ai/data_integrations/destinations/constants.py +1 -0
- mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +57 -5
- mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
- mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
- mage_ai/data_preparation/models/download/__init__.py +8 -0
- mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/data_preparation/models/global_hooks/constants.py +44 -0
- mage_ai/data_preparation/models/global_hooks/models.py +928 -0
- mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
- mage_ai/data_preparation/models/pipeline.py +82 -6
- mage_ai/data_preparation/models/pipelines/models.py +16 -0
- mage_ai/data_preparation/models/project/__init__.py +6 -0
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/project/models.py +12 -0
- mage_ai/data_preparation/repo_manager.py +23 -1
- mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
- mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
- mage_ai/orchestration/db/models/schedules.py +2 -2
- mage_ai/orchestration/queue/process_queue.py +9 -1
- mage_ai/orchestration/triggers/api.py +11 -3
- mage_ai/orchestration/triggers/constants.py +1 -0
- mage_ai/server/active_kernel.py +37 -4
- mage_ai/server/api/downloads.py +76 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/722-2a171fe616310f60.js → frontend_dist/_next/static/chunks/722-a1584445357a276c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-c79819d6826e5416.js → frontend_dist/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-b4c0a36c69c346a4.js → [...slug]-10e9a2d19541caa2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-95394769a783c6c7.js → triggers-c0e551d265a8d467.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-8af2b89c5a3779fc.js → webpack-fea697dd168c6d0c.js} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +2 -2
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-data-products.html +2 -2
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist/global-hooks.html +24 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/oauth.html +3 -3
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +10 -11
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +14 -14
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist_base_path_template/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/722-2a171fe616310f60.js → frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipeline-runs-c79819d6826e5416.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-b4c0a36c69c346a4.js → [...slug]-10e9a2d19541caa2.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-95394769a783c6c7.js → triggers-c0e551d265a8d467.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-074f3eb2281fba79.js → webpack-d30cb09c85b4c4f0.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +24 -0
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
- mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +18 -19
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/test.html +15 -15
- mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
- mage_ai/server/server.py +35 -9
- mage_ai/server/utils/output_display.py +6 -0
- mage_ai/server/websocket_server.py +14 -0
- mage_ai/services/aws/emr/config.py +1 -0
- mage_ai/services/aws/emr/constants.py +1 -0
- mage_ai/services/aws/emr/emr.py +20 -7
- mage_ai/services/compute/__init__.py +0 -0
- mage_ai/services/compute/aws/__init__.py +0 -0
- mage_ai/services/compute/aws/constants.py +21 -0
- mage_ai/services/compute/aws/models.py +459 -0
- mage_ai/services/compute/aws/steps.py +482 -0
- mage_ai/services/compute/constants.py +27 -0
- mage_ai/services/compute/models.py +212 -0
- mage_ai/services/k8s/job_manager.py +3 -0
- mage_ai/services/spark/api/aws_emr.py +38 -0
- mage_ai/services/spark/api/base.py +7 -4
- mage_ai/services/spark/api/constants.py +4 -0
- mage_ai/services/spark/api/local.py +25 -24
- mage_ai/services/spark/api/service.py +15 -5
- mage_ai/services/spark/constants.py +1 -1
- mage_ai/services/spark/models/applications.py +45 -3
- mage_ai/services/spark/models/base.py +3 -19
- mage_ai/services/spark/models/environments.py +16 -11
- mage_ai/services/spark/models/executors.py +2 -2
- mage_ai/services/spark/models/sqls.py +46 -15
- mage_ai/services/spark/models/stages.py +55 -32
- mage_ai/services/spark/models/threads.py +2 -2
- mage_ai/services/spark/utils.py +22 -6
- mage_ai/services/ssh/__init__.py +0 -0
- mage_ai/services/ssh/aws/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/__init__.py +0 -0
- mage_ai/services/ssh/aws/emr/constants.py +10 -0
- mage_ai/services/ssh/aws/emr/models.py +326 -0
- mage_ai/services/ssh/aws/emr/utils.py +151 -0
- mage_ai/settings/__init__.py +8 -1
- mage_ai/settings/secret_generation.py +7 -0
- mage_ai/settings/sso.py +8 -0
- mage_ai/shared/hash.py +16 -0
- mage_ai/shared/models.py +253 -0
- mage_ai/streaming/constants.py +2 -0
- mage_ai/streaming/sources/activemq.py +89 -0
- mage_ai/streaming/sources/nats_js.py +182 -0
- mage_ai/streaming/sources/source_factory.py +8 -0
- mage_ai/tests/ai/test_ai_functions.py +53 -8
- mage_ai/tests/api/endpoints/test_oauths.py +33 -0
- mage_ai/tests/api/endpoints/test_projects.py +1 -0
- mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
- mage_ai/tests/api/operations/test_base.py +7 -5
- mage_ai/tests/api/operations/test_operations.py +0 -1
- mage_ai/tests/api/operations/test_operations_with_hooks.py +577 -0
- mage_ai/tests/api/operations/test_syncs.py +0 -1
- mage_ai/tests/api/operations/test_users.py +13 -2
- mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +575 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +760 -0
- mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +33 -0
- mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
- mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
- mage_ai/tests/factory.py +65 -3
- mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
- mage_ai/tests/services/k8s/test_job_manager.py +22 -1
- mage_ai/tests/shared/mixins.py +291 -0
- mage_ai/tests/shared/test_hash.py +17 -1
- mage_ai/tests/streaming/sources/test_activemq.py +32 -0
- mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
- mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.46.dist-info}/METADATA +8 -1
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.46.dist-info}/RECORD +410 -343
- mage_ai/authentication/oauth/active_directory.py +0 -17
- mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/icIDjCezcfhiKL87kgeSY/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/_O1kJQLGtZmoBMyWpQrea/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{icIDjCezcfhiKL87kgeSY → 9jB4XPuz6BzxBcG9VNao5}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{_O1kJQLGtZmoBMyWpQrea → uPDjJYpJMst1q6psbRyte}/_ssgManifest.js +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.46.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.46.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.46.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.45.dist-info → mage_ai-0.9.46.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{74395:function(e,n,t){"use strict";t.d(n,{M:function(){return a},W:function(){return l}});var r=t(38626),i=t(46684),l=34*t(70515).iI,a=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},8955:function(e,n,t){"use strict";t.d(n,{G7:function(){return P},ZP:function(){return O},u$:function(){return x}});var r=t(75582),i=t(82394),l=t(26304),a=t(90299),c=t(9134),s=t(24138),o=t(38276),u=t(30160),d=t(75499),p=t(70515),f=t(16488),b=t(42122),v=t(28598),m=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=76,g={uuid:"Run details"},Z={uuid:"Dependency tree"},P=[Z,g];function O(e){var n=e.height,t=e.heightOffset,i=e.pipeline,h=e.selectedRun,O=e.selectedTab,y=e.setSelectedTab,k=j({},(0,l.Z)(e,m));h?k.blockStatus=(0,f.IJ)(null===h||void 0===h?void 0:h.block_runs):k.noStatus=!0;var _=(0,b.Kn)(null===h||void 0===h?void 0:h.variables)?j({},null===h||void 0===h?void 0:h.variables):(null===h||void 0===h?void 0:h.variables)||{},w=null===h||void 0===h?void 0:h.event_variables;if(w&&(0,b.Kn)(w)&&!(0,b.Qr)(w))if((0,b.Kn)(_)&&_.hasOwnProperty("event")){var I=(0,b.Kn)(_.event)?_.event:{};_.event=j(j({},I),w)}else _.event=j({},w);var S=[];_&&JSON.stringify(_,null,2).split("\n").forEach((function(e){S.push(" ".concat(e))}));var D=h&&[["Run ID",null===h||void 0===h?void 0:h.id],["Variables",(0,v.jsx)(c.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],E=h&&(0,v.jsx)(o.Z,{pb:p.cd,px:p.cd,children:(0,v.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:D.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],l=t[1];return[(0,v.jsx)(u.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,v.jsx)(u.ZP,{monospace:!0,textOverflow:!0,children:l},"val_".concat(n))]})),uuid:"LogDetail"})}),C=O&&y;return(0,v.jsxs)(v.Fragment,{children:[C&&(0,v.jsx)(o.Z,{py:p.cd,children:(0,v.jsx)(a.Z,{onClickTab:y,selectedTabUUID:null===O||void 0===O?void 0:O.uuid,tabs:P})}),(!C||Z.uuid===(null===O||void 0===O?void 0:O.uuid))&&(0,v.jsx)(s.ZP,j(j({},k),{},{height:n,heightOffset:(t||0)+(C?x:0),pipeline:i})),g.uuid===(null===O||void 0===O?void 0:O.uuid)&&E]})}},8916:function(e,n,t){"use strict";t.d(n,{FS:function(){return o},JZ:function(){return p},Tt:function(){return d},e7:function(){return f},wx:function(){return u}});var r=t(75582),i=t(82394),l=t(83784),a=t(30229);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(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}function o(e){return"string"===typeof e?e:JSON.stringify(e)}function u(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return s(s({},e),{},{value:o(n)})}))}function d(e){var n;return null===(n=u(e,(function(e){return e.uuid===l.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,r=n.value;return s(s({},e),{},(0,i.Z)({},t,r))}),{})}function p(e,n){return n===a.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===a.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function f(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],a=t[1],c=a;try{c=JSON.parse(a)}catch(o){}return s(s({},e),{},(0,i.Z)({},l,c))}),{}):e}},88785:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return c}});var r=t(38626),i=t(44897),l=t(42631),a=t(70515),c=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*a.iI,a.cd*a.iI,a.cd*a.iI,40*a.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,a.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*a.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*a.iI,"px;\n ")}))},91349:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(75582),l=t(82684),a=t(55485),c=t(38276),s=t(75499),o=t(30160),u=t(35576),d=t(17488),p=t(69650),f=t(38626),b=t(44897),v=t(42631),m=t(70515),h=f.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*m.iI,2*m.iI,v.n_,(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme||b.Z).borders.light,";\n background-color: ").concat((e.theme||b.Z).background.popup,";\n ")})),j=t(81728),x=t(28598);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(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 P=function(e){var n=e.borderless,t=e.compact,f=e.enableVariablesOverwrite,b=e.runtimeVariables,v=e.setEnableVariablesOverwrite,m=e.setRuntimeVariables,g=(0,l.useState)({}),P=g[0],O=g[1];(0,l.useEffect)((function(){var e=Object.entries(b).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],a=t[1],c=(0,j.Pb)(a)&&"object"===typeof JSON.parse(a)&&!Array.isArray(JSON.parse(a))&&null!==JSON.parse(a);return Z(Z({},e),{},(0,r.Z)({},l,c))}),{});O(e)}),[]);var y=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),m((function(t){return Z(Z({},t),{},(0,r.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return P[e]?(0,x.jsx)(u.Z,Z(Z({},t),{},{rows:1,value:n})):(0,x.jsx)(d.Z,Z({},t))};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h,{borderless:n,children:(0,x.jsxs)(a.ZP,{alignItems:"center",children:[(0,x.jsx)(c.Z,{mr:2,children:(0,x.jsx)(p.Z,{checked:f,compact:t,onCheck:v})}),(0,x.jsx)(o.ZP,{bold:!t,large:!t,children:"Overwrite runtime variables"})]})}),f&&b&&Object.entries(b).length>0&&(0,x.jsx)(c.Z,{mt:2,children:(0,x.jsx)(s.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(b).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,x.jsx)(o.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),y(t,r)]}))})})]})}},55072:function(e,n,t){"use strict";t.d(n,{Et:function(){return p},Q:function(){return d}});t(82684);var r=t(71180),i=t(55485),l=t(38276),a=t(31748),c=t(72473),s=t(79633),o=t(70515),u=t(28598),d=30,p=9;n.ZP=function(e){var n=e.page,t=e.maxPages,d=e.onUpdate,p=e.totalPages,f=[],b=t;if(b>p)f=Array.from({length:p},(function(e,n){return n}));else{var v=Math.floor(b/2),m=n-v;n+v>=p?(m=p-b+2,b-=2):n-v<=0?(m=0,b-=2):(b-=4,m=n-Math.floor(b/2)),f=Array.from({length:b},(function(e,n){return n+m}))}return(0,u.jsx)(u.Fragment,{children:p>0&&(0,u.jsxs)(i.ZP,{alignItems:"center",children:[(0,u.jsx)(r.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,u.jsx)(c.Hd,{size:1.5*o.iI,stroke:a.Av})}),!f.includes(0)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!f.includes(1)&&(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),f.map((function(e){return(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{backgroundColor:e===n&&s.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!f.includes(p-1)&&(0,u.jsxs)(u.Fragment,{children:[!f.includes(p-2)&&(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(p-1)},children:p})},p-1)]}),(0,u.jsx)(l.Z,{ml:1}),(0,u.jsx)(r.ZP,{disabled:n===p-1,onClick:function(){return d(n+1)},children:(0,u.jsx)(c.Kw,{size:1.5*o.iI,stroke:a.Av})})]})})}},83641:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return s},VV:function(){return l},_7:function(){return a},rn:function(){return c}});var r,i=t(41143),l="datetime",a="code",c=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var s=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},83784:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},14805:function(e,n,t){"use strict";var r=t(82394),i=t(44495),l=t(55485),a=t(44085),c=t(38276),s=t(30160),o=t(88785),u=t(70515),d=t(86735),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,r=e.selectedTime,f=e.setSelectedDate,v=e.setSelectedTime,m=e.topPosition;return(0,p.jsxs)(o.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:f,value:t}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(l.ZP,{alignItems:"center",children:[(0,p.jsxs)(s.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(a.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),v((function(n){return b(b({},n),{},{hour:e.target.value})}))},paddingRight:5*u.iI,placeholder:"HH",value:null===r||void 0===r?void 0:r.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(c.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(a.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),v((function(n){return b(b({},n),{},{minute:e.target.value})}))},paddingRight:5*u.iI,placeholder:"MM",value:null===r||void 0===r?void 0:r.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){"use strict";t.d(n,{a:function(){return l}});var r=t(16488),i=t(3917);function l(e,n){var t,l;if(null!==n&&void 0!==n&&n.localTimezone)t=(0,i.n$)(e),l={hour:(0,i.lJ)(String(t.getHours())),minute:(0,i.lJ)(String(t.getMinutes()))};else{var a=e.split(" ")[1];t=(0,r.eI)(e),l={hour:a.substring(0,2),minute:a.substring(3,5)}}return{date:t,time:l}}},9134:function(e,n,t){"use strict";var r=t(82684),i=t(21124),l=t(68432),a=t(38626),c=t(65292),s=t(44897),o=t(95363),u=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,b=e.source,v=e.wrapLines,m=(0,r.useContext)(a.ThemeContext);function h(e){var r=e.value;return(0,d.jsx)(l.Z,{customStyle:{backgroundColor:(m.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:o.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*u.iI,paddingTop:2*u.iI},language:n,lineNumberStyle:{color:(m.content||s.Z.content).muted},showLineNumbers:p,style:c._4,useInlineStyles:!0,wrapLines:v,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(h,{value:n})}},children:b})}},51532:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return se}});var r=t(75582),i=t(77837),l=t(82394),a=t(38860),c=t.n(a),s=t(82684),o=t(69864),u=t(34376),d=t(83641),p=t(71180),f=t(15338),b=t(55485),v=t(85854),m=t(55072),h=t(75457),j=t(53943),x=t(44265),g=t(83784),Z=t(44085),P=t(38276),O=t(4190),y=t(75499),k=t(30160),_=t(35686),w=t(8955),I=t(72473),S=t(74395),D=t(70515),E=t(28795),C=t(81728),T=t(3917),M=t(8916),N=t(16488),L=t(15610),F=t(42122),A=t(50178),R=t(72619),V=t(3314),U=t(69419),B=t(70320),H=t(28598);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y=function(e){var n=e.backfill,t=e.errors,i=e.fetchBackfill,l=e.pipeline,a=e.setErrors,c=e.variables,z=(0,A.Ct)(),Y=(0,B.q)(),K=(0,u.useRouter)(),X=n||{},W=X.block_uuid,G=X.end_datetime,q=X.id,Q=X.interval_type,$=X.interval_units,ee=X.name,ne=X.pipeline_run_dates,te=X.start_datetime,re=X.status,ie=X.total_run_count,le=X.variables,ae=void 0===le?{}:le,ce=l.uuid,se=(0,U.iV)(),oe={_limit:40,_offset:40*(null!==se&&void 0!==se&&se.page?se.page:0)};null!==se&&void 0!==se&&se.status&&(oe.status=se.status);var ue=_.ZP.pipeline_runs.list(J(J({},oe),{},{backfill_id:q}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!q}),de=ue.data,pe=ue.mutate,fe=!(te&&G&&Q&&$),be=!re,ve=(0,s.useMemo)((function(){return(be?ne:null===de||void 0===de?void 0:de.pipeline_runs)||[]}),[de,ne,be]),me=(0,s.useMemo)((function(){var e;return(null===de||void 0===de||null===(e=de.metadata)||void 0===e?void 0:e.count)||[]}),[de]),he=(0,s.useState)(null),je=he[0],xe=he[1],ge=(0,s.useMemo)((function(){var e=null!==se&&void 0!==se&&se.page?se.page:0;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.Z,{disableRowSelect:be,emptyMessage:null!==se&&void 0!==se&&se.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:pe,onClickRow:function(e){return xe((function(n){var t=ve[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ve,selectedRun:je,setErrors:a,setSelectedRun:xe}),(0,H.jsx)(P.Z,{p:2,children:(0,H.jsx)(m.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),t=J(J({},se),{},{page:n>=0?n:0});K.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ce,"/backfills/").concat(q,"?").concat((0,U.uM)(t)))},page:Number(e),totalPages:Math.ceil(me/40)})})]})}),[pe,q,ve,ce,se,K,je,a,be,me]),Ze=(0,s.useState)(w.G7[0]),Pe=Ze[0],Oe=Ze[1],ye=(0,o.Db)(_.ZP.backfills.useUpdate(q),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){i(),pe()},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),ke=(0,r.Z)(ye,2),_e=ke[0],we=ke[1].isLoading,Ie=(0,s.useMemo)((function(){return!!re&&(d.rn.CANCELLED!==re&&d.rn.FAILED!==re)}),[re]),Se=(0,s.useMemo)((function(){return re&&d.rn.CANCELLED!==re&&d.rn.FAILED!==re&&d.rn.INITIAL!==re&&d.rn.RUNNING!==re}),[re]),De=(0,s.useMemo)((function(){var e={default:!0,size:1.5*D.iI},n=[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.VW,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:W?d._7:d.VV},"backfill_type")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.rs,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,H.jsx)(k.ZP,{danger:d.rn.CANCELLED===re||d.rn.FAILED==re,default:d.rn.INITIAL===re,monospace:!0,muted:!re,success:d.rn.RUNNING===re||d.rn.COMPLETED===re,children:re||"inactive"},"backfill_status")]];return W||n.push.apply(n,[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,H.jsx)(k.ZP,{monospace:!0,small:!0,children:Y?(0,T.XG)(te,Y):(0,N.Vx)(te)},"backfill_start_date")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,H.jsx)(k.ZP,{monospace:!0,small:!0,children:Y?(0,T.XG)(G,Y):(0,N.Vx)(G)},"backfill_end_date")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:Q&&(0,C.kC)(Q)},"interval_type")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:$},"interval_units")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.qZ,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:ie},"total_runs")]]),(0,H.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[W,Y,G,Q,$,te,re,ie]),Ee=(0,s.useMemo)((function(){return ae||{}}),[ae]),Ce=(0,s.useMemo)((function(){var e=(0,M.wx)(c,(function(e){return e.uuid===g.C}))||[];return(0,F.Qr)(Ee)||Object.entries(Ee).forEach((function(n){var t=(0,r.Z)(n,2),i=t[0],l=t[1],a=e.findIndex((function(e){return(null===e||void 0===e?void 0:e.uuid)===i}));-1!==a?e.splice(a,1,{uuid:i,value:(0,M.FS)(l)}):e.push({uuid:i,value:(0,M.FS)(l)})})),"undefined"!==typeof e&&null!==e&&void 0!==e&&e.length?(0,H.jsx)(y.Z,{columnFlex:[null,1],rows:e.map((function(e){var n=e.uuid,t=e.value;return[(0,H.jsx)(k.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,H.jsx)(k.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ee,c]);return(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)(h.Z,{afterHidden:!je,before:(0,H.jsxs)(S.M,{children:[(0,H.jsxs)(P.Z,{mb:D.HN,pt:D.cd,px:D.cd,children:[(0,H.jsx)(P.Z,{mb:D.cd,children:(0,H.jsx)(I.yg,{size:5*D.iI})}),(0,H.jsx)(v.Z,{children:ee})]}),(0,H.jsx)(P.Z,{px:D.cd,children:(0,H.jsx)(v.Z,{level:5,children:"Settings"})}),(0,H.jsx)(f.Z,{light:!0,mt:1,short:!0}),De,Ce&&(0,H.jsxs)(P.Z,{my:D.HN,children:[(0,H.jsx)(P.Z,{px:D.cd,children:(0,H.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,H.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ce]})]}),beforeWidth:34*D.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(ce,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return ee},linkProps:{as:"/pipelines/".concat(ce,"/backfills/").concat(q),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,w.ZP)(J(J({},e),{},{selectedRun:je,selectedTab:Pe,setSelectedTab:Oe}))},errors:t,pageName:E.M.BACKFILLS,pipeline:l,setErrors:a,subheader:(0,H.jsxs)(b.ZP,{alignItems:"center",children:[!Se&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(p.ZP,{beforeIcon:Ie?(0,H.jsx)(I.dz,{size:2*D.iI}):(0,H.jsx)(I.Py,{inverted:!(d.rn.CANCELLED===re||d.rn.FAILED===re),size:2*D.iI}),danger:Ie,disabled:fe,loading:we,onClick:function(e){(0,V.j)(e),_e({backfill:{status:Ie?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Ie&&!(d.rn.CANCELLED===re||d.rn.FAILED===re)&&!fe,children:Ie?"Cancel backfill":d.rn.CANCELLED===re||d.rn.FAILED===re?"Retry backfill":"Start backfill"}),(0,H.jsx)(P.Z,{mr:D.cd})]}),!z&&(0,H.jsxs)(H.Fragment,{children:[re===x.VO.COMPLETED?(0,H.jsx)(k.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,H.jsx)(p.ZP,{linkProps:{as:"/pipelines/".concat(ce,"/backfills/").concat(q,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,H.jsx)(P.Z,{mr:D.cd})]}),!be&&(0,H.jsxs)(Z.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?K.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ce,"/backfills/").concat(q)):(0,L.u7)({page:0,status:e.target.value})},paddingRight:4*D.iI,placeholder:"Select run status",value:(null===se||void 0===se?void 0:se.status)||"all",children:[(0,H.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),x.IK.map((function(e){return(0,H.jsx)("option",{value:e,children:x.Do[e]},e)}))]})]}),title:function(){return ee},uuid:"backfill/detail",children:[(0,H.jsx)(P.Z,{mt:D.cd,px:D.cd,children:(0,H.jsx)(v.Z,{level:5,children:"Runs for this backfill"})}),(0,H.jsx)(f.Z,{light:!0,mt:D.cd,short:!0}),de?ge:(0,H.jsx)(P.Z,{m:2,children:(0,H.jsx)(O.Z,{inverted:!0})})]})})},K=t(14805),X=t(50724),W=t(97618),G=t(91349),q=t(17488),Q=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],$=t(88785),ee=t(79500);function ne(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function te(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re=function(e){var n=e.backfill,t=e.errors,i=e.fetchBackfill,l=e.pipeline,a=e.setErrors,c=e.variables,m=(0,u.useRouter)(),j=(0,B.q)(),x=(0,s.useState)(),g=x[0],O=x[1],w=g||{},S=w.block_uuid,T=w.id,L=w.interval_type,A=w.interval_units,V=w.name,U=l.uuid,z=(0,s.useMemo)((function(){return(0,F.Qr)((null===n||void 0===n?void 0:n.variables)||{})?(0,M.Tt)(c)||{}:(0,F.Xc)(n.variables,(function(e){return(0,M.FS)(e)}))}),[null===n||void 0===n?void 0:n.variables,c]),J=(0,s.useState)(!1),Y=J[0],ne=J[1],re=(0,s.useState)(z),ie=re[0],le=re[1],ae=(0,s.useState)(S?d._7:d.VV),ce=ae[0],se=ae[1],oe=(0,s.useState)(!1),ue=oe[0],de=oe[1],pe=(0,s.useState)(!1),fe=pe[0],be=pe[1],ve=(0,s.useState)(null),me=ve[0],he=ve[1],je=(0,s.useState)(null),xe=je[0],ge=je[1],Ze=(0,s.useState)({hour:"00",minute:"00"}),Pe=Ze[0],Oe=Ze[1],ye=(0,s.useState)({hour:"00",minute:"00"}),ke=ye[0],_e=ye[1];(0,s.useEffect)((function(){if(n){O(n);var e=n.start_datetime;if(e){var t=(0,ee.a)(e,{localTimezone:j});ge(null===t||void 0===t?void 0:t.date),_e(t.time)}var r=n.end_datetime;if(r){var i=(0,ee.a)(r,{localTimezone:j});he(null===i||void 0===i?void 0:i.date),Oe(null===i||void 0===i?void 0:i.time)}}}),[j,n]);var we=(0,s.useMemo)((function(){var e=[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.KJ,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,H.jsx)(q.Z,{monospace:!0,onChange:function(e){e.preventDefault(),O((function(n){return te(te({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:V},"model_name_input_detail")]];return d.VV===ce&&e.push.apply(e,[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,H.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!ue&&(0,H.jsx)(q.Z,{monospace:!0,onClick:function(){return de((function(e){return!e}))},onFocus:function(){return de(!0)},placeholder:"YYYY-MM-DD HH:MM",value:xe?(0,N.XM)(xe,ke,{localTimezone:j}):""}),(0,H.jsx)("div",{style:{width:"400px"},children:(0,H.jsx)(X.Z,{disableEscape:!0,onClickOutside:function(){return de(!1)},open:ue,style:{position:"relative"},children:(0,H.jsx)(K.Z,{localTime:j,selectedDate:xe,selectedTime:ke,setSelectedDate:ge,setSelectedTime:_e,topPosition:!0})})})]},"start_time_input")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,H.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!fe&&(0,H.jsx)(q.Z,{monospace:!0,onClick:function(){return be((function(e){return!e}))},onFocus:function(){return be(!0)},placeholder:"YYYY-MM-DD HH:MM",value:me?(0,N.XM)(me,Pe,{localTimezone:j}):""}),(0,H.jsx)("div",{style:{width:"400px"},children:(0,H.jsx)(X.Z,{disableEscape:!0,onClickOutside:function(){return be(!1)},open:fe,style:{position:"relative"},children:(0,H.jsx)(K.Z,{localTime:j,selectedDate:me,selectedTime:Pe,setSelectedDate:he,setSelectedTime:Oe,topPosition:!0})})})]},"end_time_input")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,H.jsx)(Z.Z,{monospace:!0,onChange:function(e){e.preventDefault(),O((function(n){return te(te({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:L,children:d.IB.map((function(e){return(0,H.jsx)("option",{value:e,children:(0,C.kC)(e)},e)}))},"interval_type_input")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,H.jsx)(q.Z,{disabled:!L,monospace:!0,onChange:function(e){e.preventDefault(),O((function(n){return te(te({},n),{},{interval_units:e.target.value})}))},placeholder:L?"Number of ".concat(L).concat(L!==d.I7.CUSTOM?"s":""," between each backfill"):"Interval type is required",type:"number",value:A},"interval_unit_input")]]),(0,F.Qr)(z)||e.push([(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.LO,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Runtime variables"})]},"overwrite_runtime_variables"),(0,H.jsx)(G.Z,{borderless:!0,compact:!0,enableVariablesOverwrite:Y,runtimeVariables:ie,setEnableVariablesOverwrite:ne,setRuntimeVariables:le},"overwrite_runtime_variables_table")]),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(P.Z,{mb:2,px:D.cd,children:(0,H.jsx)(v.Z,{children:"Settings"})}),(0,H.jsx)(f.Z,{light:!0,short:!0}),(0,H.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[me,xe,j,Y,L,A,V,ie,z,ce,ue,fe,Pe,ke]),Ie=(0,o.Db)(_.ZP.backfills.useUpdate(T),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){i(),m.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(U,"/backfills/").concat(T))},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),Se=(0,r.Z)(Ie,2),De=Se[0],Ee=Se[1].isLoading,Ce=(0,s.useCallback)((function(){var e=te(te({},(0,F.GL)(g,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:Y?(0,M.e7)(ie):{}});return d._7===ce||(e.interval_type=L,e.interval_units=A,e.end_datetime=me&&null!==Pe&&void 0!==Pe&&Pe.hour&&null!==Pe&&void 0!==Pe&&Pe.minute?(0,N.XM)(me,Pe,{convertToUtc:j,includeSeconds:!0,localTimezone:j}):null,e.start_datetime=xe&&null!==ke&&void 0!==ke&&ke.hour&&null!==ke&&void 0!==ke&&ke.minute?(0,N.XM)(xe,ke,{convertToUtc:j,includeSeconds:!0,localTimezone:j}):null),De({backfill:e})}),[me,xe,j,Y,L,A,g,ie,ce,Pe,ke,De]),Te=(0,s.useMemo)((function(){return d._7===ce?!S:!(me&&xe&&L&&A)}),[S,me,xe,L,A,ce]);return(0,H.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(U,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===g||void 0===g?void 0:g.name},linkProps:{as:"/pipelines/".concat(U,"/backfills/").concat(T),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:t,pageName:E.M.BACKFILLS,pipeline:l,setErrors:a,subheader:(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(p.ZP,{disabled:Te,loading:Ee,onClick:Ce,outline:!0,primary:!0,children:"Save changes"}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(p.ZP,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(U,"/backfills/").concat(T)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===g||void 0===g?void 0:g.name)},uuid:"backfill/edit",children:[(0,H.jsxs)(P.Z,{p:D.cd,children:[(0,H.jsxs)(P.Z,{mb:2,children:[(0,H.jsx)(v.Z,{children:"Backfill type"}),(0,H.jsx)(k.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,H.jsx)(b.ZP,{children:Q.map((function(e){var n=e.label,t=e.description,r=e.uuid,i=ce===r,l=ce&&!i;return(0,H.jsx)(p.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){se(r)},children:(0,H.jsx)($.U,{selected:i,children:(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(W.Z,{children:(0,H.jsx)("input",{checked:i,type:"radio"})}),(0,H.jsx)(P.Z,{mr:D.cd}),(0,H.jsxs)(W.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,H.jsx)(v.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,H.jsx)(k.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,H.jsx)(P.Z,{mt:5,children:we})]})},ie=t(93808);function le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?le(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=e.backfillId,t=e.pipelineUUID,r=e.subpath,i=(0,s.useState)(null),l=i[0],a=i[1],c=_.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,o=(0,s.useMemo)((function(){return null===c||void 0===c?void 0:c.variables}),[c]),u=_.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,d=(0,s.useMemo)((function(){return ae(ae({},null===u||void 0===u?void 0:u.pipeline),{},{uuid:t})}),[u,t]),p=_.ZP.backfills.detail(n,{include_preview_runs:!0}),f=p.data,b=p.mutate,v=(0,s.useMemo)((function(){return null===f||void 0===f?void 0:f.backfill}),[f]);return"edit"===r?(0,H.jsx)(re,{backfill:v,errors:l,fetchBackfill:b,pipeline:d,setErrors:a,variables:o}):(0,H.jsx)(Y,{backfill:v,errors:l,fetchBackfill:b,pipeline:d,setErrors:a,variables:o})}ce.getInitialProps=function(){var e=(0,i.Z)(c().mark((function e(n){var t,i,l,a,s,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,i=t.pipeline,l=t.slug,!Array.isArray(l)){e.next=4;break}return a=(0,r.Z)(l,2),s=a[0],o=a[1],e.abrupt("return",{backfillId:s,pipelineUUID:i,subpath:o});case 4:return e.abrupt("return",{pipelineUUID:i});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var se=(0,ie.Z)(ce)},53664:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills/[...slug]",function(){return t(51532)}])}},function(e){e.O(0,[2678,1154,844,8224,1124,9161,4495,4267,600,8487,8264,7858,5499,3932,5457,722,3943,9774,2888,179],(function(){return n=53664,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{74395:function(e,n,t){"use strict";t.d(n,{M:function(){return a},W:function(){return l}});var r=t(38626),i=t(46684),l=34*t(70515).iI,a=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},8955:function(e,n,t){"use strict";t.d(n,{G7:function(){return P},ZP:function(){return O},u$:function(){return x}});var r=t(75582),i=t(82394),l=t(26304),a=t(90299),c=t(9134),s=t(24138),o=t(38276),u=t(30160),d=t(75499),p=t(70515),f=t(16488),b=t(42122),v=t(28598),m=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=76,g={uuid:"Run details"},Z={uuid:"Dependency tree"},P=[Z,g];function O(e){var n=e.height,t=e.heightOffset,i=e.pipeline,h=e.selectedRun,O=e.selectedTab,y=e.setSelectedTab,k=j({},(0,l.Z)(e,m));h?k.blockStatus=(0,f.IJ)(null===h||void 0===h?void 0:h.block_runs):k.noStatus=!0;var _=(0,b.Kn)(null===h||void 0===h?void 0:h.variables)?j({},null===h||void 0===h?void 0:h.variables):(null===h||void 0===h?void 0:h.variables)||{},w=null===h||void 0===h?void 0:h.event_variables;if(w&&(0,b.Kn)(w)&&!(0,b.Qr)(w))if((0,b.Kn)(_)&&_.hasOwnProperty("event")){var I=(0,b.Kn)(_.event)?_.event:{};_.event=j(j({},I),w)}else _.event=j({},w);var S=[];_&&JSON.stringify(_,null,2).split("\n").forEach((function(e){S.push(" ".concat(e))}));var D=h&&[["Run ID",null===h||void 0===h?void 0:h.id],["Variables",(0,v.jsx)(c.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],E=h&&(0,v.jsx)(o.Z,{pb:p.cd,px:p.cd,children:(0,v.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:D.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],l=t[1];return[(0,v.jsx)(u.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,v.jsx)(u.ZP,{monospace:!0,textOverflow:!0,children:l},"val_".concat(n))]})),uuid:"LogDetail"})}),C=O&&y;return(0,v.jsxs)(v.Fragment,{children:[C&&(0,v.jsx)(o.Z,{py:p.cd,children:(0,v.jsx)(a.Z,{onClickTab:y,selectedTabUUID:null===O||void 0===O?void 0:O.uuid,tabs:P})}),(!C||Z.uuid===(null===O||void 0===O?void 0:O.uuid))&&(0,v.jsx)(s.ZP,j(j({},k),{},{height:n,heightOffset:(t||0)+(C?x:0),pipeline:i})),g.uuid===(null===O||void 0===O?void 0:O.uuid)&&E]})}},8916:function(e,n,t){"use strict";t.d(n,{FS:function(){return o},JZ:function(){return p},Tt:function(){return d},e7:function(){return f},wx:function(){return u}});var r=t(75582),i=t(82394),l=t(83784),a=t(30229);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(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}function o(e){return"string"===typeof e?e:JSON.stringify(e)}function u(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return s(s({},e),{},{value:o(n)})}))}function d(e){var n;return null===(n=u(e,(function(e){return e.uuid===l.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,r=n.value;return s(s({},e),{},(0,i.Z)({},t,r))}),{})}function p(e,n){return n===a.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===a.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function f(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],a=t[1],c=a;try{c=JSON.parse(a)}catch(o){}return s(s({},e),{},(0,i.Z)({},l,c))}),{}):e}},88785:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return c}});var r=t(38626),i=t(44897),l=t(42631),a=t(70515),c=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*a.iI,a.cd*a.iI,a.cd*a.iI,40*a.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,a.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*a.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*a.iI,"px;\n ")}))},91349:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(75582),l=t(82684),a=t(55485),c=t(38276),s=t(75499),o=t(30160),u=t(35576),d=t(17488),p=t(69650),f=t(38626),b=t(44897),v=t(42631),m=t(70515),h=f.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*m.iI,2*m.iI,v.n_,(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme||b.Z).borders.light,";\n background-color: ").concat((e.theme||b.Z).background.popup,";\n ")})),j=t(81728),x=t(28598);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(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 P=function(e){var n=e.borderless,t=e.compact,f=e.enableVariablesOverwrite,b=e.runtimeVariables,v=e.setEnableVariablesOverwrite,m=e.setRuntimeVariables,g=(0,l.useState)({}),P=g[0],O=g[1];(0,l.useEffect)((function(){var e=Object.entries(b).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],a=t[1],c=(0,j.Pb)(a)&&"object"===typeof JSON.parse(a)&&!Array.isArray(JSON.parse(a))&&null!==JSON.parse(a);return Z(Z({},e),{},(0,r.Z)({},l,c))}),{});O(e)}),[]);var y=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),m((function(t){return Z(Z({},t),{},(0,r.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return P[e]?(0,x.jsx)(u.Z,Z(Z({},t),{},{rows:1,value:n})):(0,x.jsx)(d.Z,Z({},t))};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h,{borderless:n,children:(0,x.jsxs)(a.ZP,{alignItems:"center",children:[(0,x.jsx)(c.Z,{mr:2,children:(0,x.jsx)(p.Z,{checked:f,compact:t,onCheck:v})}),(0,x.jsx)(o.ZP,{bold:!t,large:!t,children:"Overwrite runtime variables"})]})}),f&&b&&Object.entries(b).length>0&&(0,x.jsx)(c.Z,{mt:2,children:(0,x.jsx)(s.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(b).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,x.jsx)(o.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),y(t,r)]}))})})]})}},55072:function(e,n,t){"use strict";t.d(n,{Et:function(){return p},Q:function(){return d}});t(82684);var r=t(71180),i=t(55485),l=t(38276),a=t(31748),c=t(72473),s=t(79633),o=t(70515),u=t(28598),d=30,p=9;n.ZP=function(e){var n=e.page,t=e.maxPages,d=e.onUpdate,p=e.totalPages,f=[],b=t;if(b>p)f=Array.from({length:p},(function(e,n){return n}));else{var v=Math.floor(b/2),m=n-v;n+v>=p?(m=p-b+2,b-=2):n-v<=0?(m=0,b-=2):(b-=4,m=n-Math.floor(b/2)),f=Array.from({length:b},(function(e,n){return n+m}))}return(0,u.jsx)(u.Fragment,{children:p>0&&(0,u.jsxs)(i.ZP,{alignItems:"center",children:[(0,u.jsx)(r.ZP,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,u.jsx)(c.Hd,{size:1.5*o.iI,stroke:a.Av})}),!f.includes(0)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(0)},children:1})},0),!f.includes(1)&&(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0)]}),f.map((function(e){return(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{backgroundColor:e===n&&s.a$,borderLess:!0,noBackground:!0,notClickable:e===n,onClick:function(){e!==n&&d(e)},children:e+1})},e)})),!f.includes(p-1)&&(0,u.jsxs)(u.Fragment,{children:[!f.includes(p-2)&&(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{noBackground:!0,noPadding:!0,notClickable:!0,children:"..."})},0),(0,u.jsx)(l.Z,{ml:1,children:(0,u.jsx)(r.ZP,{borderLess:!0,noBackground:!0,onClick:function(){return d(p-1)},children:p})},p-1)]}),(0,u.jsx)(l.Z,{ml:1}),(0,u.jsx)(r.ZP,{disabled:n===p-1,onClick:function(){return d(n+1)},children:(0,u.jsx)(c.Kw,{size:1.5*o.iI,stroke:a.Av})})]})})}},83641:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return s},VV:function(){return l},_7:function(){return a},rn:function(){return c}});var r,i=t(41143),l="datetime",a="code",c=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var s=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},83784:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},14805:function(e,n,t){"use strict";var r=t(82394),i=t(44495),l=t(55485),a=t(44085),c=t(38276),s=t(30160),o=t(88785),u=t(70515),d=t(86735),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,r=e.selectedTime,f=e.setSelectedDate,v=e.setSelectedTime,m=e.topPosition;return(0,p.jsxs)(o.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:f,value:t}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(l.ZP,{alignItems:"center",children:[(0,p.jsxs)(s.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(a.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),v((function(n){return b(b({},n),{},{hour:e.target.value})}))},paddingRight:5*u.iI,placeholder:"HH",value:null===r||void 0===r?void 0:r.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(c.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(a.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),v((function(n){return b(b({},n),{},{minute:e.target.value})}))},paddingRight:5*u.iI,placeholder:"MM",value:null===r||void 0===r?void 0:r.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){"use strict";t.d(n,{a:function(){return l}});var r=t(16488),i=t(3917);function l(e,n){var t,l;if(null!==n&&void 0!==n&&n.localTimezone)t=(0,i.n$)(e),l={hour:(0,i.lJ)(String(t.getHours())),minute:(0,i.lJ)(String(t.getMinutes()))};else{var a=e.split(" ")[1];t=(0,r.eI)(e),l={hour:a.substring(0,2),minute:a.substring(3,5)}}return{date:t,time:l}}},9134:function(e,n,t){"use strict";var r=t(82684),i=t(21124),l=t(68432),a=t(38626),c=t(65292),s=t(44897),o=t(95363),u=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,b=e.source,v=e.wrapLines,m=(0,r.useContext)(a.ThemeContext);function h(e){var r=e.value;return(0,d.jsx)(l.Z,{customStyle:{backgroundColor:(m.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:o.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*u.iI,paddingTop:2*u.iI},language:n,lineNumberStyle:{color:(m.content||s.Z.content).muted},showLineNumbers:p,style:c._4,useInlineStyles:!0,wrapLines:v,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(h,{value:n})}},children:b})}},51532:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return se}});var r=t(75582),i=t(77837),l=t(82394),a=t(38860),c=t.n(a),s=t(82684),o=t(69864),u=t(34376),d=t(83641),p=t(71180),f=t(15338),b=t(55485),v=t(85854),m=t(55072),h=t(75457),j=t(53943),x=t(44265),g=t(83784),Z=t(44085),P=t(38276),O=t(4190),y=t(75499),k=t(30160),_=t(35686),w=t(8955),I=t(72473),S=t(74395),D=t(70515),E=t(28795),C=t(81728),T=t(3917),M=t(8916),N=t(16488),L=t(15610),F=t(42122),A=t(50178),R=t(72619),V=t(3314),U=t(69419),B=t(70320),H=t(28598);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Y=function(e){var n=e.backfill,t=e.errors,i=e.fetchBackfill,l=e.pipeline,a=e.setErrors,c=e.variables,z=(0,A.Ct)(),Y=(0,B.q)(),K=(0,u.useRouter)(),X=n||{},W=X.block_uuid,G=X.end_datetime,q=X.id,Q=X.interval_type,$=X.interval_units,ee=X.name,ne=X.pipeline_run_dates,te=X.start_datetime,re=X.status,ie=X.total_run_count,le=X.variables,ae=void 0===le?{}:le,ce=l.uuid,se=(0,U.iV)(),oe={_limit:40,_offset:40*(null!==se&&void 0!==se&&se.page?se.page:0)};null!==se&&void 0!==se&&se.status&&(oe.status=se.status);var ue=_.ZP.pipeline_runs.list(J(J({},oe),{},{backfill_id:q}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!q}),de=ue.data,pe=ue.mutate,fe=!(te&&G&&Q&&$),be=!re,ve=(0,s.useMemo)((function(){return(be?ne:null===de||void 0===de?void 0:de.pipeline_runs)||[]}),[de,ne,be]),me=(0,s.useMemo)((function(){var e;return(null===de||void 0===de||null===(e=de.metadata)||void 0===e?void 0:e.count)||[]}),[de]),he=(0,s.useState)(null),je=he[0],xe=he[1],ge=(0,s.useMemo)((function(){var e=null!==se&&void 0!==se&&se.page?se.page:0;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(j.Z,{disableRowSelect:be,emptyMessage:null!==se&&void 0!==se&&se.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:pe,onClickRow:function(e){return xe((function(n){var t=ve[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ve,selectedRun:je,setErrors:a,setSelectedRun:xe}),(0,H.jsx)(P.Z,{p:2,children:(0,H.jsx)(m.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),t=J(J({},se),{},{page:n>=0?n:0});K.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ce,"/backfills/").concat(q,"?").concat((0,U.uM)(t)))},page:Number(e),totalPages:Math.ceil(me/40)})})]})}),[pe,q,ve,ce,se,K,je,a,be,me]),Ze=(0,s.useState)(w.G7[0]),Pe=Ze[0],Oe=Ze[1],ye=(0,o.Db)(_.ZP.backfills.useUpdate(q),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){i(),pe()},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),ke=(0,r.Z)(ye,2),_e=ke[0],we=ke[1].isLoading,Ie=(0,s.useMemo)((function(){return!!re&&(d.rn.CANCELLED!==re&&d.rn.FAILED!==re)}),[re]),Se=(0,s.useMemo)((function(){return re&&d.rn.CANCELLED!==re&&d.rn.FAILED!==re&&d.rn.INITIAL!==re&&d.rn.RUNNING!==re}),[re]),De=(0,s.useMemo)((function(){var e={default:!0,size:1.5*D.iI},n=[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.VW,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:W?d._7:d.VV},"backfill_type")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.rs,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,H.jsx)(k.ZP,{danger:d.rn.CANCELLED===re||d.rn.FAILED==re,default:d.rn.INITIAL===re,monospace:!0,muted:!re,success:d.rn.RUNNING===re||d.rn.COMPLETED===re,children:re||"inactive"},"backfill_status")]];return W||n.push.apply(n,[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,H.jsx)(k.ZP,{monospace:!0,small:!0,children:Y?(0,T.XG)(te,Y):(0,N.Vx)(te)},"backfill_start_date")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,H.jsx)(k.ZP,{monospace:!0,small:!0,children:Y?(0,T.XG)(G,Y):(0,N.Vx)(G)},"backfill_end_date")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:Q&&(0,C.kC)(Q)},"interval_type")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:$},"interval_units")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.qZ,J({},e)),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,H.jsx)(k.ZP,{monospace:!0,children:ie},"total_runs")]]),(0,H.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[W,Y,G,Q,$,te,re,ie]),Ee=(0,s.useMemo)((function(){return ae||{}}),[ae]),Ce=(0,s.useMemo)((function(){var e=(0,M.wx)(c,(function(e){return e.uuid===g.C}))||[];return(0,F.Qr)(Ee)||Object.entries(Ee).forEach((function(n){var t=(0,r.Z)(n,2),i=t[0],l=t[1],a=e.findIndex((function(e){return(null===e||void 0===e?void 0:e.uuid)===i}));-1!==a?e.splice(a,1,{uuid:i,value:(0,M.FS)(l)}):e.push({uuid:i,value:(0,M.FS)(l)})})),"undefined"!==typeof e&&null!==e&&void 0!==e&&e.length?(0,H.jsx)(y.Z,{columnFlex:[null,1],rows:e.map((function(e){var n=e.uuid,t=e.value;return[(0,H.jsx)(k.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,H.jsx)(k.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ee,c]);return(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)(h.Z,{afterHidden:!je,before:(0,H.jsxs)(S.M,{children:[(0,H.jsxs)(P.Z,{mb:D.HN,pt:D.cd,px:D.cd,children:[(0,H.jsx)(P.Z,{mb:D.cd,children:(0,H.jsx)(I.yg,{size:5*D.iI})}),(0,H.jsx)(v.Z,{children:ee})]}),(0,H.jsx)(P.Z,{px:D.cd,children:(0,H.jsx)(v.Z,{level:5,children:"Settings"})}),(0,H.jsx)(f.Z,{light:!0,mt:1,short:!0}),De,Ce&&(0,H.jsxs)(P.Z,{my:D.HN,children:[(0,H.jsx)(P.Z,{px:D.cd,children:(0,H.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,H.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ce]})]}),beforeWidth:34*D.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(ce,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return ee},linkProps:{as:"/pipelines/".concat(ce,"/backfills/").concat(q),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,w.ZP)(J(J({},e),{},{selectedRun:je,selectedTab:Pe,setSelectedTab:Oe}))},errors:t,pageName:E.M.BACKFILLS,pipeline:l,setErrors:a,subheader:(0,H.jsxs)(b.ZP,{alignItems:"center",children:[!Se&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(p.ZP,{beforeIcon:Ie?(0,H.jsx)(I.dz,{size:2*D.iI}):(0,H.jsx)(I.Py,{inverted:!(d.rn.CANCELLED===re||d.rn.FAILED===re),size:2*D.iI}),danger:Ie,disabled:fe,loading:we,onClick:function(e){(0,V.j)(e),_e({backfill:{status:Ie?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Ie&&!(d.rn.CANCELLED===re||d.rn.FAILED===re)&&!fe,children:Ie?"Cancel backfill":d.rn.CANCELLED===re||d.rn.FAILED===re?"Retry backfill":"Start backfill"}),(0,H.jsx)(P.Z,{mr:D.cd})]}),!z&&(0,H.jsxs)(H.Fragment,{children:[re===x.VO.COMPLETED?(0,H.jsx)(k.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,H.jsx)(p.ZP,{linkProps:{as:"/pipelines/".concat(ce,"/backfills/").concat(q,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,H.jsx)(P.Z,{mr:D.cd})]}),!be&&(0,H.jsxs)(Z.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?K.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(ce,"/backfills/").concat(q)):(0,L.u7)({page:0,status:e.target.value})},paddingRight:4*D.iI,placeholder:"Select run status",value:(null===se||void 0===se?void 0:se.status)||"all",children:[(0,H.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),x.IK.map((function(e){return(0,H.jsx)("option",{value:e,children:x.Do[e]},e)}))]})]}),title:function(){return ee},uuid:"backfill/detail",children:[(0,H.jsx)(P.Z,{mt:D.cd,px:D.cd,children:(0,H.jsx)(v.Z,{level:5,children:"Runs for this backfill"})}),(0,H.jsx)(f.Z,{light:!0,mt:D.cd,short:!0}),de?ge:(0,H.jsx)(P.Z,{m:2,children:(0,H.jsx)(O.Z,{inverted:!0})})]})})},K=t(14805),X=t(50724),W=t(97618),G=t(91349),q=t(17488),Q=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],$=t(88785),ee=t(79500);function ne(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function te(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re=function(e){var n=e.backfill,t=e.errors,i=e.fetchBackfill,l=e.pipeline,a=e.setErrors,c=e.variables,m=(0,u.useRouter)(),j=(0,B.q)(),x=(0,s.useState)(),g=x[0],O=x[1],w=g||{},S=w.block_uuid,T=w.id,L=w.interval_type,A=w.interval_units,V=w.name,U=l.uuid,z=(0,s.useMemo)((function(){return(0,F.Qr)((null===n||void 0===n?void 0:n.variables)||{})?(0,M.Tt)(c)||{}:(0,F.Xc)(n.variables,(function(e){return(0,M.FS)(e)}))}),[null===n||void 0===n?void 0:n.variables,c]),J=(0,s.useState)(!1),Y=J[0],ne=J[1],re=(0,s.useState)(z),ie=re[0],le=re[1],ae=(0,s.useState)(S?d._7:d.VV),ce=ae[0],se=ae[1],oe=(0,s.useState)(!1),ue=oe[0],de=oe[1],pe=(0,s.useState)(!1),fe=pe[0],be=pe[1],ve=(0,s.useState)(null),me=ve[0],he=ve[1],je=(0,s.useState)(null),xe=je[0],ge=je[1],Ze=(0,s.useState)({hour:"00",minute:"00"}),Pe=Ze[0],Oe=Ze[1],ye=(0,s.useState)({hour:"00",minute:"00"}),ke=ye[0],_e=ye[1];(0,s.useEffect)((function(){if(n){O(n);var e=n.start_datetime;if(e){var t=(0,ee.a)(e,{localTimezone:j});ge(null===t||void 0===t?void 0:t.date),_e(t.time)}var r=n.end_datetime;if(r){var i=(0,ee.a)(r,{localTimezone:j});he(null===i||void 0===i?void 0:i.date),Oe(null===i||void 0===i?void 0:i.time)}}}),[j,n]);var we=(0,s.useMemo)((function(){var e=[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.KJ,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,H.jsx)(q.Z,{monospace:!0,onChange:function(e){e.preventDefault(),O((function(n){return te(te({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:V},"model_name_input_detail")]];return d.VV===ce&&e.push.apply(e,[[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,H.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!ue&&(0,H.jsx)(q.Z,{monospace:!0,onClick:function(){return de((function(e){return!e}))},onFocus:function(){return de(!0)},placeholder:"YYYY-MM-DD HH:MM",value:xe?(0,N.XM)(xe,ke,{localTimezone:j}):""}),(0,H.jsx)("div",{style:{width:"400px"},children:(0,H.jsx)(X.Z,{disableEscape:!0,onClickOutside:function(){return de(!1)},open:ue,style:{position:"relative"},children:(0,H.jsx)(K.Z,{localTime:j,selectedDate:xe,selectedTime:ke,setSelectedDate:ge,setSelectedTime:_e,topPosition:!0})})})]},"start_time_input")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.aw,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,H.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!fe&&(0,H.jsx)(q.Z,{monospace:!0,onClick:function(){return be((function(e){return!e}))},onFocus:function(){return be(!0)},placeholder:"YYYY-MM-DD HH:MM",value:me?(0,N.XM)(me,Pe,{localTimezone:j}):""}),(0,H.jsx)("div",{style:{width:"400px"},children:(0,H.jsx)(X.Z,{disableEscape:!0,onClickOutside:function(){return be(!1)},open:fe,style:{position:"relative"},children:(0,H.jsx)(K.Z,{localTime:j,selectedDate:me,selectedTime:Pe,setSelectedDate:he,setSelectedTime:Oe,topPosition:!0})})})]},"end_time_input")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,H.jsx)(Z.Z,{monospace:!0,onChange:function(e){e.preventDefault(),O((function(n){return te(te({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:L,children:d.IB.map((function(e){return(0,H.jsx)("option",{value:e,children:(0,C.kC)(e)},e)}))},"interval_type_input")],[(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.Pf,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,H.jsx)(q.Z,{disabled:!L,monospace:!0,onChange:function(e){e.preventDefault(),O((function(n){return te(te({},n),{},{interval_units:e.target.value})}))},placeholder:L?"Number of ".concat(L).concat(L!==d.I7.CUSTOM?"s":""," between each backfill"):"Interval type is required",type:"number",value:A},"interval_unit_input")]]),(0,F.Qr)(z)||e.push([(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(I.LO,{default:!0}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(k.ZP,{default:!0,children:"Runtime variables"})]},"overwrite_runtime_variables"),(0,H.jsx)(G.Z,{borderless:!0,compact:!0,enableVariablesOverwrite:Y,runtimeVariables:ie,setEnableVariablesOverwrite:ne,setRuntimeVariables:le},"overwrite_runtime_variables_table")]),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(P.Z,{mb:2,px:D.cd,children:(0,H.jsx)(v.Z,{children:"Settings"})}),(0,H.jsx)(f.Z,{light:!0,short:!0}),(0,H.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[me,xe,j,Y,L,A,V,ie,z,ce,ue,fe,Pe,ke]),Ie=(0,o.Db)(_.ZP.backfills.useUpdate(T),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){i(),m.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(U,"/backfills/").concat(T))},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),Se=(0,r.Z)(Ie,2),De=Se[0],Ee=Se[1].isLoading,Ce=(0,s.useCallback)((function(){var e=te(te({},(0,F.GL)(g,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:Y?(0,M.e7)(ie):{}});return d._7===ce||(e.interval_type=L,e.interval_units=A,e.end_datetime=me&&null!==Pe&&void 0!==Pe&&Pe.hour&&null!==Pe&&void 0!==Pe&&Pe.minute?(0,N.XM)(me,Pe,{convertToUtc:j,includeSeconds:!0,localTimezone:j}):null,e.start_datetime=xe&&null!==ke&&void 0!==ke&&ke.hour&&null!==ke&&void 0!==ke&&ke.minute?(0,N.XM)(xe,ke,{convertToUtc:j,includeSeconds:!0,localTimezone:j}):null),De({backfill:e})}),[me,xe,j,Y,L,A,g,ie,ce,Pe,ke,De]),Te=(0,s.useMemo)((function(){return d._7===ce?!S:!(me&&xe&&L&&A)}),[S,me,xe,L,A,ce]);return(0,H.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(U,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===g||void 0===g?void 0:g.name},linkProps:{as:"/pipelines/".concat(U,"/backfills/").concat(T),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],errors:t,pageName:E.M.BACKFILLS,pipeline:l,setErrors:a,subheader:(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(p.ZP,{disabled:Te,loading:Ee,onClick:Ce,outline:!0,primary:!0,children:"Save changes"}),(0,H.jsx)(P.Z,{mr:1}),(0,H.jsx)(p.ZP,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(U,"/backfills/").concat(T)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===g||void 0===g?void 0:g.name)},uuid:"backfill/edit",children:[(0,H.jsxs)(P.Z,{p:D.cd,children:[(0,H.jsxs)(P.Z,{mb:2,children:[(0,H.jsx)(v.Z,{children:"Backfill type"}),(0,H.jsx)(k.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,H.jsx)(b.ZP,{children:Q.map((function(e){var n=e.label,t=e.description,r=e.uuid,i=ce===r,l=ce&&!i;return(0,H.jsx)(p.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){se(r)},children:(0,H.jsx)($.U,{selected:i,children:(0,H.jsxs)(b.ZP,{alignItems:"center",children:[(0,H.jsx)(W.Z,{children:(0,H.jsx)("input",{checked:i,type:"radio"})}),(0,H.jsx)(P.Z,{mr:D.cd}),(0,H.jsxs)(W.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,H.jsx)(v.Z,{bold:!0,default:!i&&!l,level:5,muted:!i&&l,children:n()}),(0,H.jsx)(k.ZP,{default:!i&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},r)}))})]}),(0,H.jsx)(P.Z,{mt:5,children:we})]})},ie=t(93808);function le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?le(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=e.backfillId,t=e.pipelineUUID,r=e.subpath,i=(0,s.useState)(null),l=i[0],a=i[1],c=_.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,o=(0,s.useMemo)((function(){return null===c||void 0===c?void 0:c.variables}),[c]),u=_.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,d=(0,s.useMemo)((function(){return ae(ae({},null===u||void 0===u?void 0:u.pipeline),{},{uuid:t})}),[u,t]),p=_.ZP.backfills.detail(n,{include_preview_runs:!0}),f=p.data,b=p.mutate,v=(0,s.useMemo)((function(){return null===f||void 0===f?void 0:f.backfill}),[f]);return"edit"===r?(0,H.jsx)(re,{backfill:v,errors:l,fetchBackfill:b,pipeline:d,setErrors:a,variables:o}):(0,H.jsx)(Y,{backfill:v,errors:l,fetchBackfill:b,pipeline:d,setErrors:a,variables:o})}ce.getInitialProps=function(){var e=(0,i.Z)(c().mark((function e(n){var t,i,l,a,s,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,i=t.pipeline,l=t.slug,!Array.isArray(l)){e.next=4;break}return a=(0,r.Z)(l,2),s=a[0],o=a[1],e.abrupt("return",{backfillId:s,pipelineUUID:i,subpath:o});case 4:return e.abrupt("return",{pipelineUUID:i});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var se=(0,ie.Z)(ce)},53664:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills/[...slug]",function(){return t(51532)}])}},function(e){e.O(0,[2678,1154,844,5820,1124,9161,4495,4267,600,8487,8264,7858,5499,5457,4366,722,3943,9774,2888,179],(function(){return n=53664,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([[8450],{16488:function(n,e,t){"use strict";t.d(e,{IJ:function(){return b},M8:function(){return y},Vx:function(){return _},XM:function(){return I},_U:function(){return v},eI:function(){return h},gU:function(){return g},lO:function(){return A},ri:function(){return E},tL:function(){return T},vJ:function(){return P},xH:function(){return O}});var r,i=t(82394),u=t(92083),o=t.n(u),c=t(3917),l=t(4383),a=t(30229),s=t(42122),f=t(86735);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var v=function(n){return!!n&&!Object.values(a.U5).includes(n)};function b(n){return null===n||void 0===n?void 0:n.reduce((function(n,e){var t=e.block_uuid,r=e.completed_at,u=e.started_at,c=e.status,l=null;u&&r&&(l=o()(r).valueOf()-o()(u).valueOf());return p(p({},n),{},(0,i.Z)({},t,{runtime:l,status:c}))}),{})}var m,E=function(n){var e=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return n?e.slice(0,1):e};function O(n){var e=(0,s.gR)(n,[a.gm.INTERVAL,a.gm.TYPE]),t=n[a.gm.INTERVAL];t&&(e["schedule_interval[]"]=encodeURIComponent(t));var r=n[a.gm.TYPE];return r&&(e["schedule_type[]"]=r),e}function h(n){if(!n)return null;var e=new Date(o()(n).valueOf()),t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return new Date(t)}function _(n){return"string"!==typeof n?n:h(n.split("+")[0]).toISOString().split(".")[0]}!function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.SECOND="second"}(m||(m={}));var T=(r={},(0,i.Z)(r,m.DAY,86400),(0,i.Z)(r,m.HOUR,3600),(0,i.Z)(r,m.MINUTE,60),(0,i.Z)(r,m.SECOND,1),r);function g(n){var e=m.SECOND,t=n;return n%86400===0?(t/=86400,e=m.DAY):n%3600===0?(t/=3600,e=m.HOUR):n%60===0&&(t/=60,e=m.MINUTE),{time:t,unit:e}}function P(n,e){return n*T[e]}function I(n,e,t){var r="".concat(n.toISOString().split("T")[0]," ").concat(null===e||void 0===e?void 0:e.hour,":").concat(null===e||void 0===e?void 0:e.minute);if(null!==t&&void 0!==t&&t.includeSeconds&&(r=r.concat(":00")),null!==t&&void 0!==t&&t.localTimezone){var i=o()(n);i.set("hour",+(null===e||void 0===e?void 0:e.hour)||0),i.set("minute",+(null===e||void 0===e?void 0:e.minute)||0),i.set("second",0),r=i.format(c.lE),null!==t&&void 0!==t&&t.convertToUtc&&(r=(0,c.d$)(r,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))}return r}function y(n){var e,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",i=!0;return i&&(t?r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===n||void 0===n?void 0:n.id,"/api_trigger"):(r="".concat(window.origin,"/api/pipeline_schedules/").concat(null===n||void 0===n?void 0:n.id,"/pipeline_runs"),null!==n&&void 0!==n&&n.token&&(r="".concat(r,"/").concat(n.token)))),i&&(e=window.location.port)&&(r=r.replace(e,l.QT)),r}function N(n,e,t){return n.match(/[*,-/]/)?{additionalOffset:0,cronValue:n}:function(n,e,t){var r=t.indexOf(n),i=0;if(e<0)for(var u=0;u>e;u--)0===r?(r=t.length-1,i-=1):r-=1;else if(e>0)for(var o=0;o<e;o++)r===t.length-1?(r=0,i+=1):r+=1;return{additionalOffset:i,cronValue:String(t[r]||n)}}(+n,e,t)}var j=(0,f.m5)(60),w=(0,f.m5)(24),k=(0,c.Cs)();function A(n,e){if(!n)return n;var t=o()().local().format("Z"),r=t.split(":"),i="-"===t[0],u=3===r[0].length?Number(r[0].slice(1)):Number(r[0]),c=Number(r[1]);(i&&!e||!i&&e)&&(u=-u,c=-c);var l=n.split(" "),a=l[0],s=l[1],f=l[2],d=N(a,c,j),p=N(s,u+d.additionalOffset,w);if(l[0]=d.cronValue,l[1]=p.cronValue,0!==(null===p||void 0===p?void 0:p.additionalOffset)){var v=N(f,p.additionalOffset,k);l[2]=v.cronValue}return l.join(" ")}},70320:function(n,e,t){"use strict";t.d(e,{h:function(){return o},q:function(){return u}});var r=t(78419),i=t(53808);function u(){return(0,i.U2)(r.am,null)||!1}function o(n){return"undefined"!==typeof n&&(0,i.t8)(r.am,n),n}},83641:function(n,e,t){"use strict";t.d(e,{I7:function(){return r},IB:function(){return l},VV:function(){return u},_7:function(){return o},rn:function(){return c}});var r,i=t(41143),u="datetime",o="code",c=i.V;!function(n){n.SECOND="second",n.MINUTE="minute",n.HOUR="hour",n.DAY="day",n.WEEK="week",n.MONTH="month",n.YEAR="year",n.CUSTOM="custom"}(r||(r={}));var l=[r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},44265:function(n,e,t){"use strict";t.d(e,{Az:function(){return a},BF:function(){return l},Do:function(){return f},IK:function(){return c},P0:function(){return i},VO:function(){return o},sZ:function(){return s}});var r,i,u=t(82394),o=t(41143).V,c=[o.FAILED,o.COMPLETED,o.RUNNING,o.CANCELLED,o.INITIAL],l=[o.INITIAL,o.RUNNING],a=[o.CANCELLED,o.COMPLETED,o.FAILED],s="__mage_variables",f=(r={},(0,u.Z)(r,o.CANCELLED,"Cancelled"),(0,u.Z)(r,o.COMPLETED,"Done"),(0,u.Z)(r,o.FAILED,"Failed"),(0,u.Z)(r,o.INITIAL,"Ready"),(0,u.Z)(r,o.RUNNING,"Running"),r);!function(n){n.PIPELINE_UUID="pipeline_uuid[]",n.STATUS="status[]",n.TAG="pipeline_tag[]"}(i||(i={}))},30229:function(n,e,t){"use strict";t.d(e,{TR:function(){return p},U5:function(){return l},Wb:function(){return d},Xm:function(){return u},Z4:function(){return a},fq:function(){return c},gm:function(){return s},kJ:function(){return f}});var r,i,u,o=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(u||(u={}));var c,l,a=(r={},(0,o.Z)(r,u.API,(function(){return"API"})),(0,o.Z)(r,u.EVENT,(function(){return"event"})),(0,o.Z)(r,u.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly",n.ALWAYS_ON="@always_on"}(l||(l={}));var s,f,d=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.MONTHLY];!function(n){n.INTERVAL="frequency[]",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(s||(s={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(f||(f={}));var p=(i={},(0,o.Z)(i,f.CREATED_AT,"Created at"),(0,o.Z)(i,f.NAME,"Name"),(0,o.Z)(i,f.PIPELINE,"Pipeline"),(0,o.Z)(i,f.STATUS,"Active"),(0,o.Z)(i,f.TYPE,"Type"),i)},11650:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Y}});var r=t(77837),i=t(75582),u=t(38860),o=t.n(u),c=t(82684),l=t(69864),a=t(34376),s=t(82394),f=t(12691),d=t.n(f),p=t(83641),v=t(71180),b=t(48670),m=t(75499),E=t(30160),O=t(72473),h=t(44265),_=t(81655),T=t(70515),g=t(3917),P=t(16488),I=t(50178),y=t(70320),N=t(28598);function j(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function w(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?j(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=function(n){var e=n.models,t=n.onClickRow,r=n.pipeline,i=n.selectedRow,u=(0,I.Ct)(),o=(0,y.q)(),l=null===r||void 0===r?void 0:r.uuid,a=o?_.O$:{},s=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},w(w({},a),{},{uuid:"Backfill"}),w(w({},a),{},{uuid:"Started at"}),w(w({},a),{},{uuid:"Completed at"})];return u||s.push({label:function(){return""},uuid:"edit"}),(0,N.jsx)(m.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:s,isSelectedRow:function(n){return e[n].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(n){return t(e[n])},rows:e.map((function(n,e){var t=n.block_uuid,r=n.completed_at,i=n.end_datetime,a=n.id,s=n.name,f=n.start_datetime,m=n.started_at,I=n.status,y=n.total_run_count,j=[(0,c.createElement)(E.ZP,w(w({},(0,_.NC)(I)),{},{key:"status"}),I||"inactive"),(0,N.jsx)(d(),{as:"/pipelines/".concat(l,"/backfills/").concat(a),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,N.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:s})},"name"),(0,N.jsx)(E.ZP,{default:!0,monospace:!0,children:t?p._7:p.VV},"type"),(0,N.jsx)(E.ZP,{default:!0,monospace:!0,children:y||0},"runs"),(0,N.jsxs)(E.ZP,{default:!0,monospace:!0,small:!0,children:[f&&i&&(0,N.jsxs)(N.Fragment,{children:[o?(0,g.XG)(f,o):(0,P.Vx)(f),"\xa0-\xa0",o?(0,g.XG)(i,o):(0,P.Vx)(i)]}),!(f&&i)&&(0,N.jsx)(N.Fragment,{children:"\u2014"})]},"backfill"),(0,N.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,title:m?(0,g._6)(m):null,children:m?o?(0,g.XG)(m,o):(0,P.Vx)(m):(0,N.jsx)(N.Fragment,{children:"\u2014"})},"started_at"),(0,N.jsx)(E.ZP,{default:!0,monospace:!0,small:!0,title:r?(0,g._6)(r):null,children:r?o?(0,g.XG)(r,o):(0,P.Vx)(r):(0,N.jsx)(N.Fragment,{children:"\u2014"})},"completed_at")];return u||j.push((0,N.jsx)(v.ZP,{default:!0,disabled:I===h.VO.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(l,"/backfills/").concat(a,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,N.jsx)(O.I8,{default:!0,size:2*T.iI})},"".concat(e,"_edit_button"))),j})),uuid:"pipeline-runs"})},A=t(93369),Z=t(75457),C=t(93808),D=t(38276),S=t(35686),L=t(28795),x=t(15610),R=t(72619),U=t(69419),M=t(81728);function V(n){var e=n.pipeline,t=(0,a.useRouter)(),r=e.uuid,u=S.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}).data,o=(0,c.useMemo)((function(){return(null===u||void 0===u?void 0:u.backfills)||[]}),[u]),s=(0,U.iV)(),f=(0,c.useState)(null),d=f[0],p=f[1],v=(0,c.useState)(null),b=v[0],m=v[1];(0,c.useEffect)((function(){null!==s&&void 0!==s&&s.backfill_id?p(null===o||void 0===o?void 0:o.find((function(n){return n.id===Number(s.backfill_id)}))):d&&p(null)}),[o,s,d]);var h=(0,c.useMemo)((function(){var n="/pipelines/".concat(r,"/backfills"),e=[{label:function(){return"Backfills"},linkProps:d?{as:n,href:"/pipelines/[pipeline]/backfills"}:null}];return d&&e.push({label:function(){return d.name}}),e}),[r,d]),_=(0,l.Db)(S.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(n){return(0,R.wD)(n,{callback:function(n){var e=n.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(e,"/edit"))},onErrorCallback:function(n,e){return m({errors:e,response:n})}})}}),g=(0,i.Z)(_,2),P=g[0],I=g[1].isLoading;return(0,N.jsxs)(Z.Z,{breadcrumbs:h,errors:b,pageName:L.M.BACKFILLS,pipeline:e,setErrors:m,title:function(n){var e=n.name;return"".concat(e," backfills")},uuid:"".concat(L.M.BACKFILLS,"_").concat(r),children:[(0,N.jsx)(D.Z,{p:T.cd,children:(0,N.jsx)(A.ZP,{beforeElement:(0,N.jsx)(O.mm,{size:2.5*T.iI}),blackBorder:!0,inline:!0,loading:I,noHoverUnderline:!0,onClick:function(){return P({backfill:{name:(0,M.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),o&&0===o.length&&(0,N.jsx)(D.Z,{p:T.cd,children:(0,N.jsx)(E.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===o||void 0===o?void 0:o.length)>=1&&(0,N.jsx)(k,{models:o,onClickRow:function(n){var e=n.id;return(0,x.u7)({backfill_id:e})},pipeline:e,selectedRow:d})]})}V.getInitialProps=function(){var n=(0,r.Z)(o().mark((function n(e){var t;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var Y=(0,C.Z)(V)},37459:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(11650)}])},80022:function(n,e,t){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return r}})},15544:function(n,e,t){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}t.d(e,{Z:function(){return r}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(61049);function i(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,r.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return u}});var r=t(12539),i=t(80022);function u(n,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(n)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,5457,9774,2888,179],(function(){return e=37459,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7983],{59739:function(n,e,t){"use strict";var o=t(56669);function r(){}function i(){}i.resetWarningCache=r,n.exports=function(){function n(n,e,t,r,i,c){if(c!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},41143:function(n,e,t){"use strict";var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(o||(o={}))},44425:function(n,e,t){"use strict";t.d(e,{$W:function(){return T},DA:function(){return O},HX:function(){return m},J8:function(){return h},L8:function(){return u},LE:function(){return p},Lk:function(){return N},Lq:function(){return d},M5:function(){return A},Q3:function(){return E},Qj:function(){return y},Ut:function(){return g},V4:function(){return C},VZ:function(){return R},dO:function(){return s},f2:function(){return S},iZ:function(){return D},t6:function(){return a},tf:function(){return f}});var o,r,i,c,u,a,l=t(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(u||(u={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var f,s=(o={},(0,l.Z)(o,a.MARKDOWN,"MD"),(0,l.Z)(o,a.PYTHON,"PY"),(0,l.Z)(o,a.R,"R"),(0,l.Z)(o,a.SQL,"SQL"),(0,l.Z)(o,a.YAML,"YAML"),o),p=(r={},(0,l.Z)(r,a.MARKDOWN,"Markdown"),(0,l.Z)(r,a.PYTHON,"Python"),(0,l.Z)(r,a.R,"R"),(0,l.Z)(r,a.SQL,"SQL"),(0,l.Z)(r,a.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(f||(f={}));var d,A=[f.CALLBACK,f.CONDITIONAL,f.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(d||(d={}));var O,_,T=[f.CHART,f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN,f.TRANSFORMER],E=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN,f.TRANSFORMER],R=[f.DATA_EXPORTER,f.DATA_LOADER],h=[f.DATA_EXPORTER,f.DATA_LOADER,f.TRANSFORMER],m=[f.DATA_EXPORTER,f.DATA_LOADER,f.DBT,f.TRANSFORMER],y=[f.CHART,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN],D=[f.CALLBACK,f.CHART,f.EXTENSION,f.SCRATCHPAD,f.MARKDOWN],N=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SENSOR,f.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(O||(O={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(_||(_={}));var S=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.TRANSFORMER],C=(i={},(0,l.Z)(i,f.CALLBACK,"Callback"),(0,l.Z)(i,f.CHART,"Chart"),(0,l.Z)(i,f.CONDITIONAL,"Conditional"),(0,l.Z)(i,f.CUSTOM,"Custom"),(0,l.Z)(i,f.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,f.DATA_LOADER,"Data loader"),(0,l.Z)(i,f.DBT,"DBT"),(0,l.Z)(i,f.EXTENSION,"Extension"),(0,l.Z)(i,f.GLOBAL_DATA_PRODUCT,"Global data product"),(0,l.Z)(i,f.MARKDOWN,"Markdown"),(0,l.Z)(i,f.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,f.SENSOR,"Sensor"),(0,l.Z)(i,f.TRANSFORMER,"Transformer"),i),g=[f.DATA_LOADER,f.TRANSFORMER,f.DATA_EXPORTER,f.SENSOR];c={},(0,l.Z)(c,f.DATA_EXPORTER,"DE"),(0,l.Z)(c,f.DATA_LOADER,"DL"),(0,l.Z)(c,f.SCRATCHPAD,"SP"),(0,l.Z)(c,f.SENSOR,"SR"),(0,l.Z)(c,f.MARKDOWN,"MD"),(0,l.Z)(c,f.TRANSFORMER,"TF")},85854:function(n,e,t){"use strict";var o,r,i,c,u,a,l,f,s=t(82394),p=t(26304),d=t(26653),A=t(38626),O=t(33591),_=t(44897),T=t(95363),E=t(61896),R=t(30160),h=t(70515),m=t(38276),y=t(28598),D=["children","condensed","inline","level","marketing","spacingBelow"];function N(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?N(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,A.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],R.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||_.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(T.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(T.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(T.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(T.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(T.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),g=A.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||_.Z.content).active,";\n ")})),b=A.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,O.media.md(o||(o=(0,d.Z)(["\n ","\n "])),E.aQ),O.media.lg(r||(r=(0,d.Z)(["\n ","\n "])),E.aQ),O.media.xl(i||(i=(0,d.Z)(["\n ","\n "])),E.aQ)),Z=A.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,E.MJ),L=A.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,O.media.xs(c||(c=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*h.iI,7*h.iI),O.media.sm(u||(u=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*h.iI,7*h.iI),O.media.md(a||(a=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*h.iI,7*h.iI),O.media.lg(l||(l=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*h.iI,7*h.iI),O.media.xl(f||(f=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*h.iI,7*h.iI)),P=A.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,E.BL),I=A.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),w=A.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),M=A.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),v=A.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(E.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(E.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),H=function(n){var e,t=n.children,o=n.condensed,r=n.inline,i=n.level,c=n.marketing,u=n.spacingBelow,a=(0,p.Z)(n,D);r?e=v:0===Number(i)?e=b:1===Number(i)?e=c?L:Z:2===Number(i)?e=P:3===Number(i)?e=I:4===Number(i)?e=w:5===Number(i)&&(e=M);var l=(0,y.jsxs)(e,S(S({},a),{},{level:i,children:[u&&(0,y.jsx)(m.Z,{mb:o?2:3,children:t}),!u&&t]}));return r?l:(0,y.jsx)(g,{children:l})};H.defaultProps={level:3,weightStyle:6},e.Z=H},91175:function(n,e,t){"use strict";t.r(e);var o=t(77837),r=t(82394),i=t(38860),c=t.n(i),u=t(82684),a=t(39440),l=t(75457),f=t(93808),s=t(35686),p=t(35058),d=t(44425),A=t(75399),O=t(46684),_=t(28795),T=t(41143),E=t(70515),R=t(81728),h=t(28598);function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function D(n){var e=n.pipeline,t=null===e||void 0===e?void 0:e.uuid,o=s.ZP.pipelines.detail(t).data,i=(0,u.useMemo)((function(){return y(y({},null===o||void 0===o?void 0:o.pipeline),e)}),[o,e]),c=(0,u.useMemo)((function(){var n,e,o,i,c,u,a="Trigger active status",l=(0,R.kE)("".concat(a,"_").concat(t,"_").concat((0,R.Lo)())),f="Trigger types",s=(0,R.kE)("".concat(f,"_").concat(t,"_").concat((0,R.Lo)())),O="Trigger frequency",_=(0,R.kE)("".concat(O,"_").concat(t,"_").concat((0,R.Lo)())),E="Pipeline run status",h=(0,R.kE)("".concat(E,"_").concat(t,"_").concat((0,R.Lo)())),m="Pipeline runs daily",D=(0,R.kE)("".concat(m,"_").concat(t,"_").concat((0,R.Lo)())),N="Completed pipeline runs daily",S=(0,R.kE)("".concat(N,"_").concat(t,"_").concat((0,R.Lo)())),C="Failed pipeline runs daily",g=(0,R.kE)("".concat(C,"_").concat(t,"_").concat((0,R.Lo)())),b={pipeline_uuid:t,type:A.XO.PIPELINE_SCHEDULES},Z={pipeline_uuid:t,type:A.XO.PIPELINE_RUNS},L={configuration:(n={},(0,r.Z)(n,p.eN,["execution_date"]),(0,r.Z)(n,p.bE,[{aggregation:p.os.COUNT_DISTINCT,column:"id"}]),(0,r.Z)(n,p.Yg,p.aE.DAY),(0,r.Z)(n,"chart_type",p.oV.TIME_SERIES_LINE_CHART),n),data_source:Z,type:d.tf.CHART};return{blocks:(u={},(0,r.Z)(u,l,{configuration:(e={},(0,r.Z)(e,p.eN,["status"]),(0,r.Z)(e,p.bE,[{aggregation:p.os.COUNT_DISTINCT,column:"id"}]),(0,r.Z)(e,p.$1,p.MP.DESCENDING),(0,r.Z)(e,"chart_type",p.oV.BAR_CHART),e),data_source:b,name:a,type:d.tf.CHART,uuid:l}),(0,r.Z)(u,s,{configuration:(o={},(0,r.Z)(o,p.eN,["schedule_type"]),(0,r.Z)(o,"chart_type",p.oV.PIE_CHART),o),data_source:b,name:f,type:d.tf.CHART,uuid:s}),(0,r.Z)(u,_,{configuration:(i={},(0,r.Z)(i,p.eN,["schedule_interval"]),(0,r.Z)(i,p.bE,[{aggregation:p.os.COUNT_DISTINCT,column:"id"}]),(0,r.Z)(i,p.$1,p.MP.DESCENDING),(0,r.Z)(i,"chart_style",p.JT.HORIZONTAL),(0,r.Z)(i,"chart_type",p.oV.BAR_CHART),i),data_source:b,name:O,type:d.tf.CHART,uuid:_}),(0,r.Z)(u,h,{configuration:(c={},(0,r.Z)(c,p.eN,["status"]),(0,r.Z)(c,p.bE,[{aggregation:p.os.COUNT_DISTINCT,column:"id"}]),(0,r.Z)(c,p.$1,p.MP.DESCENDING),(0,r.Z)(c,"chart_style",p.JT.HORIZONTAL),(0,r.Z)(c,"chart_type",p.oV.BAR_CHART),c),data_source:Z,name:E,type:d.tf.CHART,uuid:h}),(0,r.Z)(u,D,y(y({},L),{},{name:m,uuid:D})),(0,r.Z)(u,S,y(y({},L),{},{content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(T.V.COMPLETED,"']\n"),name:N,uuid:S})),(0,r.Z)(u,g,y(y({},L),{},{content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(T.V.FAILED,"']\n"),name:C,uuid:g})),u),layout:[[{block_uuid:l,width:1},{block_uuid:s,width:1},{block_uuid:_,width:2}],[{block_uuid:h,width:1},{block_uuid:D,width:2}],[{block_uuid:S,width:1},{block_uuid:g,width:1}]]}}),[t]);return(0,h.jsx)(l.Z,{breadcrumbs:[{label:function(){return"Dashboard"}}],pageName:_.M.DASHBOARD,pipeline:i,title:function(n){var e=n.name;return"".concat(e," dashboard")},uuid:"".concat(_.M.DASHBOARD,"_").concat(t),children:(0,h.jsx)(a.Z,{leftOffset:9*E.iI,pageBlockLayoutTemplate:c,topOffset:O.Mz,uuid:"pipelines/".concat(t,"/dashboard")})})}D.getInitialProps=function(){var n=(0,o.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,f.Z)(D)},47974:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/dashboard",function(){return t(91175)}])},80022:function(n,e,t){"use strict";function o(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return o}})},15544:function(n,e,t){"use strict";function o(n){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},o(n)}t.d(e,{Z:function(){return o}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return r}});var o=t(61049);function r(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,o.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var o=t(12539),r=t(80022);function i(n,e){if(e&&("object"===o(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(n)}},61049:function(n,e,t){"use strict";function o(n,e){return o=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},o(n,e)}t.d(e,{Z:function(){return o}})}},function(n){n.O(0,[2678,3662,1154,844,6639,341,1751,5896,2714,2631,4783,4267,600,8487,8264,5457,5810,1550,976,9440,9774,2888,179],(function(){return e=47974,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|