sqlmesh 0.195.1.dev2__py3-none-any.whl → 0.195.1.dev4__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.
- sqlmesh/_version.py +2 -2
- sqlmesh/lsp/main.py +106 -35
- {sqlmesh-0.195.1.dev2.dist-info → sqlmesh-0.195.1.dev4.dist-info}/METADATA +1 -1
- {sqlmesh-0.195.1.dev2.dist-info → sqlmesh-0.195.1.dev4.dist-info}/RECORD +51 -51
- web/client/dist/assets/{Audits-sYYNn2gO.js → Audits-DrNQaTQA.js} +1 -1
- web/client/dist/assets/{Banner-CIUVdc-z.js → Banner-DsG8aGIL.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-uQGmwNOL.js → ChevronDownIcon-CpQjfO01.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-B65l6fcy.js → ChevronRightIcon-B-9lnqGr.js} +1 -1
- web/client/dist/assets/{Content-CPscdsPQ.js → Content-CSMzf1cU.js} +1 -1
- web/client/dist/assets/{Content-CAmZChZo.js → Content-vfltDlhj.js} +1 -1
- web/client/dist/assets/{Data-CexnpfbT.js → Data-k1Dz6qdS.js} +1 -1
- web/client/dist/assets/{DataCatalog-zqv8aDld.js → DataCatalog-DlbWZyBp.js} +1 -1
- web/client/dist/assets/{Editor-EsVsPMR8.js → Editor--iBTA9xH.js} +1 -1
- web/client/dist/assets/{Editor-BPOAPXLv.js → Editor-C2pcRDlN.js} +1 -1
- web/client/dist/assets/{Errors-0iATm2JG.js → Errors-CQW3lhsM.js} +1 -1
- web/client/dist/assets/{FileExplorer-PTjWgl3B.js → FileExplorer-IAIPoTxM.js} +1 -1
- web/client/dist/assets/{Footer-MSdMRGiG.js → Footer-D77vCxKH.js} +1 -1
- web/client/dist/assets/{Header-SKoNqU5i.js → Header-Ccb81kaP.js} +1 -1
- web/client/dist/assets/{Input-Cl0rlyUj.js → Input-D_Fp4W_B.js} +1 -1
- web/client/dist/assets/Lineage-BHLfUAmC.js +1 -0
- web/client/dist/assets/{ListboxShow-mv_m9Xqu.js → ListboxShow-BIPQ-cqE.js} +1 -1
- web/client/dist/assets/{ModelLineage-JG9oPMA2.js → ModelLineage-BrTZ2lm3.js} +1 -1
- web/client/dist/assets/{Models-Bq6zaOiV.js → Models-B6cHeIlA.js} +1 -1
- web/client/dist/assets/{Page-D8EIuqN3.js → Page-S1ykkm5T.js} +1 -1
- web/client/dist/assets/{Plan-Cr31O86c.js → Plan-DCD4m0nD.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-BA3W9uiU.js → PlusCircleIcon-C40sAC-m.js} +1 -1
- web/client/dist/assets/{ReportErrors-CGhLWJSn.js → ReportErrors-CxqgDcYY.js} +1 -1
- web/client/dist/assets/{Root-Cm9f5yLR.js → Root-DtUrFfE_.js} +1 -1
- web/client/dist/assets/{SearchList-KwGRUK3b.js → SearchList-DoRflby9.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-Fdveg7Dn.js → SelectEnvironment-equ86mF1.js} +1 -1
- web/client/dist/assets/{SourceList-CrxTdTD0.js → SourceList-DT-sBCAQ.js} +1 -1
- web/client/dist/assets/{SourceListItem-CbL1dN69.js → SourceListItem-MFS9vpg9.js} +1 -1
- web/client/dist/assets/{SplitPane-Di60F7Gk.js → SplitPane-D2cB3Qkv.js} +1 -1
- web/client/dist/assets/{Tests-Cjw3dIQ9.js → Tests-Duzk1K8j.js} +1 -1
- web/client/dist/assets/{Welcome-Cwxy-j_l.js → Welcome-BgAHQe0m.js} +1 -1
- web/client/dist/assets/{context-DKh7qNl9.js → context-CXV8eAaM.js} +1 -1
- web/client/dist/assets/{context-MffevtK7.js → context-g_ECqgnp.js} +1 -1
- web/client/dist/assets/{editor-BYglYCad.js → editor-BddPKujl.js} +1 -1
- web/client/dist/assets/{file-BATQOjrJ.js → file-DUr_Gx7F.js} +1 -1
- web/client/dist/assets/{floating-ui.react-dom-DHc129jH.js → floating-ui.react-dom-DTKAUIBI.js} +1 -1
- web/client/dist/assets/{help-iFVHtKo0.js → help-LQUMs6nO.js} +1 -1
- web/client/dist/assets/{index-DA7iL93d.js → index-BsS6H8XQ.js} +1 -1
- web/client/dist/assets/{index-DZ2vKQ1l.js → index-DvxjegO0.js} +2 -2
- web/client/dist/assets/{plan-8UAMXVjx.js → plan-DS237yuz.js} +1 -1
- web/client/dist/assets/{popover-DE6_QtGZ.js → popover-CiiY17g7.js} +1 -1
- web/client/dist/assets/{project-CfZrmqZ7.js → project-DUHOhQT2.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Lineage-VxUfloHd.js +0 -1
- {sqlmesh-0.195.1.dev2.dist-info → sqlmesh-0.195.1.dev4.dist-info}/WHEEL +0 -0
- {sqlmesh-0.195.1.dev2.dist-info → sqlmesh-0.195.1.dev4.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.195.1.dev2.dist-info → sqlmesh-0.195.1.dev4.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.195.1.dev2.dist-info → sqlmesh-0.195.1.dev4.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.195.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 195, 1, '
|
|
20
|
+
__version__ = version = '0.195.1.dev4'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 195, 1, 'dev4')
|
sqlmesh/lsp/main.py
CHANGED
|
@@ -56,6 +56,33 @@ from sqlmesh.lsp.rename import prepare_rename, rename_symbol, get_document_highl
|
|
|
56
56
|
from sqlmesh.lsp.uri import URI
|
|
57
57
|
from web.server.api.endpoints.lineage import column_lineage, model_lineage
|
|
58
58
|
from web.server.api.endpoints.models import get_models
|
|
59
|
+
from typing import Union
|
|
60
|
+
from dataclasses import dataclass
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@dataclass
|
|
64
|
+
class NoContext:
|
|
65
|
+
"""State when no context has been attempted to load."""
|
|
66
|
+
|
|
67
|
+
pass
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@dataclass
|
|
71
|
+
class ContextLoaded:
|
|
72
|
+
"""State when context has been successfully loaded."""
|
|
73
|
+
|
|
74
|
+
lsp_context: LSPContext
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@dataclass
|
|
78
|
+
class ContextFailed:
|
|
79
|
+
"""State when context failed to load with an error message."""
|
|
80
|
+
|
|
81
|
+
error_message: str
|
|
82
|
+
context: t.Optional[Context] = None
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
ContextState = Union[NoContext, ContextLoaded, ContextFailed]
|
|
59
86
|
|
|
60
87
|
|
|
61
88
|
class SQLMeshLanguageServer:
|
|
@@ -72,7 +99,7 @@ class SQLMeshLanguageServer:
|
|
|
72
99
|
"""
|
|
73
100
|
self.server = LanguageServer(server_name, version)
|
|
74
101
|
self.context_class = context_class
|
|
75
|
-
self.
|
|
102
|
+
self.context_state: ContextState = NoContext()
|
|
76
103
|
self.workspace_folders: t.List[Path] = []
|
|
77
104
|
|
|
78
105
|
self.has_raised_loading_error: bool = False
|
|
@@ -257,16 +284,53 @@ class SQLMeshLanguageServer:
|
|
|
257
284
|
@self.server.feature(types.TEXT_DOCUMENT_DID_SAVE)
|
|
258
285
|
def did_save(ls: LanguageServer, params: types.DidSaveTextDocumentParams) -> None:
|
|
259
286
|
uri = URI(params.text_document.uri)
|
|
260
|
-
if self.
|
|
287
|
+
if isinstance(self.context_state, NoContext):
|
|
261
288
|
return
|
|
262
289
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
290
|
+
if isinstance(self.context_state, ContextFailed):
|
|
291
|
+
if self.context_state.context:
|
|
292
|
+
try:
|
|
293
|
+
self.context_state.context.load()
|
|
294
|
+
self.context_state = ContextLoaded(
|
|
295
|
+
lsp_context=LSPContext(self.context_state.context)
|
|
296
|
+
)
|
|
297
|
+
except Exception as e:
|
|
298
|
+
ls.log_trace(f"Error loading context: {e}")
|
|
299
|
+
if not isinstance(self.context_state, ContextFailed):
|
|
300
|
+
raise Exception("Context state should be failed")
|
|
301
|
+
self.context_state = ContextFailed(
|
|
302
|
+
error_message=str(e), context=self.context_state.context
|
|
303
|
+
)
|
|
304
|
+
return
|
|
305
|
+
else:
|
|
306
|
+
# If there's no context, try to create one from scratch
|
|
307
|
+
try:
|
|
308
|
+
self._ensure_context_for_document(uri)
|
|
309
|
+
# If successful, context_state will be ContextLoaded
|
|
310
|
+
if isinstance(self.context_state, ContextLoaded):
|
|
311
|
+
ls.show_message(
|
|
312
|
+
"Successfully loaded SQLMesh context",
|
|
313
|
+
types.MessageType.Info,
|
|
314
|
+
)
|
|
315
|
+
except Exception as e:
|
|
316
|
+
ls.log_trace(f"Still cannot load context: {e}")
|
|
317
|
+
return
|
|
318
|
+
|
|
319
|
+
# Reload the context if was successfully
|
|
320
|
+
try:
|
|
321
|
+
context = self.context_state.lsp_context.context
|
|
322
|
+
context.load()
|
|
323
|
+
self.context_state = ContextLoaded(lsp_context=LSPContext(context))
|
|
324
|
+
except Exception as e:
|
|
325
|
+
ls.log_trace(f"Error loading context: {e}")
|
|
326
|
+
self.context_state = ContextFailed(
|
|
327
|
+
error_message=str(e), context=self.context_state.lsp_context.context
|
|
328
|
+
)
|
|
329
|
+
return
|
|
266
330
|
|
|
267
331
|
# Only publish diagnostics if client doesn't support pull diagnostics
|
|
268
332
|
if not self.client_supports_pull_diagnostics:
|
|
269
|
-
diagnostics = self.lsp_context.lint_model(uri)
|
|
333
|
+
diagnostics = self.context_state.lsp_context.lint_model(uri)
|
|
270
334
|
ls.publish_diagnostics(
|
|
271
335
|
params.text_document.uri,
|
|
272
336
|
SQLMeshLanguageServer._diagnostics_to_lsp_diagnostics(diagnostics),
|
|
@@ -443,11 +507,8 @@ class SQLMeshLanguageServer:
|
|
|
443
507
|
"""Prepare for rename operation by checking if the symbol can be renamed."""
|
|
444
508
|
try:
|
|
445
509
|
uri = URI(params.text_document.uri)
|
|
446
|
-
self.
|
|
447
|
-
|
|
448
|
-
raise RuntimeError(f"No context found for document: {uri}")
|
|
449
|
-
|
|
450
|
-
result = prepare_rename(self.lsp_context, uri, params.position)
|
|
510
|
+
context = self._context_get_or_load(uri)
|
|
511
|
+
result = prepare_rename(context, uri, params.position)
|
|
451
512
|
return result
|
|
452
513
|
except Exception as e:
|
|
453
514
|
ls.log_trace(f"Error preparing rename: {e}")
|
|
@@ -460,13 +521,8 @@ class SQLMeshLanguageServer:
|
|
|
460
521
|
"""Perform rename operation on the symbol at the given position."""
|
|
461
522
|
try:
|
|
462
523
|
uri = URI(params.text_document.uri)
|
|
463
|
-
self.
|
|
464
|
-
|
|
465
|
-
raise RuntimeError(f"No context found for document: {uri}")
|
|
466
|
-
|
|
467
|
-
workspace_edit = rename_symbol(
|
|
468
|
-
self.lsp_context, uri, params.position, params.new_name
|
|
469
|
-
)
|
|
524
|
+
context = self._context_get_or_load(uri)
|
|
525
|
+
workspace_edit = rename_symbol(context, uri, params.position, params.new_name)
|
|
470
526
|
return workspace_edit
|
|
471
527
|
except Exception as e:
|
|
472
528
|
ls.show_message(f"Error performing rename: {e}", types.MessageType.Error)
|
|
@@ -479,11 +535,8 @@ class SQLMeshLanguageServer:
|
|
|
479
535
|
"""Highlight all occurrences of the symbol at the given position."""
|
|
480
536
|
try:
|
|
481
537
|
uri = URI(params.text_document.uri)
|
|
482
|
-
self.
|
|
483
|
-
|
|
484
|
-
raise RuntimeError(f"No context found for document: {uri}")
|
|
485
|
-
|
|
486
|
-
highlights = get_document_highlights(self.lsp_context, uri, params.position)
|
|
538
|
+
context = self._context_get_or_load(uri)
|
|
539
|
+
highlights = get_document_highlights(context, uri, params.position)
|
|
487
540
|
return highlights
|
|
488
541
|
except Exception as e:
|
|
489
542
|
ls.log_trace(f"Error getting document highlights: {e}")
|
|
@@ -670,11 +723,13 @@ class SQLMeshLanguageServer:
|
|
|
670
723
|
return [], 0
|
|
671
724
|
|
|
672
725
|
def _context_get_or_load(self, document_uri: t.Optional[URI] = None) -> LSPContext:
|
|
673
|
-
if self.
|
|
726
|
+
if isinstance(self.context_state, ContextFailed):
|
|
727
|
+
raise RuntimeError(self.context_state.error_message)
|
|
728
|
+
if isinstance(self.context_state, NoContext):
|
|
674
729
|
self._ensure_context_for_document(document_uri)
|
|
675
|
-
if self.
|
|
676
|
-
raise RuntimeError("
|
|
677
|
-
return self.lsp_context
|
|
730
|
+
if not isinstance(self.context_state, ContextLoaded):
|
|
731
|
+
raise RuntimeError("Context is not loaded")
|
|
732
|
+
return self.context_state.lsp_context
|
|
678
733
|
|
|
679
734
|
def _ensure_context_for_document(
|
|
680
735
|
self,
|
|
@@ -692,10 +747,10 @@ class SQLMeshLanguageServer:
|
|
|
692
747
|
self._ensure_context_in_folder(document_folder)
|
|
693
748
|
return
|
|
694
749
|
|
|
695
|
-
|
|
750
|
+
self._ensure_context_in_folder()
|
|
696
751
|
|
|
697
752
|
def _ensure_context_in_folder(self, folder_path: t.Optional[Path] = None) -> None:
|
|
698
|
-
if self.
|
|
753
|
+
if not isinstance(self.context_state, NoContext):
|
|
699
754
|
return
|
|
700
755
|
|
|
701
756
|
# If not found in the provided folder, search through all workspace folders
|
|
@@ -729,7 +784,7 @@ class SQLMeshLanguageServer:
|
|
|
729
784
|
def _create_lsp_context(self, paths: t.List[Path]) -> t.Optional[LSPContext]:
|
|
730
785
|
"""Create a new LSPContext instance using the configured context class.
|
|
731
786
|
|
|
732
|
-
On success, sets self.
|
|
787
|
+
On success, sets self.context_state to ContextLoaded and returns the created context.
|
|
733
788
|
|
|
734
789
|
Args:
|
|
735
790
|
paths: List of paths to pass to the context constructor
|
|
@@ -738,14 +793,22 @@ class SQLMeshLanguageServer:
|
|
|
738
793
|
A new LSPContext instance wrapping the created context, or None if creation fails
|
|
739
794
|
"""
|
|
740
795
|
try:
|
|
741
|
-
if self.
|
|
796
|
+
if isinstance(self.context_state, NoContext):
|
|
742
797
|
context = self.context_class(paths=paths)
|
|
743
798
|
loaded_sqlmesh_message(self.server, paths[0])
|
|
799
|
+
elif isinstance(self.context_state, ContextFailed):
|
|
800
|
+
if self.context_state.context:
|
|
801
|
+
context = self.context_state.context
|
|
802
|
+
context.load()
|
|
803
|
+
else:
|
|
804
|
+
# If there's no context (initial creation failed), try creating again
|
|
805
|
+
context = self.context_class(paths=paths)
|
|
806
|
+
loaded_sqlmesh_message(self.server, paths[0])
|
|
744
807
|
else:
|
|
745
|
-
self.lsp_context.context
|
|
746
|
-
context
|
|
747
|
-
self.
|
|
748
|
-
return self.lsp_context
|
|
808
|
+
context = self.context_state.lsp_context.context
|
|
809
|
+
context.load()
|
|
810
|
+
self.context_state = ContextLoaded(lsp_context=LSPContext(context))
|
|
811
|
+
return self.context_state.lsp_context
|
|
749
812
|
except Exception as e:
|
|
750
813
|
# Only show the error message once
|
|
751
814
|
if not self.has_raised_loading_error:
|
|
@@ -756,6 +819,14 @@ class SQLMeshLanguageServer:
|
|
|
756
819
|
self.has_raised_loading_error = True
|
|
757
820
|
|
|
758
821
|
self.server.log_trace(f"Error creating context: {e}")
|
|
822
|
+
# Store the error in context state so subsequent requests show the actual error
|
|
823
|
+
# Try to preserve any partially loaded context if it exists
|
|
824
|
+
context = None
|
|
825
|
+
if isinstance(self.context_state, ContextLoaded):
|
|
826
|
+
context = self.context_state.lsp_context.context
|
|
827
|
+
elif isinstance(self.context_state, ContextFailed) and self.context_state.context:
|
|
828
|
+
context = self.context_state.context
|
|
829
|
+
self.context_state = ContextFailed(error_message=str(e), context=context)
|
|
759
830
|
return None
|
|
760
831
|
|
|
761
832
|
@staticmethod
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=W2g-e2AVI33a-naNGAiuozPk-wN4pGYR9p2budZemfY,528
|
|
3
3
|
sqlmesh/magics.py,sha256=d7udR_sieKWzp_YXNFPA2O173xDCqk6u9CIKB7Skb2c,41206
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -172,7 +172,7 @@ sqlmesh/lsp/custom.py,sha256=IJ70li8d5RbOFDrjHfsI2UNOiOp-WB22lrgpdJ7lVSg,2942
|
|
|
172
172
|
sqlmesh/lsp/description.py,sha256=PjguwyVw5YeYSgT0JMhkf5U1Jry-sDPLvQ2caIR9JPQ,856
|
|
173
173
|
sqlmesh/lsp/helpers.py,sha256=EFc1u3-b7kSv5-tNwmKUDxId72RCLDBnN2lLTgRSzzQ,1020
|
|
174
174
|
sqlmesh/lsp/hints.py,sha256=j-blccBUil94yRoDjWfkSM0HqMmsKD6hP2TaWdWWVk4,3734
|
|
175
|
-
sqlmesh/lsp/main.py,sha256=
|
|
175
|
+
sqlmesh/lsp/main.py,sha256=jty883u2BDAYBcDr1Za_2imd9MI9yJObSHaS9BNye_4,39553
|
|
176
176
|
sqlmesh/lsp/reference.py,sha256=NyfpK12TouDuy5-G7KOhvifkJItMfrakKwnMoU6SiVk,32088
|
|
177
177
|
sqlmesh/lsp/rename.py,sha256=399v1vyVRHHxvbCHVcuS4Pl8K2N-Z60JdZ6e1znOI4s,4397
|
|
178
178
|
sqlmesh/lsp/uri.py,sha256=mvSLbZGmMTHPpliThOtVWiFcHnfJzp1w39q9l-xD2SI,802
|
|
@@ -283,53 +283,53 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
283
283
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
284
284
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
285
285
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
286
|
-
sqlmesh-0.195.1.
|
|
286
|
+
sqlmesh-0.195.1.dev4.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
287
287
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
288
|
-
web/client/dist/index.html,sha256=
|
|
289
|
-
web/client/dist/assets/Audits-
|
|
290
|
-
web/client/dist/assets/Banner-
|
|
291
|
-
web/client/dist/assets/ChevronDownIcon-
|
|
292
|
-
web/client/dist/assets/ChevronRightIcon-
|
|
293
|
-
web/client/dist/assets/Content-
|
|
294
|
-
web/client/dist/assets/Content-
|
|
295
|
-
web/client/dist/assets/Data-
|
|
296
|
-
web/client/dist/assets/DataCatalog-
|
|
297
|
-
web/client/dist/assets/Editor
|
|
298
|
-
web/client/dist/assets/Editor-
|
|
299
|
-
web/client/dist/assets/Errors-
|
|
300
|
-
web/client/dist/assets/FileExplorer-
|
|
301
|
-
web/client/dist/assets/Footer-
|
|
302
|
-
web/client/dist/assets/Header-
|
|
303
|
-
web/client/dist/assets/Input-
|
|
304
|
-
web/client/dist/assets/Lineage-
|
|
305
|
-
web/client/dist/assets/ListboxShow-
|
|
306
|
-
web/client/dist/assets/ModelLineage-
|
|
307
|
-
web/client/dist/assets/Models-
|
|
308
|
-
web/client/dist/assets/Page-
|
|
309
|
-
web/client/dist/assets/Plan-
|
|
310
|
-
web/client/dist/assets/PlusCircleIcon-
|
|
311
|
-
web/client/dist/assets/ReportErrors-
|
|
312
|
-
web/client/dist/assets/Root-
|
|
313
|
-
web/client/dist/assets/SearchList-
|
|
314
|
-
web/client/dist/assets/SelectEnvironment-
|
|
315
|
-
web/client/dist/assets/SourceList-
|
|
316
|
-
web/client/dist/assets/SourceListItem-
|
|
317
|
-
web/client/dist/assets/SplitPane-
|
|
318
|
-
web/client/dist/assets/Tests-
|
|
319
|
-
web/client/dist/assets/Welcome-
|
|
288
|
+
web/client/dist/index.html,sha256=drXwzSCEVDTMfaIwzJYjnT8Xk4c-Y4wNJz-CflUa_vY,5472
|
|
289
|
+
web/client/dist/assets/Audits-DrNQaTQA.js,sha256=E8JF632bsRUm6LGtgXlyHrJOYQe5VW2CgRZPaZNKvgg,1041
|
|
290
|
+
web/client/dist/assets/Banner-DsG8aGIL.js,sha256=B8J1i6H33J5zFZpN2hW-cWNeZa-lwa6hTDVHZLFGepg,1549
|
|
291
|
+
web/client/dist/assets/ChevronDownIcon-CpQjfO01.js,sha256=ruKkBHPI7NYM-Mv0BPUxLR7gFFfkIkuSscPrBBLF1Z4,553
|
|
292
|
+
web/client/dist/assets/ChevronRightIcon-B-9lnqGr.js,sha256=4uR7m3cGipngmPVt9QuTRrV25EvuxycJJCdTSmxQfbA,553
|
|
293
|
+
web/client/dist/assets/Content-CSMzf1cU.js,sha256=NsXU2HQp2btqlAe1Ky-GfDtJGXzXmWdBFXd1i7DusxM,37525
|
|
294
|
+
web/client/dist/assets/Content-vfltDlhj.js,sha256=bpNUHByRIVb6N-sgteaqs6DAmKVdUTYu1-e4kWJeJXg,803
|
|
295
|
+
web/client/dist/assets/Data-k1Dz6qdS.js,sha256=IU5oY5w2tnGERpb2U08XJOvO0UDA48VtOeeifCMitR4,984
|
|
296
|
+
web/client/dist/assets/DataCatalog-DlbWZyBp.js,sha256=0_lkynGdxmBSb5qGJDLQYW6qGZpraRKFhD2wfKt3HYw,122486
|
|
297
|
+
web/client/dist/assets/Editor--iBTA9xH.js,sha256=PZ30z73dR4md9NVwLOuDjYvxWkEocY7o0qSNbzhdbDI,1490
|
|
298
|
+
web/client/dist/assets/Editor-C2pcRDlN.js,sha256=c7gLfBmYRsrSPL3GN8kE0hqosL82M0p7zUcz0aihIT4,43614
|
|
299
|
+
web/client/dist/assets/Errors-CQW3lhsM.js,sha256=sBPlsJJ7kg7X8Y44rgVc3M58o1ec1qUpch-U4Bf60sA,1361
|
|
300
|
+
web/client/dist/assets/FileExplorer-IAIPoTxM.js,sha256=x2RUmVfZoj8bnXa8dSbXr-mIEXssXyxTRZhMS9tN68M,87619
|
|
301
|
+
web/client/dist/assets/Footer-D77vCxKH.js,sha256=U6viM5rVRn721-RlPrvaAVHmIziYbZt20FgreIxNR2M,700
|
|
302
|
+
web/client/dist/assets/Header-Ccb81kaP.js,sha256=HnACZRbKQSIlu8112mv5I14ybMmHoqeDuazs8rWEIBw,11424
|
|
303
|
+
web/client/dist/assets/Input-D_Fp4W_B.js,sha256=-VoFLRN9NI9kqYCatZhN01nFxnwCbd-qwim5AjLcdCk,54814
|
|
304
|
+
web/client/dist/assets/Lineage-BHLfUAmC.js,sha256=kNtsnLT-uWdmetqQWcGxYyxbtwokGeReDQ6wcxTkB4Y,1002
|
|
305
|
+
web/client/dist/assets/ListboxShow-BIPQ-cqE.js,sha256=J0xVGHsIY8Jymt8moKgGgA0UcSRlgPVRmDHRxMqgqso,29911
|
|
306
|
+
web/client/dist/assets/ModelLineage-BrTZ2lm3.js,sha256=-Kwq0pNEtnH7JfH8iR1uevFxXkzOnOyvjulYt4t4_qw,15546
|
|
307
|
+
web/client/dist/assets/Models-B6cHeIlA.js,sha256=jLL3XfR5a5Cd0a2iA9TpSO2Raq2VE-9h5VeLEvJCJ7k,2194
|
|
308
|
+
web/client/dist/assets/Page-S1ykkm5T.js,sha256=jkaG3R5RRkSOcOXU1FeVcXOKt6c2hpW8L7R1oBhi7W4,589
|
|
309
|
+
web/client/dist/assets/Plan-DCD4m0nD.js,sha256=XC1Wsu7Kh2ucSr48moUcXS7wH9F0GYPhUxlrGVH1UrA,666
|
|
310
|
+
web/client/dist/assets/PlusCircleIcon-C40sAC-m.js,sha256=U2Kj8AXiCxc42XXHtQD6QcWYwD7tKWgyZphB9q04cx0,11698
|
|
311
|
+
web/client/dist/assets/ReportErrors-CxqgDcYY.js,sha256=iT3T4k7fueG9PToWGCFZUFVaJj1AsVAqq5Wx19WwfwU,5419
|
|
312
|
+
web/client/dist/assets/Root-DtUrFfE_.js,sha256=TedlUvWQhbf68FRXVy9_AnS3qqIbvQLktsu1HfWR0Ls,42195
|
|
313
|
+
web/client/dist/assets/SearchList-DoRflby9.js,sha256=ZXcEi3giqMQCUZ8gCSZccO8FJxqLqmI955O00gbaA4Y,291947
|
|
314
|
+
web/client/dist/assets/SelectEnvironment-equ86mF1.js,sha256=dxMQj5Ww7WqetFQCbMF0IPxx2mNOEdxPrJm_CV9wOCE,37637
|
|
315
|
+
web/client/dist/assets/SourceList-DT-sBCAQ.js,sha256=bNTKYKC4XOltcr-WbYWkTP-uDlZMEq7Fb2AyU4H6Hy4,3205
|
|
316
|
+
web/client/dist/assets/SourceListItem-MFS9vpg9.js,sha256=Ou6IQTTRTu4R2qWmydrnkpOsw40NYfBmTc_Kmh0-puM,1106
|
|
317
|
+
web/client/dist/assets/SplitPane-D2cB3Qkv.js,sha256=HA97cZh-gpD1jX_jEJZ3woGBk5z94Ec6meZgMwobYVw,10439
|
|
318
|
+
web/client/dist/assets/Tests-Duzk1K8j.js,sha256=zbLQsApR79cceYyvY11hOcvimsFWDV0xap_YN1-hwmk,1014
|
|
319
|
+
web/client/dist/assets/Welcome-BgAHQe0m.js,sha256=LENgtOzsvgFGz5HJSRcM1PA2uXPkv-3P8nFsZR2iQnU,354
|
|
320
320
|
web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
|
|
321
|
-
web/client/dist/assets/context-
|
|
322
|
-
web/client/dist/assets/context-
|
|
323
|
-
web/client/dist/assets/editor-
|
|
324
|
-
web/client/dist/assets/file-
|
|
325
|
-
web/client/dist/assets/floating-ui.react-dom-
|
|
321
|
+
web/client/dist/assets/context-CXV8eAaM.js,sha256=ODp9lRKw-mqvt1iBAbae7JrBuJVgkIm4d0hDIaF1oMQ,2043860
|
|
322
|
+
web/client/dist/assets/context-g_ECqgnp.js,sha256=UtztxIl-wsPnI7N0UwPBnv8HewNt0AyGO1s7W3YE-cw,4517
|
|
323
|
+
web/client/dist/assets/editor-BddPKujl.js,sha256=atNPvyv88Dq5_8GQKeKv4FWaW70aAP3EA2xccoEm8XM,7858
|
|
324
|
+
web/client/dist/assets/file-DUr_Gx7F.js,sha256=V4Qj8P81pNlgU6McP4_uX0xeebG_v9K0tjigqVbro6M,2349
|
|
325
|
+
web/client/dist/assets/floating-ui.react-dom-DTKAUIBI.js,sha256=m3PQm46eRa3HbtFp0TQ01uT0o7OETJECs5Y9mCHpP9Q,22266
|
|
326
326
|
web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
|
|
327
|
-
web/client/dist/assets/help-
|
|
328
|
-
web/client/dist/assets/index-
|
|
329
|
-
web/client/dist/assets/index-
|
|
330
|
-
web/client/dist/assets/plan-
|
|
331
|
-
web/client/dist/assets/popover-
|
|
332
|
-
web/client/dist/assets/project-
|
|
327
|
+
web/client/dist/assets/help-LQUMs6nO.js,sha256=l2cwwwdeaceDNk4nPftIej4HeJTz_DTvkTCRNGPHbLQ,57842
|
|
328
|
+
web/client/dist/assets/index-BsS6H8XQ.js,sha256=nN9r-FZW6wJEQGXg7maavjQumirIUwJdxlSIBTdOSSo,531639
|
|
329
|
+
web/client/dist/assets/index-DvxjegO0.js,sha256=Ys22S83iTRrHlhETcv8QqTVsZTfBraJvkMobbTEvAgA,13582
|
|
330
|
+
web/client/dist/assets/plan-DS237yuz.js,sha256=AhbKQZSYSpiq56aPNkVqE650R9dLeJXzfxyLFtMUqXw,13754
|
|
331
|
+
web/client/dist/assets/popover-CiiY17g7.js,sha256=Yi7NB2kj-TCBtUTJ9cGmILRDmtR07Hrn1BR-mWbnTeg,68101
|
|
332
|
+
web/client/dist/assets/project-DUHOhQT2.js,sha256=_67V2SqDm-5whUOtvulTmwH2RwrLvS_L0BklOY_Yyd8,3338
|
|
333
333
|
web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
|
|
334
334
|
web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
|
|
335
335
|
web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
|
|
@@ -401,8 +401,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
401
401
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
402
402
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
403
403
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
404
|
-
sqlmesh-0.195.1.
|
|
405
|
-
sqlmesh-0.195.1.
|
|
406
|
-
sqlmesh-0.195.1.
|
|
407
|
-
sqlmesh-0.195.1.
|
|
408
|
-
sqlmesh-0.195.1.
|
|
404
|
+
sqlmesh-0.195.1.dev4.dist-info/METADATA,sha256=L5VdwpRstKaJDH3j1MPFjmdhqzgNyDchcLQYXa-59hA,26690
|
|
405
|
+
sqlmesh-0.195.1.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
406
|
+
sqlmesh-0.195.1.dev4.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
407
|
+
sqlmesh-0.195.1.dev4.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
408
|
+
sqlmesh-0.195.1.dev4.dist-info/RECORD,,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as n,j as s,O as f,e as t,H as c,B as p,m as x,l as d}from"./index-
|
|
1
|
+
import{x as n,j as s,O as f,e as t,H as c,B as p,m as x,l as d}from"./index-BsS6H8XQ.js";import{P as j}from"./Page-S1ykkm5T.js";import{u as h}from"./project-DUHOhQT2.js";import{S as v}from"./SourceList-DT-sBCAQ.js";import{S as A}from"./SourceListItem-MFS9vpg9.js";import"./SplitPane-D2cB3Qkv.js";import"./file-DUr_Gx7F.js";import"./Input-D_Fp4W_B.js";import"./floating-ui.react-dom-DTKAUIBI.js";import"./index-DvxjegO0.js";function k(){const{pathname:a}=n(),i=h(e=>e.files),r=Array.from(i.values()).filter(e=>e.path.endsWith("audits"));return s.jsx(j,{sidebar:s.jsxs("div",{className:"flex flex-col w-full h-full",children:[s.jsx(v,{keyId:"basename",keyName:"basename",to:t.Audits,items:r,isActive:e=>`${t.Audits}/${e}`===a,className:"h-full",listItem:({to:e,name:o,description:m,text:l,disabled:u=!1})=>s.jsx(A,{to:e,name:o,text:l,description:m,disabled:u})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(p,{size:d.sm,variant:x.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,c as i,l as a,m as n,H as p}from"./index-
|
|
1
|
+
import{j as s,c as i,l as a,m as n,H as p}from"./index-BsS6H8XQ.js";function l({variant:t=n.Neutral,size:e=a.md,isFull:r=!1,isCenter:u=!1,hasBackground:x=!0,hasBackgroundOnHover:f=!1,hasBorder:c=!1,children:m,className:b}){return s.jsx("div",{className:i("w-full text-sm px-4 overflow-hidden rounded-lg",e===a.sm&&"py-2",e===a.md&&"py-4",e===a.lg&&"py-6",r&&"h-full",u&&"justify-center items-center",c&&"border-2",w(t,x,f),b),children:m})}function g({className:t}){return s.jsx(p,{className:i("mx-4 w-full",t)})}function d({children:t,className:e}){return s.jsx("h4",{className:i("font-bold text-sm whitespace-nowrap text-left",e),children:t})}function o({children:t,className:e}){return s.jsx("p",{className:i("text-neutral-600",e),children:t})}l.Label=d;l.Description=o;l.Divider=g;function w(t,e=!0,r=!1){switch(t){case n.Primary:return[r?"hover:bg-primary-5":"",e?"bg-primary-5":"","text-primary-600 dark:text-primary-400"];case n.Success:return[r?"hover:bg-success-5":"",e?"bg-success-5":"","text-success-600 dark:text-success-400"];case n.Warning:return[r?"hover:bg-warning-5":"",e?"bg-warning-5":"","text-warning-600 dark:text-warning-400"];case n.Danger:return[r?"hover:bg-danger-5":"",e?"bg-danger-5":"","text-danger-600 dark:text-danger-400"];case n.Info:return[r?"hover:bg-info-5":"",e?"bg-info-5":"","text-info-600 dark:text-info-400"];case n.Neutral:return[r?"hover:bg-neutral-5":"",e?"bg-neutral-5":"","text-neutral-600 dark:text-neutral-400"];default:return["bg-transparent","text-neutral-600 dark:text-neutral-400"]}}export{l as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-
|
|
1
|
+
import{r as e}from"./index-BsS6H8XQ.js";function t({title:r,titleId:a,...l},o){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":a},l),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const c=e.forwardRef(t);export{c as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-
|
|
1
|
+
import{r as e}from"./index-BsS6H8XQ.js";function o({title:r,titleId:a,...t},l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},t),r?e.createElement("title",{id:a},r):null,e.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const i=e.forwardRef(o);export{i as F};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as v,R as J,a as _,j as e,m as O,s as Qe,b as C,B as oe,v as E,l as T,c as w,M as De,f as V,I as Xe,J as de,i as I,K as Q,g as H,T as Me,H as ue,P as ye,C as es,A as $,q as ss,L as as,d as ns,k as ts,o as ls,p as is,Q as rs,U as os,e as cs}from"./index-DA7iL93d.js";import{u as W,S as ds,A as us,a as Ne,b as R,E as A,P as z,c as ms}from"./SelectEnvironment-Fdveg7Dn.js";import{u as j,a as Y,E as M}from"./plan-8UAMXVjx.js";import{B as S}from"./Banner-CIUVdc-z.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-BA3W9uiU.js";import{K as fs,L as $e,V as hs,y as xs,p as js,o as ce,$ as vs,W as gs,X as ys,_ as ws,Y as bs,a as Re,Z as Ns,z as se}from"./popover-DE6_QtGZ.js";import{I as K}from"./Input-Cl0rlyUj.js";import{H as ks,V as Ps,Q as Ts,w as Cs,u as Fs,a as As,l as Ss,T as Ds,N as Rs,U as Es,j as Bs,p as _s}from"./ListboxShow-mv_m9Xqu.js";import{u as ze}from"./project-CfZrmqZ7.js";import{F as we}from"./context-DKh7qNl9.js";import"./ModelLineage-JG9oPMA2.js";import"./editor-BYglYCad.js";import"./file-BATQOjrJ.js";import"./SearchList-KwGRUK3b.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-DHc129jH.js";import"./ChevronDownIcon-uQGmwNOL.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-CrxTdTD0.js";import"./index-DZ2vKQ1l.js";function Os({title:s,titleId:a,...t},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},t),s?v.createElement("title",{id:a},s):null,v.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const X=v.forwardRef(Os);let Te=v.createContext(null);Te.displayName="GroupContext";let Is=v.Fragment;function Ms(s){var a;let[t,r]=v.useState(null),[l,i]=Ts(),[c,u]=Cs(),o=v.useMemo(()=>({switch:t,setSwitch:r}),[t,r]),d={},m=s,n=$e();return J.createElement(u,{name:"Switch.Description",value:c},J.createElement(i,{name:"Switch.Label",value:l,props:{htmlFor:(a=o.switch)==null?void 0:a.id,onClick(h){t&&(hs(h.currentTarget)&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(Te.Provider,{value:o},n({ourProps:d,theirProps:m,slot:{},defaultTag:Is,name:"Switch.Group"}))))}let $s="button";function zs(s,a){var t;let r=v.useId(),l=Fs(),i=As(),{id:c=l||`headlessui-switch-${r}`,disabled:u=i||!1,checked:o,defaultChecked:d,onChange:m,name:n,value:h,form:p,autoFocus:f=!1,...x}=s,F=v.useContext(Te),[B,D]=v.useState(null),N=v.useRef(null),k=xs(N,a,F===null?null:F.setSwitch,D),g=Ss(d),[P,Z]=Ds(o,m,g??!1),je=js(),[le,b]=v.useState(!1),ie=ce(()=>{b(!0),Z==null||Z(!P),je.nextFrame(()=>{b(!1)})}),re=ce(U=>{if(Ns(U.currentTarget))return U.preventDefault();U.preventDefault(),ie()}),ve=ce(U=>{U.key===Re.Space?(U.preventDefault(),ie()):U.key===Re.Enter&&_s(U.currentTarget)}),Le=ce(U=>U.preventDefault()),Ve=Rs(),Ge=Es(),{isFocusVisible:Fe,focusProps:He}=vs({autoFocus:f}),{isHovered:Ae,hoverProps:Ke}=gs({isDisabled:u}),{pressed:Se,pressProps:Ze}=ys({disabled:u}),qe=v.useMemo(()=>({checked:P,disabled:u,hover:Ae,focus:Fe,active:Se,autofocus:f,changing:le}),[P,Ae,Fe,Se,u,le,f]),We=ws({id:c,ref:k,role:"switch",type:bs(s,B),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":Ve,"aria-describedby":Ge,disabled:u||void 0,autoFocus:f,onClick:re,onKeyUp:ve,onKeyPress:Le},He,Ke,Ze),Ye=v.useCallback(()=>{if(g!==void 0)return Z==null?void 0:Z(g)},[Z,g]),Je=$e();return J.createElement(J.Fragment,null,n!=null&&J.createElement(Bs,{disabled:u,data:{[n]:h||"on"},overrides:{type:"checkbox",checked:P},form:p,onReset:Ye}),Je({ourProps:We,theirProps:x,slot:qe,defaultTag:$s,name:"Switch"}))}let Us=fs(zs),Ls=Ms,Vs=Ps,Gs=ks,ge=Object.assign(Us,{Group:Ls,Label:Vs,Description:Gs});function Hs(){const s=_(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(S,{variant:O.Warning,children:e.jsx(L,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(S.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ke,{className:"w-5 text-warning-500"}):e.jsx(Pe,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx(L.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(S.Description,{children:"Prod will be completely backfilled in order to ensure there are no data gaps. After this is applied, it is recommended to validate further changes in a dev environment before deploying to production."})})]})})})})}function Ks(s=0){return v.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function Zs({run:s,apply:a,cancel:t,reset:r}){const l=Qe(),{change_categorization:i}=W(),c=_(b=>b.modules),u=_(b=>b.environment),o=_(b=>b.environments),d=_(b=>b.addConfirmation),m=_(b=>b.setShowConfirmation),n=j(b=>b.planAction),h=j(b=>b.planOverview),p=j(b=>b.planApply),f=j(b=>b.planCancel),x=Ks();function F(b){b.stopPropagation(),r()}function B(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const ie=u.isProd&&C(u.isInitial),re=Array.from(i.values()).some(ve=>E(ve.category));ie?d({headline:"Applying Plan Directly On Prod Environment!",tagline:"Safer choice will be to select or add new environment first.",description:"Are you sure you want to apply your changes directly on prod?",yesText:`Yes, Run ${u.name}`,noText:"No, Cancel",action:a,details:re?["ATTENTION!","[Breaking Change] category will be applied to all uncategorized changes"]:void 0,children:e.jsxs("div",{className:"mt-5 pt-4",children:[e.jsx("h4",{className:"mb-2",children:`${o.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[o.size>1&&e.jsx(ds,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{m(!1)},size:T.md}),e.jsx(us,{className:"w-full",size:T.md,onAdd:()=>{m(!1)}})]})]})}):re?d({headline:"Some changes are missing categorization!",description:"Are you sure you want to proceed?",details:["[Breaking Change] category will be applied to all uncategorized changes"],yesText:"Yes, Apply",noText:"No, Cancel",action:a}):a()}function k(b){b.stopPropagation(),s()}const g=h.isFailed||p.isFailed||f.isSuccessful,P=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(g),Z=n.isApplying||f.isCancelling||p.isRunning&&h.isFinished,je=g||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),le=c.showHistoryNavigation;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between pt-2 pl-4 pr-2 pb-2",children:[e.jsx("div",{className:"flex w-full items-center",children:e.jsx(se,{appear:!0,show:P,enter:"transition ease duration-300 transform",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease duration-300 transform",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",className:"trasition-all duration-300 ease-in-out",as:"div",children:P&&e.jsx(oe,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:x,variant:f.isSuccessful?O.Danger:O.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[M.RunningTask,M.Running,M.Run,M.Applying,M.ApplyBackfill,M.ApplyVirtual,M.ApplyChangesAndBackfill,M.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[Z&&e.jsx(oe,{onClick:B,variant:O.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[M.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),je&&e.jsx(oe,{onClick:F,variant:O.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),le&&e.jsx(oe,{onClick:D,variant:O.Info,children:"Go Back"})]})]})})}function qs({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:c}){return e.jsxs(ge.Group,{as:"div",className:"m-1",children:[e.jsxs(ge,{checked:i?!1:a,onChange:t,className:w("flex relative border-secondary-30 rounded-full m-0","shrink-0 focus:outline-none ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100 focus:border-secondary-500 focus-visible:ring-opacity-75","transition duration-200 ease-in-out",a?"bg-secondary-500":"bg-secondary-20",c,i?"opacity-50 cursor-not-allowed":"cursor-pointer",l===T.sm&&"h-[14px] w-6 focus:ring-1 border",l===T.md&&"h-5 w-10 focus:ring-2 border-2",l===T.lg&&"h-7 w-14 focus:ring-4 border-2"),disabled:i,children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("span",{"aria-hidden":"true",className:w("pointer-events-none inline-block transform rounded-full shadow-md transition duration-200 ease-in-out","bg-light",l===T.sm&&"h-3 w-3",l===T.md&&"h-4 w-4",l===T.lg&&"h-6 w-6",a&&l===T.sm&&"translate-x-[10px]",a&&l===T.md&&"translate-x-5",a&&l===T.lg&&"translate-x-7")})]}),s!=null&&e.jsx(ge.Label,{className:w("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function q({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:w("flex justify-between",i),children:[e.jsxs("label",{className:"block mb-1 px-3 text-sm font-bold",children:[s,e.jsx("small",{className:"block text-xs text-neutral-500",children:a})]}),e.jsx(qs,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ws({disabled:s=!1,className:a}){const t=Ne(),{start:r,end:l,isInitialPlanRun:i}=W();return e.jsxs("div",{className:w("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(K,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2023-12-13",value:r,onInput:o=>{o.stopPropagation(),t({type:R.DateStart,start:o.target.value})}})}),e.jsx(K,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2022-12-13",value:l,onInput:o=>{o.stopPropagation(),t({type:R.DateEnd,end:o.target.value})}})})]})}function Ys(){const s=Ne(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:c,restate_models:u,isInitialPlanRun:o,create_from:d,include_unmodified:m}=W(),n=v.useRef(null),h=j(N=>N.planAction),p=j(N=>N.planOverview),f=j(N=>N.planApply),x=_(N=>N.environment),F=_(N=>N.environments),B=De.getOnlyRemote(Array.from(F));v.useEffect(()=>{s({type:R.PlanOptions,...p.plan_options,skip_tests:!1})},[]);const D=h.isProcessing||h.isDone||f.isFinished||p.isLatest&&C(h.isRun)||p.isVirtualUpdate;return v.useEffect(()=>{var N;E(n.current)||h.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,h]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:w(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ws,{className:w(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(S,{children:e.jsx(L,{defaultOpen:h.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{ref:n,className:w("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(S.Label,{className:"mr-2 text-sm w-full",children:[e.jsx("span",{children:"Additional Options"}),D&&e.jsx("span",{className:"ml-1",children:"(Read Only)"})]}),N?e.jsx(ke,{className:"h-5 w-5 text-neutral-400"}):e.jsx(Pe,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs(L.Panel,{unmount:!1,className:w("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:w(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(x.isProd)&&e.jsx(K,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:B.length<2,children:({className:k,disabled:g})=>e.jsx(K.Selector,{className:w(k,"w-full"),list:De.getOnlyRemote(Array.from(F)).filter(P=>P!==x).map(P=>({value:P.name,text:P.name})),onChange:P=>{s({type:R.PlanOptions,create_from:P})},value:d,disabled:g})}),e.jsx(K,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
|
|
1
|
+
import{r as v,R as J,a as _,j as e,m as O,s as Qe,b as C,B as oe,v as E,l as T,c as w,M as De,f as V,I as Xe,J as de,i as I,K as Q,g as H,T as Me,H as ue,P as ye,C as es,A as $,q as ss,L as as,d as ns,k as ts,o as ls,p as is,Q as rs,U as os,e as cs}from"./index-BsS6H8XQ.js";import{u as W,S as ds,A as us,a as Ne,b as R,E as A,P as z,c as ms}from"./SelectEnvironment-equ86mF1.js";import{u as j,a as Y,E as M}from"./plan-DS237yuz.js";import{B as S}from"./Banner-DsG8aGIL.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-C40sAC-m.js";import{K as fs,L as $e,V as hs,y as xs,p as js,o as ce,$ as vs,W as gs,X as ys,_ as ws,Y as bs,a as Re,Z as Ns,z as se}from"./popover-CiiY17g7.js";import{I as K}from"./Input-D_Fp4W_B.js";import{H as ks,V as Ps,Q as Ts,w as Cs,u as Fs,a as As,l as Ss,T as Ds,N as Rs,U as Es,j as Bs,p as _s}from"./ListboxShow-BIPQ-cqE.js";import{u as ze}from"./project-DUHOhQT2.js";import{F as we}from"./context-CXV8eAaM.js";import"./ModelLineage-BrTZ2lm3.js";import"./editor-BddPKujl.js";import"./file-DUr_Gx7F.js";import"./SearchList-DoRflby9.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-DTKAUIBI.js";import"./ChevronDownIcon-CpQjfO01.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-DT-sBCAQ.js";import"./index-DvxjegO0.js";function Os({title:s,titleId:a,...t},r){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},t),s?v.createElement("title",{id:a},s):null,v.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const X=v.forwardRef(Os);let Te=v.createContext(null);Te.displayName="GroupContext";let Is=v.Fragment;function Ms(s){var a;let[t,r]=v.useState(null),[l,i]=Ts(),[c,u]=Cs(),o=v.useMemo(()=>({switch:t,setSwitch:r}),[t,r]),d={},m=s,n=$e();return J.createElement(u,{name:"Switch.Description",value:c},J.createElement(i,{name:"Switch.Label",value:l,props:{htmlFor:(a=o.switch)==null?void 0:a.id,onClick(h){t&&(hs(h.currentTarget)&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(Te.Provider,{value:o},n({ourProps:d,theirProps:m,slot:{},defaultTag:Is,name:"Switch.Group"}))))}let $s="button";function zs(s,a){var t;let r=v.useId(),l=Fs(),i=As(),{id:c=l||`headlessui-switch-${r}`,disabled:u=i||!1,checked:o,defaultChecked:d,onChange:m,name:n,value:h,form:p,autoFocus:f=!1,...x}=s,F=v.useContext(Te),[B,D]=v.useState(null),N=v.useRef(null),k=xs(N,a,F===null?null:F.setSwitch,D),g=Ss(d),[P,Z]=Ds(o,m,g??!1),je=js(),[le,b]=v.useState(!1),ie=ce(()=>{b(!0),Z==null||Z(!P),je.nextFrame(()=>{b(!1)})}),re=ce(U=>{if(Ns(U.currentTarget))return U.preventDefault();U.preventDefault(),ie()}),ve=ce(U=>{U.key===Re.Space?(U.preventDefault(),ie()):U.key===Re.Enter&&_s(U.currentTarget)}),Le=ce(U=>U.preventDefault()),Ve=Rs(),Ge=Es(),{isFocusVisible:Fe,focusProps:He}=vs({autoFocus:f}),{isHovered:Ae,hoverProps:Ke}=gs({isDisabled:u}),{pressed:Se,pressProps:Ze}=ys({disabled:u}),qe=v.useMemo(()=>({checked:P,disabled:u,hover:Ae,focus:Fe,active:Se,autofocus:f,changing:le}),[P,Ae,Fe,Se,u,le,f]),We=ws({id:c,ref:k,role:"switch",type:bs(s,B),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":Ve,"aria-describedby":Ge,disabled:u||void 0,autoFocus:f,onClick:re,onKeyUp:ve,onKeyPress:Le},He,Ke,Ze),Ye=v.useCallback(()=>{if(g!==void 0)return Z==null?void 0:Z(g)},[Z,g]),Je=$e();return J.createElement(J.Fragment,null,n!=null&&J.createElement(Bs,{disabled:u,data:{[n]:h||"on"},overrides:{type:"checkbox",checked:P},form:p,onReset:Ye}),Je({ourProps:We,theirProps:x,slot:qe,defaultTag:$s,name:"Switch"}))}let Us=fs(zs),Ls=Ms,Vs=Ps,Gs=ks,ge=Object.assign(Us,{Group:Ls,Label:Vs,Description:Gs});function Hs(){const s=_(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(S,{variant:O.Warning,children:e.jsx(L,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(S.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ke,{className:"w-5 text-warning-500"}):e.jsx(Pe,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx(L.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(S.Description,{children:"Prod will be completely backfilled in order to ensure there are no data gaps. After this is applied, it is recommended to validate further changes in a dev environment before deploying to production."})})]})})})})}function Ks(s=0){return v.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function Zs({run:s,apply:a,cancel:t,reset:r}){const l=Qe(),{change_categorization:i}=W(),c=_(b=>b.modules),u=_(b=>b.environment),o=_(b=>b.environments),d=_(b=>b.addConfirmation),m=_(b=>b.setShowConfirmation),n=j(b=>b.planAction),h=j(b=>b.planOverview),p=j(b=>b.planApply),f=j(b=>b.planCancel),x=Ks();function F(b){b.stopPropagation(),r()}function B(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const ie=u.isProd&&C(u.isInitial),re=Array.from(i.values()).some(ve=>E(ve.category));ie?d({headline:"Applying Plan Directly On Prod Environment!",tagline:"Safer choice will be to select or add new environment first.",description:"Are you sure you want to apply your changes directly on prod?",yesText:`Yes, Run ${u.name}`,noText:"No, Cancel",action:a,details:re?["ATTENTION!","[Breaking Change] category will be applied to all uncategorized changes"]:void 0,children:e.jsxs("div",{className:"mt-5 pt-4",children:[e.jsx("h4",{className:"mb-2",children:`${o.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[o.size>1&&e.jsx(ds,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{m(!1)},size:T.md}),e.jsx(us,{className:"w-full",size:T.md,onAdd:()=>{m(!1)}})]})]})}):re?d({headline:"Some changes are missing categorization!",description:"Are you sure you want to proceed?",details:["[Breaking Change] category will be applied to all uncategorized changes"],yesText:"Yes, Apply",noText:"No, Cancel",action:a}):a()}function k(b){b.stopPropagation(),s()}const g=h.isFailed||p.isFailed||f.isSuccessful,P=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(g),Z=n.isApplying||f.isCancelling||p.isRunning&&h.isFinished,je=g||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),le=c.showHistoryNavigation;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex justify-between pt-2 pl-4 pr-2 pb-2",children:[e.jsx("div",{className:"flex w-full items-center",children:e.jsx(se,{appear:!0,show:P,enter:"transition ease duration-300 transform",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition ease duration-300 transform",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",className:"trasition-all duration-300 ease-in-out",as:"div",children:P&&e.jsx(oe,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:x,variant:f.isSuccessful?O.Danger:O.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[M.RunningTask,M.Running,M.Run,M.Applying,M.ApplyBackfill,M.ApplyVirtual,M.ApplyChangesAndBackfill,M.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[Z&&e.jsx(oe,{onClick:B,variant:O.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[M.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),je&&e.jsx(oe,{onClick:F,variant:O.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),le&&e.jsx(oe,{onClick:D,variant:O.Info,children:"Go Back"})]})]})})}function qs({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:c}){return e.jsxs(ge.Group,{as:"div",className:"m-1",children:[e.jsxs(ge,{checked:i?!1:a,onChange:t,className:w("flex relative border-secondary-30 rounded-full m-0","shrink-0 focus:outline-none ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100 focus:border-secondary-500 focus-visible:ring-opacity-75","transition duration-200 ease-in-out",a?"bg-secondary-500":"bg-secondary-20",c,i?"opacity-50 cursor-not-allowed":"cursor-pointer",l===T.sm&&"h-[14px] w-6 focus:ring-1 border",l===T.md&&"h-5 w-10 focus:ring-2 border-2",l===T.lg&&"h-7 w-14 focus:ring-4 border-2"),disabled:i,children:[e.jsx("span",{className:"sr-only",children:r}),e.jsx("span",{"aria-hidden":"true",className:w("pointer-events-none inline-block transform rounded-full shadow-md transition duration-200 ease-in-out","bg-light",l===T.sm&&"h-3 w-3",l===T.md&&"h-4 w-4",l===T.lg&&"h-6 w-6",a&&l===T.sm&&"translate-x-[10px]",a&&l===T.md&&"translate-x-5",a&&l===T.lg&&"translate-x-7")})]}),s!=null&&e.jsx(ge.Label,{className:w("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function q({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:w("flex justify-between",i),children:[e.jsxs("label",{className:"block mb-1 px-3 text-sm font-bold",children:[s,e.jsx("small",{className:"block text-xs text-neutral-500",children:a})]}),e.jsx(qs,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ws({disabled:s=!1,className:a}){const t=Ne(),{start:r,end:l,isInitialPlanRun:i}=W();return e.jsxs("div",{className:w("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(K,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2023-12-13",value:r,onInput:o=>{o.stopPropagation(),t({type:R.DateStart,start:o.target.value})}})}),e.jsx(K,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:c,className:u})=>e.jsx(K.Textfield,{className:w(u,"w-full"),disabled:c,placeholder:"2022-12-13",value:l,onInput:o=>{o.stopPropagation(),t({type:R.DateEnd,end:o.target.value})}})})]})}function Ys(){const s=Ne(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:c,restate_models:u,isInitialPlanRun:o,create_from:d,include_unmodified:m}=W(),n=v.useRef(null),h=j(N=>N.planAction),p=j(N=>N.planOverview),f=j(N=>N.planApply),x=_(N=>N.environment),F=_(N=>N.environments),B=De.getOnlyRemote(Array.from(F));v.useEffect(()=>{s({type:R.PlanOptions,...p.plan_options,skip_tests:!1})},[]);const D=h.isProcessing||h.isDone||f.isFinished||p.isLatest&&C(h.isRun)||p.isVirtualUpdate;return v.useEffect(()=>{var N;E(n.current)||h.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,h]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:w(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ws,{className:w(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(S,{children:e.jsx(L,{defaultOpen:h.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs(L.Button,{ref:n,className:w("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(S.Label,{className:"mr-2 text-sm w-full",children:[e.jsx("span",{children:"Additional Options"}),D&&e.jsx("span",{className:"ml-1",children:"(Read Only)"})]}),N?e.jsx(ke,{className:"h-5 w-5 text-neutral-400"}):e.jsx(Pe,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs(L.Panel,{unmount:!1,className:w("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:w(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(x.isProd)&&e.jsx(K,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:B.length<2,children:({className:k,disabled:g})=>e.jsx(K.Selector,{className:w(k,"w-full"),list:De.getOnlyRemote(Array.from(F)).filter(P=>P!==x).map(P=>({value:P.name,text:P.name})),onChange:P=>{s({type:R.PlanOptions,create_from:P})},value:d,disabled:g})}),e.jsx(K,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
|
|
2
2
|
downstream from the one specified. For production
|
|
3
3
|
environment, all related model versions will have
|
|
4
4
|
their intervals wiped, but only the current
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-
|
|
1
|
+
import{d as a,Q as l,v as e,j as r,U as n,e as d}from"./index-BsS6H8XQ.js";import{D as u}from"./ReportErrors-CxqgDcYY.js";import"./PlusCircleIcon-C40sAC-m.js";import"./popover-CiiY17g7.js";import"./floating-ui.react-dom-DTKAUIBI.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-D2cB3Qkv.js";function v(){const{errors:i}=a(),{id:o}=l(),s=e(o)?void 0:Array.from(i).find(t=>t.id===o);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(s)?r.jsx(n,{link:d.Errors,description:e(o)?void 0:`Error ${o} Does Not Exist`,message:"Back To Errors"}):r.jsx("div",{className:"p-4 h-full w-full",children:r.jsx("div",{className:"w-full h-full p-4 rounded-lg bg-danger-5 text-danger-700",children:r.jsx(u,{error:s,scope:s.key,withSplitPane:!0})})})})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as x,a as m,v as h,P as a,a4 as c,a5 as D,a6 as P,r as T,j as u}from"./index-
|
|
1
|
+
import{Q as x,a as m,v as h,P as a,a4 as c,a5 as D,a6 as P,r as T,j as u}from"./index-BsS6H8XQ.js";import{g as b,T as g}from"./help-LQUMs6nO.js";import{u as r}from"./editor-BddPKujl.js";import"./index-DvxjegO0.js";import"./floating-ui.react-dom-DTKAUIBI.js";import"./Input-D_Fp4W_B.js";import"./file-DUr_Gx7F.js";const d=24*60*60*1e3;function S(){const{modelName:o}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),v=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(o)||o===(s==null?void 0:s.name)?s:p.get(encodeURI(o)),l={model:t.displayName,start:a(c(Date.now()-d)),end:a(new Date),execution_time:a(c(Date.now()-d)),limit:1e3},{refetch:f}=D(l),{refetch:w}=P(l);return T.useEffect(()=>{i(void 0),n(void 0),f().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(b(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(g,{headline:t==null?void 0:t.displayName,data:v??[[],[]]})})}export{S as default};
|