mage-ai 0.9.75__py3-none-any.whl → 0.9.76__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/policies/PipelineSchedulePolicy.py +1 -0
- mage_ai/api/presenters/PipelineSchedulePresenter.py +11 -2
- mage_ai/api/resources/PipelineScheduleResource.py +11 -3
- mage_ai/api/resources/PipelineTriggerResource.py +3 -1
- mage_ai/api/resources/SessionResource.py +2 -2
- mage_ai/api/resources/SyncResource.py +1 -1
- mage_ai/api/resources/UserResource.py +1 -1
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_integrations/sources/constants.py +2 -0
- mage_ai/data_preparation/models/block/__init__.py +0 -1
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +20 -8
- mage_ai/data_preparation/models/block/dynamic/constants.py +0 -1
- mage_ai/data_preparation/models/block/dynamic/counter.py +1 -3
- mage_ai/data_preparation/models/block/r/__init__.py +16 -5
- mage_ai/data_preparation/models/block/sql/__init__.py +2 -0
- mage_ai/data_preparation/models/block/sql/mssql.py +8 -0
- mage_ai/data_preparation/models/block/sql/utils/shared.py +6 -2
- mage_ai/data_preparation/models/constants.py +1 -0
- mage_ai/data_preparation/models/pipeline.py +1 -1
- mage_ai/data_preparation/templates/constants.py +7 -0
- mage_ai/data_preparation/templates/data_loaders/airtable.py +28 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +2 -0
- mage_ai/io/airtable.py +104 -0
- mage_ai/io/base.py +1 -0
- mage_ai/io/bigquery.py +36 -0
- mage_ai/io/config.py +5 -0
- mage_ai/io/mssql.py +5 -0
- mage_ai/io/mysql.py +6 -1
- mage_ai/io/redshift.py +13 -0
- mage_ai/io/sql.py +1 -0
- mage_ai/orchestration/db/__init__.py +20 -0
- mage_ai/orchestration/db/models/schedules.py +2 -5
- mage_ai/orchestration/db/models/secrets.py +11 -1
- mage_ai/orchestration/metrics/pipeline_run.py +1 -1
- mage_ai/orchestration/pipeline_scheduler_original.py +4 -5
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +4 -5
- mage_ai/orchestration/utils/distributed_lock.py +8 -1
- mage_ai/server/api/triggers.py +9 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-782dd4a6b13e1c42.js +2 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-0bc44da590c7cf85.js → webpack-b9a067f3bd0a3a05.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/{38-PtskJFUTYUpRhT1qF_ → qR0jauUABqPaFMjUsYeoG}/_buildManifest.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 +2 -2
- mage_ai/server/frontend_dist/global-hooks.html +2 -2
- 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/overview.html +2 -2
- mage_ai/server/frontend_dist/manage/pipeline-runs.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/platform/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist/platform/global-hooks.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/platform/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/platform/settings.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 +5 -5
- 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 +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist/v2.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/449-5e2253c6aba42557.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ee5e328aaf51c698.js +2 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-12ad70eb5c31aa92.js → webpack-5f4be622608d9267.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/{dxnSzgIvSG4Ke5LM-tPQX → iCySon3_GCldnbC5U7C-s}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
- 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 +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/v2.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/settings/server.py +2 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_counter.py +1 -3
- mage_ai/usage_statistics/logger.py +99 -15
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/METADATA +119 -103
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/RECORD +188 -186
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/WHEEL +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/449-f689774546860ca4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-13bf3b7dcef50c29.js +0 -2
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-b99379d0aa6a8c25.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-e51cd04bd4d1fffe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-0abf8a1b7243f93b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-38187954b6ec4b40.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-3ee783f5139c76a1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/449-f689774546860ca4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-0392ef723ea2c6f8.js +0 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-b99379d0aa6a8c25.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-e51cd04bd4d1fffe.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-0abf8a1b7243f93b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-38187954b6ec4b40.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-3ee783f5139c76a1.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-13bf3b7dcef50c29.js.LICENSE.txt → _app-782dd4a6b13e1c42.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist/_next/static/{38-PtskJFUTYUpRhT1qF_ → qR0jauUABqPaFMjUsYeoG}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-0392ef723ea2c6f8.js.LICENSE.txt → _app-ee5e328aaf51c698.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{dxnSzgIvSG4Ke5LM-tPQX → iCySon3_GCldnbC5U7C-s}/_ssgManifest.js +0 -0
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info/licenses}/LICENSE +0 -0
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/top_level.txt +0 -0
mage_ai/io/mssql.py
CHANGED
|
@@ -14,6 +14,7 @@ from mage_ai.io.config import BaseConfigLoader, ConfigKey
|
|
|
14
14
|
from mage_ai.io.constants import UNIQUE_CONFLICT_METHOD_UPDATE
|
|
15
15
|
from mage_ai.io.export_utils import PandasTypes
|
|
16
16
|
from mage_ai.io.sql import BaseSQL
|
|
17
|
+
from mage_ai.shared.hash import extract
|
|
17
18
|
from mage_ai.shared.parsers import encode_complex
|
|
18
19
|
|
|
19
20
|
MERGE_TABLE_SQL = '''MERGE {table_name} AS t
|
|
@@ -197,9 +198,11 @@ class MSSQL(BaseSQL):
|
|
|
197
198
|
TrustServerCertificate='yes',
|
|
198
199
|
),
|
|
199
200
|
)
|
|
201
|
+
conn_kwargs = extract(kwargs, ['pool_size', 'max_overflow'])
|
|
200
202
|
engine = create_engine(
|
|
201
203
|
connection_url,
|
|
202
204
|
fast_executemany=True,
|
|
205
|
+
**conn_kwargs,
|
|
203
206
|
)
|
|
204
207
|
|
|
205
208
|
unique_conflict_method = kwargs.get('unique_conflict_method')
|
|
@@ -242,6 +245,7 @@ class MSSQL(BaseSQL):
|
|
|
242
245
|
method=merge_table,
|
|
243
246
|
)
|
|
244
247
|
return
|
|
248
|
+
sql_kwargs = extract(kwargs, ['chunksize', 'method'])
|
|
245
249
|
|
|
246
250
|
df.to_sql(
|
|
247
251
|
table_name,
|
|
@@ -249,6 +253,7 @@ class MSSQL(BaseSQL):
|
|
|
249
253
|
schema=schema_name,
|
|
250
254
|
if_exists=if_exists or ExportWritePolicy.REPLACE,
|
|
251
255
|
index=False,
|
|
256
|
+
**sql_kwargs,
|
|
252
257
|
)
|
|
253
258
|
|
|
254
259
|
def get_type(self, column: Series, dtype: str) -> str:
|
mage_ai/io/mysql.py
CHANGED
|
@@ -25,6 +25,7 @@ class MySQL(BaseSQL):
|
|
|
25
25
|
password: str,
|
|
26
26
|
user: str,
|
|
27
27
|
port: int = 3306,
|
|
28
|
+
allow_local_infile: bool = False,
|
|
28
29
|
verbose: bool = True,
|
|
29
30
|
**kwargs,
|
|
30
31
|
) -> None:
|
|
@@ -35,18 +36,22 @@ class MySQL(BaseSQL):
|
|
|
35
36
|
port=port or 3306,
|
|
36
37
|
user=user,
|
|
37
38
|
verbose=verbose,
|
|
39
|
+
allow_local_infile=allow_local_infile,
|
|
38
40
|
**kwargs,
|
|
39
41
|
)
|
|
40
42
|
|
|
41
43
|
@classmethod
|
|
42
44
|
def with_config(cls, config: BaseConfigLoader) -> 'MySQL':
|
|
43
|
-
|
|
45
|
+
conn_kwargs = dict(
|
|
44
46
|
database=config[ConfigKey.MYSQL_DATABASE],
|
|
45
47
|
host=config[ConfigKey.MYSQL_HOST],
|
|
46
48
|
password=config[ConfigKey.MYSQL_PASSWORD],
|
|
47
49
|
port=config[ConfigKey.MYSQL_PORT],
|
|
48
50
|
user=config[ConfigKey.MYSQL_USER],
|
|
49
51
|
)
|
|
52
|
+
if config[ConfigKey.MYSQL_ALLOW_LOCAL_INFILE] is not None:
|
|
53
|
+
conn_kwargs['allow_local_infile'] = config[ConfigKey.MYSQL_ALLOW_LOCAL_INFILE]
|
|
54
|
+
return cls(**conn_kwargs)
|
|
50
55
|
|
|
51
56
|
def build_create_table_command(
|
|
52
57
|
self,
|
mage_ai/io/redshift.py
CHANGED
|
@@ -5,6 +5,7 @@ from typing import Dict, Union
|
|
|
5
5
|
from pandas import DataFrame
|
|
6
6
|
from redshift_connector import connect
|
|
7
7
|
|
|
8
|
+
from mage_ai.data_preparation.models.block.sql.utils.shared import split_query_string
|
|
8
9
|
from mage_ai.io.base import QUERY_ROW_LIMIT, ExportWritePolicy
|
|
9
10
|
from mage_ai.io.config import BaseConfigLoader, ConfigKey
|
|
10
11
|
from mage_ai.io.export_utils import clean_df_for_export, infer_dtypes
|
|
@@ -67,6 +68,18 @@ class Redshift(BaseSQL):
|
|
|
67
68
|
with self.conn.cursor() as cur:
|
|
68
69
|
cur.execute(query_string, **kwargs)
|
|
69
70
|
|
|
71
|
+
def execute_query_raw(self, query: str, **kwargs) -> None:
|
|
72
|
+
"""
|
|
73
|
+
Overwrite execute query to process multiple queries in one string.
|
|
74
|
+
"""
|
|
75
|
+
results = []
|
|
76
|
+
with self.conn.cursor() as cursor:
|
|
77
|
+
for query_string in split_query_string(query):
|
|
78
|
+
result = cursor.execute(query_string)
|
|
79
|
+
results.append(result)
|
|
80
|
+
self.conn.commit()
|
|
81
|
+
return results
|
|
82
|
+
|
|
70
83
|
def load(
|
|
71
84
|
self,
|
|
72
85
|
query_string: str,
|
mage_ai/io/sql.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
import os
|
|
3
|
+
from functools import wraps
|
|
3
4
|
from urllib.parse import parse_qs, quote_plus, urlparse
|
|
4
5
|
|
|
5
6
|
import sqlalchemy
|
|
@@ -169,6 +170,25 @@ def safe_db_query(func):
|
|
|
169
170
|
return func_with_rollback
|
|
170
171
|
|
|
171
172
|
|
|
173
|
+
def safe_db_query_async(func):
|
|
174
|
+
@wraps(func)
|
|
175
|
+
async def func_with_rollback_async(*args, **kwargs):
|
|
176
|
+
retry_count = 0
|
|
177
|
+
while True:
|
|
178
|
+
try:
|
|
179
|
+
return await func(*args, **kwargs)
|
|
180
|
+
except (
|
|
181
|
+
sqlalchemy.exc.OperationalError,
|
|
182
|
+
sqlalchemy.exc.PendingRollbackError,
|
|
183
|
+
sqlalchemy.exc.InternalError,
|
|
184
|
+
) as e:
|
|
185
|
+
db_connection.session.rollback()
|
|
186
|
+
if retry_count >= DB_RETRY_COUNT:
|
|
187
|
+
raise e
|
|
188
|
+
retry_count += 1
|
|
189
|
+
return func_with_rollback_async
|
|
190
|
+
|
|
191
|
+
|
|
172
192
|
logging.basicConfig()
|
|
173
193
|
|
|
174
194
|
if is_debug() and not os.getenv('DISABLE_DATABASE_TERMINAL_OUTPUT'):
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import asyncio
|
|
2
1
|
import collections
|
|
3
2
|
import traceback
|
|
4
3
|
import uuid
|
|
@@ -1400,10 +1399,8 @@ class PipelineRun(PipelineRunProjectPlatformMixin, BaseModel):
|
|
|
1400
1399
|
|
|
1401
1400
|
from mage_ai.usage_statistics.logger import UsageStatisticLogger
|
|
1402
1401
|
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
lambda: self.query.filter(self.status == self.PipelineRunStatus.COMPLETED).count(),
|
|
1406
|
-
)
|
|
1402
|
+
UsageStatisticLogger().pipeline_runs_impression_sync(
|
|
1403
|
+
lambda: self.query.filter(self.status == self.PipelineRunStatus.COMPLETED).count(),
|
|
1407
1404
|
)
|
|
1408
1405
|
|
|
1409
1406
|
@safe_db_query
|
|
@@ -3,7 +3,8 @@ from typing import Optional
|
|
|
3
3
|
from sqlalchemy import Column, String, Text, UniqueConstraint, or_
|
|
4
4
|
|
|
5
5
|
from mage_ai.orchestration.db import safe_db_query
|
|
6
|
-
from mage_ai.orchestration.db.models.base import BaseModel
|
|
6
|
+
from mage_ai.orchestration.db.models.base import BaseModel, classproperty
|
|
7
|
+
from mage_ai.settings.repo import get_repo_path
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class Secret(BaseModel):
|
|
@@ -15,6 +16,15 @@ class Secret(BaseModel):
|
|
|
15
16
|
key_uuid = Column(String(255), nullable=True)
|
|
16
17
|
__table_args__ = (UniqueConstraint('name', 'key_uuid', name='name_key_uuid_uc'),)
|
|
17
18
|
|
|
19
|
+
@classproperty
|
|
20
|
+
def repo_query(cls):
|
|
21
|
+
return cls.query.filter(
|
|
22
|
+
or_(
|
|
23
|
+
Secret.repo_name == get_repo_path(),
|
|
24
|
+
Secret.repo_name.is_(None),
|
|
25
|
+
)
|
|
26
|
+
)
|
|
27
|
+
|
|
18
28
|
@classmethod
|
|
19
29
|
@safe_db_query
|
|
20
30
|
def get_secret(cls, name: str, key_uuid: str) -> Optional['Secret']:
|
|
@@ -220,7 +220,7 @@ def __calculate_metrics(pipeline_run: PipelineRun, pipeline) -> Dict:
|
|
|
220
220
|
|
|
221
221
|
pipeline_metrics_by_stream = {}
|
|
222
222
|
pipeline_logs_by_stream = {}
|
|
223
|
-
pipeline_logs = pipeline_run.logs['content'].split('\n')
|
|
223
|
+
pipeline_logs = pipeline_run.logs[0]['content'].split('\n')
|
|
224
224
|
for pipeline_log in pipeline_logs:
|
|
225
225
|
tags = parse_line(pipeline_log)
|
|
226
226
|
stream = tags.get('stream')
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import asyncio
|
|
2
1
|
import collections
|
|
3
2
|
import os
|
|
4
3
|
import traceback
|
|
@@ -260,7 +259,7 @@ class PipelineScheduler:
|
|
|
260
259
|
pipeline=self.pipeline,
|
|
261
260
|
pipeline_run=self.pipeline_run,
|
|
262
261
|
)
|
|
263
|
-
|
|
262
|
+
UsageStatisticLogger().pipeline_run_ended_sync(self.pipeline_run)
|
|
264
263
|
|
|
265
264
|
self.logger_manager.output_logs_to_destination()
|
|
266
265
|
|
|
@@ -339,7 +338,7 @@ class PipelineScheduler:
|
|
|
339
338
|
error_msg: str,
|
|
340
339
|
status=PipelineRun.PipelineRunStatus.FAILED,
|
|
341
340
|
) -> None:
|
|
342
|
-
|
|
341
|
+
UsageStatisticLogger().pipeline_run_ended_sync(self.pipeline_run)
|
|
343
342
|
|
|
344
343
|
if status == PipelineRun.PipelineRunStatus.FAILED:
|
|
345
344
|
# Only send notification when pipeline run status is FAILED
|
|
@@ -1372,7 +1371,7 @@ def stop_pipeline_run(
|
|
|
1372
1371
|
# Update pipeline run status to cancelled
|
|
1373
1372
|
pipeline_run.update(status=status)
|
|
1374
1373
|
|
|
1375
|
-
|
|
1374
|
+
UsageStatisticLogger().pipeline_run_ended_sync(pipeline_run)
|
|
1376
1375
|
|
|
1377
1376
|
# Cancel all the block runs
|
|
1378
1377
|
cancel_block_runs_and_jobs(pipeline_run, pipeline)
|
|
@@ -1584,7 +1583,7 @@ def schedule_all():
|
|
|
1584
1583
|
pipeline_runs_excluded_by_limit = []
|
|
1585
1584
|
for pipeline_schedule in active_schedules:
|
|
1586
1585
|
lock_key = f'pipeline_schedule_{pipeline_schedule.id}'
|
|
1587
|
-
if not lock.try_acquire_lock(lock_key):
|
|
1586
|
+
if not lock.try_acquire_lock(lock_key, timeout=30):
|
|
1588
1587
|
continue
|
|
1589
1588
|
|
|
1590
1589
|
trigger_pipeline_run_limit = pipeline_schedule.get_settings().pipeline_run_limit
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import asyncio
|
|
2
1
|
import collections
|
|
3
2
|
import os
|
|
4
3
|
import traceback
|
|
@@ -262,7 +261,7 @@ class PipelineScheduler:
|
|
|
262
261
|
pipeline_run=self.pipeline_run,
|
|
263
262
|
)
|
|
264
263
|
|
|
265
|
-
|
|
264
|
+
UsageStatisticLogger().pipeline_run_ended_sync(self.pipeline_run)
|
|
266
265
|
|
|
267
266
|
self.logger_manager.output_logs_to_destination()
|
|
268
267
|
|
|
@@ -338,7 +337,7 @@ class PipelineScheduler:
|
|
|
338
337
|
|
|
339
338
|
@safe_db_query
|
|
340
339
|
def on_pipeline_run_failure(self, error: str) -> None:
|
|
341
|
-
|
|
340
|
+
UsageStatisticLogger().pipeline_run_ended_sync(self.pipeline_run)
|
|
342
341
|
self.notification_sender.send_pipeline_run_failure_message(
|
|
343
342
|
pipeline=self.pipeline,
|
|
344
343
|
pipeline_run=self.pipeline_run,
|
|
@@ -1317,7 +1316,7 @@ def stop_pipeline_run(
|
|
|
1317
1316
|
# Update pipeline run status to cancelled
|
|
1318
1317
|
pipeline_run.update(status=status)
|
|
1319
1318
|
|
|
1320
|
-
|
|
1319
|
+
UsageStatisticLogger().pipeline_run_ended_sync(pipeline_run)
|
|
1321
1320
|
|
|
1322
1321
|
# Cancel all the block runs
|
|
1323
1322
|
cancel_block_runs_and_jobs(pipeline_run, pipeline)
|
|
@@ -1568,7 +1567,7 @@ def schedule_all():
|
|
|
1568
1567
|
concurrency_config = ConcurrencyConfig.load(config=pipeline.concurrency_config)
|
|
1569
1568
|
|
|
1570
1569
|
lock_key = f'pipeline_schedule_{pipeline_schedule.id}'
|
|
1571
|
-
if not lock.try_acquire_lock(lock_key):
|
|
1570
|
+
if not lock.try_acquire_lock(lock_key, timeout=30):
|
|
1572
1571
|
continue
|
|
1573
1572
|
|
|
1574
1573
|
try:
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
1
3
|
from mage_ai.services.redis.redis import init_redis_client
|
|
2
4
|
from mage_ai.settings import REDIS_URL
|
|
3
5
|
|
|
6
|
+
try:
|
|
7
|
+
REDIS_LOCK_DEFAULT_TIMEOUT = int(os.getenv('REDIS_LOCK_DEFAULT_TIMEOUT', 30) or 30)
|
|
8
|
+
except Exception:
|
|
9
|
+
REDIS_LOCK_DEFAULT_TIMEOUT = 30
|
|
10
|
+
|
|
4
11
|
|
|
5
12
|
class DistributedLock:
|
|
6
13
|
def __init__(
|
|
7
14
|
self,
|
|
8
15
|
lock_key_prefix='LOCK_KEY',
|
|
9
|
-
lock_timeout=
|
|
16
|
+
lock_timeout=REDIS_LOCK_DEFAULT_TIMEOUT,
|
|
10
17
|
):
|
|
11
18
|
self.lock_key_prefix = lock_key_prefix
|
|
12
19
|
self.lock_timeout = lock_timeout
|
mage_ai/server/api/triggers.py
CHANGED
|
@@ -23,6 +23,15 @@ class ApiTriggerPipelineHandler(BaseHandler):
|
|
|
23
23
|
if token is None:
|
|
24
24
|
token = get_bearer_auth_token_from_headers(self.request.headers)
|
|
25
25
|
|
|
26
|
+
if ScheduleType.API != pipeline_schedule.schedule_type:
|
|
27
|
+
raise UnauthenticatedRequestException(
|
|
28
|
+
'This endpoint is only supported for API trigger.',
|
|
29
|
+
)
|
|
30
|
+
if not pipeline_schedule.token:
|
|
31
|
+
raise UnauthenticatedRequestException(
|
|
32
|
+
'The token of the API trigger cannot be empty.',
|
|
33
|
+
)
|
|
34
|
+
|
|
26
35
|
if ScheduleType.API == pipeline_schedule.schedule_type and \
|
|
27
36
|
pipeline_schedule.token and \
|
|
28
37
|
pipeline_schedule.token != token:
|
mage_ai/server/constants.py
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
})();
|
|
30
|
-
</script><link rel="preload" href="/_next/static/css/18782af6d2c4e826.css" as="style"/><link rel="stylesheet" href="/_next/static/css/18782af6d2c4e826.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-
|
|
30
|
+
</script><link rel="preload" href="/_next/static/css/18782af6d2c4e826.css" as="style"/><link rel="stylesheet" href="/_next/static/css/18782af6d2c4e826.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-b9a067f3bd0a3a05.js" defer=""></script><script src="/_next/static/chunks/framework-ea07653270784974.js" defer=""></script><script src="/_next/static/chunks/main-f39b6301263551db.js" defer=""></script><script src="/_next/static/chunks/pages/_app-782dd4a6b13e1c42.js" defer=""></script><script src="/_next/static/chunks/pages/404-8ecd93274c427b76.js" defer=""></script><script src="/_next/static/qR0jauUABqPaFMjUsYeoG/_buildManifest.js" defer=""></script><script src="/_next/static/qR0jauUABqPaFMjUsYeoG/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.11">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
|
|
31
31
|
*,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
|
|
32
32
|
data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
|
|
33
33
|
.cGTklP{margin-top:16px;margin-bottom:16px;}/*!sc*/
|
|
@@ -46,4 +46,4 @@ data-styled.g81[id="Headline__H1Style-sc-12jzt2e-2"]{content:"wrkfv,"}/*!sc*/
|
|
|
46
46
|
.dionUf .Toastify__toast--success{background:#00A81A !important;color:#FFFFFF !important;}/*!sc*/
|
|
47
47
|
.dionUf .Toastify__toast--warning{background:#DD9900 !important;color:#FFFFFF !important;}/*!sc*/
|
|
48
48
|
data-styled.g279[id="ToastWrapper-sc-1a33ph1-0"]{content:"dionUf,"}/*!sc*/
|
|
49
|
-
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><main style="align-items:center;display:flex;flex-direction:column;height:100vh;margin-top:16rem"><svg width="84.70857142857143" height="64" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z" fill="url(#paint0_linear_1303_5)"></path><path d="M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z" fill="url(#paint1_linear_1303_5)"></path><path d="M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z" fill="url(#paint2_linear_1303_5)"></path><defs><linearGradient id="paint0_linear_1303_5" x1="8.03125" y1="7" x2="19.2641" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint1_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint2_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient></defs></svg><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 cGTklP"><div class="Headline__HeadlineContainerStyle-sc-12jzt2e-0 hxvzgz"><h1 class="Headline__H1Style-sc-12jzt2e-2 wrkfv">404 - Page Not Found<!-- --></h1></div></div><p class="Text__TextStyle-sc-sl5nur-0 cKjmRF">You will be redirected to the Pipelines dashboard in <!-- -->5<!-- --> seconds.<!-- --></p></main><div id="command-center-root"></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 dionUf"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtDark":"rgba(252, 105, 73, 0.3)","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"blackTransparent":"rgba(0, 0, 0, 0.6)","blackTransparentDark":"rgba(0, 0, 0, 0.8)","chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","dashboardTransparent":"rgba(24, 24, 28, 0.1)","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","panelTransparent":"rgba(35, 36, 41, 0.7)","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","darkLight":"#2E3036","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","blackBackgroundTransparent":"rgba(0, 0, 0, 0.5)","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBackgroundTransparent":"rgba(54, 56, 63, 0.5)","defaultBorder":"#ffffff1a","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBackgroundTransparent":"rgba(78, 78, 78, 0.5)","hoverBlackBackgroundTransparent":"rgba(0, 0, 0, 0.7)","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","purple":"#885EFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(0, 0, 0, 0.3)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/404","query":{},"buildId":"
|
|
49
|
+
</style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><main style="align-items:center;display:flex;flex-direction:column;height:100vh;margin-top:16rem"><svg width="84.70857142857143" height="64" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z" fill="url(#paint0_linear_1303_5)"></path><path d="M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z" fill="url(#paint1_linear_1303_5)"></path><path d="M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z" fill="url(#paint2_linear_1303_5)"></path><defs><linearGradient id="paint0_linear_1303_5" x1="8.03125" y1="7" x2="19.2641" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint1_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint2_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient></defs></svg><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 cGTklP"><div class="Headline__HeadlineContainerStyle-sc-12jzt2e-0 hxvzgz"><h1 class="Headline__H1Style-sc-12jzt2e-2 wrkfv">404 - Page Not Found<!-- --></h1></div></div><p class="Text__TextStyle-sc-sl5nur-0 cKjmRF">You will be redirected to the Pipelines dashboard in <!-- -->5<!-- --> seconds.<!-- --></p></main><div id="command-center-root"></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 dionUf"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtDark":"rgba(252, 105, 73, 0.3)","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"blackTransparent":"rgba(0, 0, 0, 0.6)","blackTransparentDark":"rgba(0, 0, 0, 0.8)","chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","dashboardTransparent":"rgba(24, 24, 28, 0.1)","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","panelTransparent":"rgba(35, 36, 41, 0.7)","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","darkLight":"#2E3036","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","blackBackgroundTransparent":"rgba(0, 0, 0, 0.5)","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBackgroundTransparent":"rgba(54, 56, 63, 0.5)","defaultBorder":"#ffffff1a","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBackgroundTransparent":"rgba(78, 78, 78, 0.5)","hoverBlackBackgroundTransparent":"rgba(0, 0, 0, 0.7)","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","purple":"#885EFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(0, 0, 0, 0.3)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/404","query":{},"buildId":"qR0jauUABqPaFMjUsYeoG","nextExport":true,"isFallback":false,"appGip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[449],{54750:function(e,n,t){var r=t(82394),i=t(12691),l=t.n(i),o=t(55485),a=t(48670),s=t(44085),c=t(38276),u=t(4190),d=t(30160),h=t(72473),p=t(70515),f=t(28598),v=t(82684);function m(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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.breadcrumbs,t=e.noMarginLeft,r=n.length,i=[];return n.forEach((function(e,n){var m=e.bold,j=e.danger,g=e.label,b=e.linkProps,y=e.loading,Z=e.monospace,C=void 0===Z||Z,M=e.onClick,F=e.options,O=g();r>=2&&n>=1&&i.push((0,f.jsx)(c.Z,{mx:1,children:(0,f.jsx)(h.ChevronRight,{muted:!0})},"divider-".concat(O)));var P=(0,f.jsx)(d.ZP,{bold:m,danger:j,default:!m,monospace:C,noWrapping:!0,children:O});if((null==F?void 0:F.length)>=1){var w,H,_=null==F?void 0:F.find((function(e){return!!e.selected}));if(_)(w=((null==_||null===(H=_.uuid)||void 0===H?void 0:H.length)||0)*p.ro)&&(w+=3*p.iI,y&&(w+=2*p.iI));P=(0,f.jsx)(o.ZP,{alignItems:"center",children:(0,f.jsx)(s.Z,{afterIcon:y?(0,f.jsx)(u.Z,{inverted:!0,small:!0}):null,danger:j,defaultTextColor:!m,maxWidth:w||null,monospace:C,noBackground:!0,noBorder:!0,onChange:function(e){var n,t=e.target.value,r=null==F?void 0:F.find((function(e){return e.uuid===t}));r&&null!=r&&r.onClick&&(null==r||null===(n=r.onClick)||void 0===n||n.call(r,t))},paddingHorizontal:0,paddingVertical:0,value:(null==_?void 0:_.uuid)||"",children:null==F?void 0:F.map((function(e){var n=e.label,t=e.selected,r=e.uuid,i=n?null==n?void 0:n():r;return(0,f.jsx)("option",{value:r,children:t?r:i},r)}))})})}var k=(0,f.jsx)(c.Z,{ml:t||0!==n?0:2,children:P},"breadcrumb-".concat(O));b?k=(0,v.createElement)(l(),x(x({},b),{},{key:"breadcrumb-link-".concat(O),passHref:!0}),(0,f.jsx)(a.Z,{block:!0,default:!m,noOutline:!0,sameColorAsText:m,children:k})):M&&(k=(0,f.jsx)(a.Z,{block:!0,default:!m,noOutline:!0,onClick:M,preventDefault:!0,sameColorAsText:m,children:k})),i.push(k)})),(0,f.jsx)(o.ZP,{alignItems:"center",children:i})}},92272:function(e,n,t){t.d(n,{Z:function(){return qe}});var r=t(21831),i=t(82394),l=t(75582),o=t(12691),a=t.n(o),s=t(9518),c=t(82684),u=t(34376),d=t(40761),h=t(54750),p=t(71180),f=t(39867),v=t(50724),m=t(58036),x=t(97618),j=t(55485),g=t(70374),b=t(56085),y=t(83455),Z=t(70652),C=t(44085),M=t(38276),F=t(4190),O=t(28026),P=t(30160),w=t(35576),H=t(17488),_=t(69650),k=t(35686),z=t(72473),D=t(44897),I=t(42631),S=t(31353),E=t(47041),A=t(70515),T=s.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],S.Mz),L=s.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],S.Mz),N=s.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],I.n_,(function(e){return"\n background-color: ".concat((e.theme.background||D.Z.background).panel,";\n ")})),U=s.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*A.iI,S.Mz),B=t(4383),R=t(72619),W=t(86735),G=t(50178),q=t(28598);function Y(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?Y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var Q=function(e){var n,t=e.branch,r=(e.fetchBranch,(0,u.useRouter)()),i=(0,c.useState)(),o=i[0],a=i[1],s=(0,c.useState)(),d=s[0],h=s[1],f=(0,c.useState)(),v=f[0],m=f[1],x=(0,c.useState)(),g=x[0],D=x[1],I=(0,c.useState)(),S=I[0],E=I[1],A=(0,c.useState)(),Y=A[0],Q=A[1],$=k.ZP.git_branches.list({include_remote_branches:1}),X=$.data,K=$.isValidating,ee=$.mutate,ne=(0,c.useMemo)((function(){return null==X?void 0:X.git_branches}),[X]),te=k.ZP.syncs.list().data,re=(0,c.useMemo)((function(){var e;if(te)return null===(e=te.syncs)||void 0===e?void 0:e[0]}),[te]),ie=(0,y.Db)(k.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){ee(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),le=(0,l.Z)(ie,2),oe=le[0],ae=le[1].isLoading,se=(0,y.Db)((function(){return k.ZP.git_branches.useUpdate(encodeURIComponent(t))({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),ce=(0,l.Z)(se,1)[0],ue=(0,y.Db)(k.ZP.git_branches.useUpdate(encodeURIComponent(t)),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){E(null),D("DONE")},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),de=(0,l.Z)(ue,2),he=de[0],pe=de[1].isLoading,fe=(0,y.Db)(k.ZP.git_branches.useUpdate(encodeURIComponent(t)),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){E(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),ve=(0,l.Z)(fe,2),me=ve[0],xe=ve[1].isLoading,je=(0,c.useState)(),ge=je[0],be=je[1],ye=(0,c.useState)([]),Ze=ye[0],Ce=ye[1],Me=(0,c.useState)([]),Fe=Me[0],Oe=Me[1],Pe=(0,c.useCallback)((function(){ce().then((function(e){var n=e.data,t=null==n?void 0:n.git_branch,r=null==t?void 0:t.status,i=null==t?void 0:t.modified_files,l=null==t?void 0:t.untracked_files;be(r),Ce(l),Oe(i)}))}),[ce]),we=(0,c.useMemo)((function(){return ae||pe||xe}),[ae,pe,xe]);(0,c.useEffect)((function(){K||Pe()}),[v,K,Pe]);var He=(0,c.useMemo)((function(){return(0,G.PR)(null==r?void 0:r.basePath)||{}}),[null==r?void 0:r.basePath]),_e=(0,c.useMemo)((function(){var e={term_name:null!=He&&He.id?"git_".concat(null==He?void 0:He.id):"git"};return null!=re&&re.repo_path&&(e.cwd=null==re?void 0:re.repo_path),e}),[null==re?void 0:re.repo_path,He]),ke=(0,b.ZP)((0,B.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in _e),ze=ke.lastMessage,De=ke.sendMessage,Ie=(0,c.useCallback)((function(e){return(0,q.jsx)(Z.Z,{checked:((null==o?void 0:o.files)||[]).includes(e),label:(0,q.jsx)(P.ZP,{small:!0,children:e}),onClick:function(){a((function(n){var t=(null==n?void 0:n.files)||[];return t=t.includes(e)?(0,W.Od)(t,(function(n){return n===e})):[e].concat(t),J(J({},n),{},{files:t})}))},small:!0},e)}),[o]),Se=(0,c.useMemo)((function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(p.ZP,{onClick:function(){return a((function(e){return J(J({},e),{},{files:Fe.concat(Ze)})}))},children:"Include all changes"}),Fe&&Fe.length>0&&(0,q.jsxs)(M.Z,{mb:1,children:[(0,q.jsx)(M.Z,{my:1,children:(0,q.jsx)(P.ZP,{children:"Modified files"})}),Fe.map(Ie)]}),Ze&&Ze.length>0&&(0,q.jsxs)(M.Z,{mb:1,children:[(0,q.jsx)(M.Z,{my:1,children:(0,q.jsx)(P.ZP,{children:"Untracked files"})}),Ze.map(Ie)]})]})}),[Ie,Fe,Ze]),Ee=(0,c.useMemo)((function(){return(0,q.jsx)(M.Z,{p:2,children:we?(0,q.jsx)(F.Z,{color:"white"}):(0,q.jsxs)(q.Fragment,{children:["commit"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(w.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return a((function(n){return J(J({},n),{},{message:e.target.value})}))},required:!0,value:null==o?void 0:o.message}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){he({git_branch:J({action_type:"commit"},o)}).then((function(){Pe(),a(null)}))},success:!0,children:"Commit"}),(0,q.jsx)(M.Z,{mr:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){he({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(H.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return a({name:e.target.value})},value:null==o?void 0:o.name}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){oe({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(P.ZP,{children:["Clone from ",(0,q.jsx)(P.ZP,{default:!0,inline:!0,children:null==re?void 0:re.remote_repo_link})," to ",(0,q.jsx)(P.ZP,{default:!0,inline:!0,children:null==re?void 0:re.repo_path}),". This ",(0,q.jsx)(P.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){me({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===v&&(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){me({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{mb:1,children:(0,q.jsx)(P.ZP,{children:d||"This will reset your local branch to match the remote branch."})}),d?(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){h(null),me({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){return h("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,q.jsx)(M.Z,{mt:1,children:!we&&(0,q.jsxs)(q.Fragment,{children:[!S&&g&&(0,q.jsx)(P.ZP,{children:g}),S&&(0,q.jsx)(P.ZP,{preWrap:!0,danger:!0,children:S})]})})]})})}),[we,v,S,re,g,o,d,ge]),Ae=(0,c.useMemo)((function(){return(0,q.jsx)(O.Z,{lastMessage:ze,sendMessage:De})}),[ze,De]);return(0,q.jsxs)(N,{children:[(0,q.jsxs)(T,{children:[(0,q.jsx)(M.Z,{m:2,children:(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)(C.Z,{beforeIcon:(0,q.jsx)(z.Branch,{}),compact:!0,onChange:function(e){e.preventDefault(),oe({git_branch:{name:e.target.value,remote:"mage-repo"}})},placeholder:"Select a branch",value:t,children:null==ne?void 0:ne.map((function(e){var n=e.name;return(0,q.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,q.jsx)(M.Z,{ml:2}),(0,q.jsxs)(C.Z,{compact:!0,onChange:function(e){e.preventDefault(),m(e.target.value),Q(!1),D(null),a(null)},value:v,children:[(0,q.jsx)("option",{value:"",children:"Select an action"}),Object.entries(V).map((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1];return(0,q.jsx)("option",{value:t,children:r},t)}))]},"select_git_action")]})}),(0,q.jsx)(M.Z,{m:2,children:(0,q.jsxs)(j.ZP,{alignItems:"center",children:[(0,q.jsx)(P.ZP,{children:"UI"}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(_.Z,{checked:!!Y,monotone:!0,onCheck:function(){return Q((function(e){return!e}))}}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(P.ZP,{children:"Terminal"})]})})]}),(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)("div",{style:{width:"50%"},children:(0,q.jsx)(U,{children:"commit"===v?Se:(0,q.jsx)(q.Fragment,{children:null==ge||null===(n=ge.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,q.jsx)(P.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,q.jsx)("div",{style:{width:"50%"},children:Y?(0,q.jsx)(L,{children:Ae}):Ee})]})]})},$=t(65186),X=t(68562),K=t(48670),ee=t(63637),ne=t(89515),te=t(82359),re=t(26304),ie="12px 20px",le="1px",oe=(0,s.default)(p.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||D.Z.background).dashboard,";\n ")})),ae=s.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*A.iI,le,(function(e){return(e.theme.borders||D.Z.borders).darkLight}),I.n_,(function(e){return(e.theme.borders||D.Z.borders).darkLight})),se=s.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],ie,(function(e){return(e.theme.background||D.Z.background).panel})),ce=s.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*A.iI,le),ue=s.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],le),de=s.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],ie,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||D.Z.background).dashboard})),he=s.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),pe=(0,s.default)(de).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;padding-right:","px;"],1.25*A.iI),fe=["active","mountedCallback","time","timeZone"];function ve(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 me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ve(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function xe(e){var n=e.active,t=e.mountedCallback,r=e.time,i=e.timeZone,l=(0,re.Z)(e,fe),o=(0,c.useRef)(null);return(0,c.useEffect)((function(){null!=o&&o.current&&t(o.current.offsetHeight)}),[t]),(0,q.jsx)(oe,me(me({},l),{},{active:n,borderLess:!0,borderRadius:"".concat(I.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:o,transparent:!0,children:(0,q.jsx)(P.ZP,{inline:!0,monospace:!0,noWrapping:!0,small:!0,children:"".concat(r," ").concat(i)})}))}var je=(0,c.memo)(xe),ge=t(12468),be=t(63055),ye=t(72191),Ze=t(70320),Ce=t(79633),Me=t(3917),Fe=t(78419),Oe=t(53808);var Pe=t(23780);function we(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 He(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _e=[Me.Oh.UTC,Me.Oh.LOCAL];var ke=function(e){var n=e.disabled,t=e.disableTimezoneToggle,r=e.projectName,o=(0,c.useState)((0,Ze.qB)()),a=o[0],s=o[1],u=(0,c.useState)((0,Oe.U2)(Fe.kL,!1)),d=u[0],h=u[1],p=(0,c.useState)(!1),f=p[0],m=p[1],x=(0,c.useState)((0,Me.e)({includeSeconds:!0,timeZones:_e})),j=x[0],g=x[1],b=(0,c.useState)(0),Z=b[0],C=b[1],M=a?Me.Oh.LOCAL:Me.Oh.UTC,F=window.innerWidth<be.nc,O=(0,Pe.VI)(null,{},[],{uuid:"components/ServerTimeDropdown"}),w=(0,l.Z)(O,1)[0],H=(0,y.Db)(k.ZP.projects.useUpdate(r),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return w({errors:n,response:e})}})}}),z=(0,l.Z)(H,1)[0],D=(0,c.useCallback)((function(){m((function(e){return!e}))}),[]),I=(0,c.useCallback)((function(e){C(e)}),[]),S=(0,c.useCallback)((function(){var e=(0,Me.e)({includeSeconds:d,timeZones:_e});g((function(n){return n.size===e.size&&n.get(Me.Oh.UTC)===e.get(Me.Oh.UTC)?n:e}))}),[d]),E=[{checked:a,disabled:t,label:t?"Display local timezone (must be changed in platform preferences)":"Display local timezone (requires refresh)",onCheck:function(){var e=!a;s((0,Ze.hY)(e)),z({project:{features:(0,i.Z)({},te.d.LOCAL_TIMEZONE,e)}})},uuid:te.d.LOCAL_TIMEZONE},{checked:d,label:"Include seconds in current time",onCheck:function(){var e;h((e=!d,!!(0,Oe.uN)(Fe.kL,e)))},uuid:"current_time_seconds"}];return(0,c.useEffect)((function(){var e=setInterval((function(){S()}),1e3);return function(){return clearInterval(e)}}),[S]),(0,c.useEffect)((function(){S()}),[d,S]),j?(0,q.jsx)(v.Z,{onClickOutside:function(){return m(!1)},open:!0,children:(0,q.jsxs)("div",{style:{position:"relative"},children:[(0,q.jsx)(je,{active:f,disabled:F||n,mountedCallback:I,onClick:D,time:j.get(M),timeZone:(0,Me.WT)(M)}),!F&&f&&(0,q.jsxs)(ae,{top:Z,children:[(0,q.jsx)(se,{children:(0,q.jsx)(P.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,q.jsx)(ce,{children:_e.map((function(e){return(0,q.jsxs)(ue,{children:[(0,q.jsx)(de,{children:(0,q.jsx)(P.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===Me.Oh.LOCAL?" - ".concat((0,Me.WT)(e)):"")})}),(0,q.jsxs)(de,{flexDirection:"column",flexGrow:3,children:[(0,q.jsx)(P.ZP,{bold:!0,center:!0,color:Ce.J$,largeLg:!0,children:j.get(e)}),(0,q.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:e===Me.Oh.UTC?"Universal Time":Me.mi[e]})]})]},e)}))}),(0,q.jsx)(he,{children:E.map((function(e){return(0,q.jsxs)(pe,{children:[(0,q.jsx)(_.Z,{checked:e.checked,compact:!0,disabled:e.disabled,onCheck:e.onCheck,purpleBackground:!e.disabled}),(0,q.jsx)(P.ZP,{children:e.label}),e.uuid===te.d.LOCAL_TIMEZONE&&(0,q.jsx)(ge.Z,He(He({},Ze.EB),{},{appearAbove:!0,appearBefore:!0,size:ye.bL}))]},e.label)}))})]})]})}):null},ze=t(59457),De=t(77417),Ie=t(42122);var Se=function(e){var n,t=e||{operation:null,pageType:null,pageUUID:null,resource:null,resourceID:null,resourceParent:null,resourceParentID:null,useProjectData:null},r=t.operation,i=t.pageType,l=t.pageUUID,o=t.resource,a=t.resourceID,s=t.resourceParent,d=t.resourceParentID,h=t.useProjectData,p=(0,De.Z)({pauseFetch:!!h}),f=(0,c.useMemo)((function(){return null!=h?h:p}),[h,p])||{featureEnabled:null,featureUUIDs:null,project:null},v=f.featureEnabled,m=f.featureUUIDs,x=f.project,j=(0,c.useMemo)((function(){return v&&m&&x&&(null==v?void 0:v(null==m?void 0:m.CUSTOM_DESIGN))}),[v,m,x]),g=(0,u.useRouter)(),b=null==g?void 0:g.asPath,y=null==g||null===(n=g.pathname)||void 0===n?void 0:n.replace(/^\/{1}/i,""),Z=null==g?void 0:g.query,C=(0,ze.Z)(k.ZP.custom_designs.detail,encodeURIComponent(y),(0,Ie.hB)({operation:r,page_path:encodeURIComponent(b),page_query:Z?JSON.stringify(Z||""):null,page_type:i,page_uuid:l,resource:o,resource_id:a,resource_parent:s,resource_parent_id:d}),{},{condition:function(){return j},delay:5e3}),M=C.data,F=C.mutate;return{design:(0,c.useMemo)((function(){return(null==M?void 0:M.custom_design)||[]}),[M]),fetchDesign:F,router:g,routerDetails:{asPath:b,pathname:y,query:Z}}},Ee=t(46684),Ae=t(16682),Te=t(68804),Le=s.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px ","px;&:hover{cursor:pointer;","}",""],.5*A.iI,1.5*A.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||D.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||D.Z.interactive).hoverBackground,";\n ")})),Ne=t(95363),Ue=t(66472),Be=t(69419),Re=t(89538);function We(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 Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?We(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var qe=function(e){var n,t=e.breadcrumbs,o=e.hideActions,b=e.menuItems,y=e.project,Z=e.version,C=(0,Pe.VI)(null,{},[],{uuid:"shared/Header"}),F=(0,l.Z)(C,1)[0],O=(0,c.useContext)(s.ThemeContext),w=(0,u.useRouter)(),H=(0,G.PR)(null==w?void 0:w.basePath),_=(0,c.useState)(null),D=_[0],I=_[1],S=(0,c.useState)(!1),E=S[0],T=S[1],L=(0,c.useState)(!1),N=L[0],U=L[1],B=(0,c.useState)(null),R=B[0],W=B[1],Y=(0,c.useState)(!1),J=Y[0],V=Y[1],re=(0,c.useState)(null),ie=re[0],le=re[1],oe=(0,c.useRef)(null),ae=(0,c.useRef)(null),se=(0,c.useRef)(null),ce=d.Z.isLoggedIn(),ue=(0,ze.Z)(k.ZP.git_branches.detail,"test",{_format:"with_basic_details"},{revalidateOnFocus:!1},{pauseFetch:(0,G.YB)()&&!ce},{delay:11e3}),de=ue.data,he=ue.mutate,pe=(0,c.useMemo)((function(){return(null==de?void 0:de.git_branch)||{}}),[de]),fe=pe.is_git_integration_enabled,ve=pe.name,me=Se().design,xe=(0,De.Z)({showError:o?null:F}),je=xe.featureEnabled,ge=xe.featureUUIDs,be=xe.isLoadingProject,ye=xe.isLoadingUpdate,Me=xe.project,Fe=xe.rootProject,Oe=xe.updateProject,we=(0,c.useMemo)((function(){return y||Me}),[Me,y]),He=(0,c.useMemo)((function(){return Z||(null==we?void 0:we.version)}),[we,Z]),_e=(0,c.useMemo)((function(){return Ae.WH.CLOSED===D||Ae.WH.OPEN===D||(null==je?void 0:je(null==ge?void 0:ge.COMMAND_CENTER))}),[D,je,ge]),We=!(0,Ie.Qr)(null==we?void 0:we.features_override);ae.current=we,(0,c.useCallback)((function(){_e?(0,Ue.WJ)():(T(!0),Oe({features:Ge(Ge({},(null==we?void 0:we.features)||{}),{},(0,i.Z)({},null==ge?void 0:ge.COMMAND_CENTER,!0))}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;T(!1),F({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var r=new CustomEvent(Te.YS.COMMAND_CENTER_ENABLED);window.dispatchEvent(r)}})))}),[_e,null==ge?void 0:ge.COMMAND_CENTER,null==we?void 0:we.features,F,Oe]);var qe=[];if(Fe&&qe.push({label:function(){return null==Fe?void 0:Fe.name},linkProps:{href:"/"}}),we){var Ye={label:function(){return null==we?void 0:we.name}};Fe?(Ye.loading=ye&&!E,Ye.options=Object.keys((null==Fe?void 0:Fe.projects)||{}).map((function(e){return{onClick:function(){Oe({activate_project:e}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;F({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var r,i,l,o=!(null==e||null===(r=e.data)||void 0===r||null===(i=r.project)||void 0===i||null===(l=i.features)||void 0===l||!l.display_local_timezone);(0,Ze.hY)(o),window.location.reload()}}))},selected:e===(null==we?void 0:we.name),uuid:e}}))):Ye.linkProps={href:"/"},qe.push(Ye)}else be||o||qe.push({bold:!0,danger:!0,label:function(){return"Error loading project configuration"}});var Je=(0,c.useMemo)((function(){return[].concat(qe,(0,r.Z)(t||[]))}),[qe,t,we]),Ve=w.query.pipeline,Qe=(we||{}).latest_version,$e=(0,c.useState)(null),Xe=$e[0],Ke=($e[1],(0,c.useMemo)((function(){var e,n,t=Ee.y7,r=(0,q.jsx)($.Z,{height:Ee.y7});if(null!=me&&null!==(e=me.components)&&void 0!==e&&null!==(n=e.header)&&void 0!==n&&n.media){var i,l,o=null==me||null===(i=me.components)||void 0===i||null===(l=i.header)||void 0===l?void 0:l.media;if(null!==Xe){var s=((null==Xe?void 0:Xe.width)||1)/((null==Xe?void 0:Xe.height)||1);t=Ee.sQ,r=(0,q.jsx)(Ee.XD,{height:Ee.sQ,width:Ee.sQ*s,url:(null==o?void 0:o.url)||(null==o?void 0:o.file_path)})}}return(0,q.jsx)(a(),{as:"/",href:"/",passHref:!0,children:(0,q.jsx)(K.Z,{block:!0,height:t,noHoverUnderline:!0,noOutline:!0,children:r})})}),[Xe,me])),en=o?[]:[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"},{label:function(){return"Light mode"},linkProps:{href:"https://www.mage.ai/build?ref=oss",openNewWindow:!0},tag:"Pro",uuid:"light_mode"}];(0,G.YB)()&&en.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){k.ZP.sessions.updateAsyncServer(null,1).then((function(){(0,Be.nL)("/sign-in")})).catch((function(){(0,Be.nL)("/")}))}),null==w?void 0:w.basePath)},uuid:"sign_out"});var nn=(0,Re.dd)((function(){return(0,q.jsx)(Q,{branch:ve,fetchBranch:he})}),{},[ve,he],{background:!0,uuid:"git_actions"}),tn=(0,l.Z)(nn,2),rn=tn[0],ln=(tn[1],(0,c.useMemo)((function(){return(null==ve?void 0:ve.length)>=21?"".concat(ve.slice(0,21),"..."):ve}),[ve])),on=(0,c.useMemo)((function(){return!(!H||null==H||!H.avatar)&&!/[A-Za-z0-9]+/.exec((null==H?void 0:H.avatar)||"")}),[H]),an=(0,c.useMemo)((function(){return!(!H||null==H||!H.avatar)&&!!/[A-Za-z0-9]+/.exec((null==H?void 0:H.avatar)||"")}),[H]),sn=(0,c.useMemo)((function(){var e;if(!H||null==H||!H.avatar)return(0,q.jsx)(ee.Z,{});var n={color:null==O||null===(e=O.content)||void 0===e?void 0:e.active,fontFamily:Ne.v$};return an?(n.fontSize=2*A.iI,n.lineHeight="".concat(2*A.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*A.iI,(0,q.jsx)("div",{style:n,children:null==H?void 0:H.avatar})}),[an,H]);return(0,c.useEffect)((function(){var e=function(e){var n,t,r=e.detail;null!=r&&r.state&&(I(null==r?void 0:r.state),Ae.WH.MOUNTED===(null==r?void 0:r.state)&&(null!=ae&&null!==(n=ae.current)&&void 0!==n&&null!==(t=n.features)&&void 0!==t&&t[te.d.COMMAND_CENTER]||setTimeout((function(){(0,Ue.WJ)(),T(!1)}),1)))};return window.addEventListener(Te.Mt,e),function(){window.removeEventListener(Te.Mt,e)}}),[]),(0,q.jsx)(Ee.I5,{children:(0,q.jsx)(m.Z,{children:(0,q.jsxs)(j.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,q.jsxs)(x.Z,{alignItems:"center",children:[Ke,(0,q.jsx)(h.Z,{breadcrumbs:Je})]}),(0,q.jsxs)(x.Z,{alignItems:"center",children:[fe&&ve&&(0,q.jsx)(M.Z,{mr:1,children:(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:rn,sameColorAsText:!0,title:ve,uuid:"Header/GitActions",children:(0,q.jsxs)(j.ZP,{alignItems:"center",children:[(0,q.jsx)(z.BranchAlt,{size:1.5*A.iI}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(P.ZP,{monospace:!0,noWrapping:!0,small:!0,children:ln})]})})}),Qe&&He&&Qe!==He&&(0,q.jsx)(p.ZP,{backgroundColor:Ce.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(Qe),children:(0,q.jsx)(P.ZP,{black:!0,bold:!0,children:"Update"})}),He&&void 0!==He&&(0,q.jsx)(M.Z,{px:1,children:(0,q.jsx)(K.Z,{href:"https://www.mage.ai/changelog",monospace:!0,noWrapping:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(He)})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(ke,{disableTimezoneToggle:We,disabled:o,projectName:null==we?void 0:we.name})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(X.ZP,{beforeElement:(0,q.jsx)(z.Slack,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://cloud.mage.ai/sign-up?ref=oss",href:"https://cloud.mage.ai/sign-up?ref=oss"},openNewTab:!0,noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,afterElement:(0,q.jsx)(z.MageProLetters,{size:24}),uuid:"Header/pro",children:"Try"})}),b&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{ml:2}),(0,q.jsx)(v.Z,{onClickOutside:function(){return W(null)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(j.ZP,{children:[(0,q.jsx)(Le,{highlighted:0===R,onClick:function(){return W((function(e){return 0===e?null:0}))},onMouseEnter:function(){return W((function(e){return null!==e?0:null}))},ref:oe,children:(0,q.jsx)(P.ZP,{children:"Menu"})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:b,onClickCallback:function(){return W(null)},open:0===R,parentRef:oe,rightOffset:0,setConfirmationAction:le,setConfirmationDialogueOpen:V,uuid:"PipelineDetail/Header/menu"})]})}),(0,q.jsx)(v.Z,{onClickOutside:function(){return V(!1)},open:J,children:(0,q.jsx)(ne.Z,{danger:!0,onCancel:function(){return V(!1)},onClick:ie,right:16*A.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(Ve,"?"),width:40*A.iI})})]}),(ce||!(0,G.YB)())&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(v.Z,{onClickOutside:function(){return U(!1)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(j.ZP,{alignItems:"flex-end",flexDirection:"column",children:[(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,inline:!0,noBackground:!0,noHoverUnderline:!0,onClick:function(){return U(!0)},ref:se,uuid:"Header/menu",children:on&&(null==H||null===(n=H.avatar)||void 0===n?void 0:n.length)>=2?sn:(0,q.jsx)(f.Z,{color:Ce.Jm,size:4*A.iI,children:sn})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:en,onClickCallback:function(){return U(!1)},open:N,parentRef:se,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},63637:function(e,n,t){var r=t(9518),i=t(28598),l=r.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,r=e.viewBox,o=void 0===r?"0 0 20 20":r;return(0,i.jsxs)(l,{height:t,viewBox:o,width:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,i.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,i.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,i.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,i.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_297_42814",children:(0,i.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}}}]);
|