sqlmesh 0.184.3.dev19__py3-none-any.whl → 0.184.3.dev21__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/core/console.py +10 -6
- sqlmesh/core/plan/evaluator.py +3 -1
- sqlmesh/integrations/github/cicd/controller.py +7 -4
- {sqlmesh-0.184.3.dev19.dist-info → sqlmesh-0.184.3.dev21.dist-info}/METADATA +1 -1
- {sqlmesh-0.184.3.dev19.dist-info → sqlmesh-0.184.3.dev21.dist-info}/RECORD +53 -53
- web/client/dist/assets/{Audits-717Verqx.js → Audits-cGDtiiKB.js} +1 -1
- web/client/dist/assets/{Banner-CgwLz5R5.js → Banner-DHp1YP1u.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BmxRmFkN.js → ChevronDownIcon-Sazvo9i-.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-c8Ny36P1.js → ChevronRightIcon-84R-3q8m.js} +1 -1
- web/client/dist/assets/{Content-CwJTYkxI.js → Content-B9yV2iEZ.js} +1 -1
- web/client/dist/assets/{Content-CgUj3NrT.js → Content-C65MWvF0.js} +1 -1
- web/client/dist/assets/{Data-Dk9X2oU9.js → Data-By25O4M5.js} +1 -1
- web/client/dist/assets/{DataCatalog-k2DFt3HQ.js → DataCatalog-hSS21hR6.js} +1 -1
- web/client/dist/assets/{Editor-9oBtB7GG.js → Editor-Bsxwi3aO.js} +1 -1
- web/client/dist/assets/{Editor-qYDD_MAR.js → Editor-CUCC89Ij.js} +1 -1
- web/client/dist/assets/{Errors-SCnfp9wM.js → Errors-BOCVwZyl.js} +1 -1
- web/client/dist/assets/{FileExplorer-DWAYRX_y.js → FileExplorer-BZ8API0P.js} +1 -1
- web/client/dist/assets/{Footer-SkJqpLMV.js → Footer-CUwjtSu4.js} +1 -1
- web/client/dist/assets/{Header-CjI7SntD.js → Header-LsiS75Z7.js} +1 -1
- web/client/dist/assets/Input-D0tI9yL5.js +41 -0
- web/client/dist/assets/Lineage-DWpcQYIS.js +1 -0
- web/client/dist/assets/{ListboxShow-ZJMgV_zm.js → ListboxShow-DF5PqZhj.js} +1 -1
- web/client/dist/assets/{ModelLineage-DTLuCeiY.js → ModelLineage-BHZN6cbe.js} +1 -1
- web/client/dist/assets/{Models-U53foXav.js → Models-y5gl8Oaf.js} +1 -1
- web/client/dist/assets/{Page-BfsnjNUY.js → Page-DbTpD-wK.js} +1 -1
- web/client/dist/assets/{Plan-8FKkRAM8.js → Plan-CiSxSXLS.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-CErWR_UX.js → PlusCircleIcon-DJoyPo8S.js} +1 -1
- web/client/dist/assets/{ReportErrors-DTA5fMVE.js → ReportErrors-CNXH4GuU.js} +1 -1
- web/client/dist/assets/{Root-A_G5_k98.js → Root-RYhutnyD.js} +1 -1
- web/client/dist/assets/{SearchList-C-oF3biB.js → SearchList-iv5ny7Mb.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-BEVWGY0-.js → SelectEnvironment-DSHK4OKG.js} +1 -1
- web/client/dist/assets/{SourceList-Dv3xPrd_.js → SourceList-BXrKA-hR.js} +1 -1
- web/client/dist/assets/{SourceListItem-mVYtYF13.js → SourceListItem-BvVyXARN.js} +1 -1
- web/client/dist/assets/{SplitPane-DPKB1cRo.js → SplitPane-BCBwk2UE.js} +1 -1
- web/client/dist/assets/{Tests-CH1RUGi1.js → Tests-BOygb2O9.js} +1 -1
- web/client/dist/assets/{Welcome-CcphRk0f.js → Welcome-saOWnjhW.js} +1 -1
- web/client/dist/assets/{context-DGN-T77G.js → context-Cl_qdjcd.js} +1 -1
- web/client/dist/assets/{context-JaECki6C.js → context-cGGhLbGj.js} +1 -1
- web/client/dist/assets/{editor-DfvuLZRc.js → editor-yKXGVuvn.js} +1 -1
- web/client/dist/assets/{file-DrmdjHM2.js → file-CJ8A1f27.js} +1 -1
- web/client/dist/assets/{floating-ui.react-dom-CkbMeDhm.js → floating-ui.react-dom-CfXRycK_.js} +1 -1
- web/client/dist/assets/{help-D4T-Hhu6.js → help-aam8B-7S.js} +1 -1
- web/client/dist/assets/{index-uSmLm2pE.js → index-CQy7Tkrl.js} +1 -1
- web/client/dist/assets/{index-tpUXT8yx.js → index-zO-UPMUq.js} +1 -1
- web/client/dist/assets/{plan-Cttl620W.js → plan-CiAasU-P.js} +1 -1
- web/client/dist/assets/{popover-k1WuHpnU.js → popover-Ox7TJJ2-.js} +1 -1
- web/client/dist/assets/{project-C_xj-Y_c.js → project-PqqAyMWE.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Input-CgGiu7YD.js +0 -41
- web/client/dist/assets/Lineage-DVq-CJMC.js +0 -1
- {sqlmesh-0.184.3.dev19.dist-info → sqlmesh-0.184.3.dev21.dist-info}/WHEEL +0 -0
- {sqlmesh-0.184.3.dev19.dist-info → sqlmesh-0.184.3.dev21.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.184.3.dev19.dist-info → sqlmesh-0.184.3.dev21.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.184.3.dev19.dist-info → sqlmesh-0.184.3.dev21.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.184.3.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 184, 3, '
|
|
20
|
+
__version__ = version = '0.184.3.dev21'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 184, 3, 'dev21')
|
sqlmesh/core/console.py
CHANGED
|
@@ -1161,7 +1161,7 @@ class TerminalConsole(Console):
|
|
|
1161
1161
|
default_catalog: t.Optional[str],
|
|
1162
1162
|
) -> None:
|
|
1163
1163
|
"""Indicates that a new snapshot promotion progress has begun."""
|
|
1164
|
-
if self.promotion_progress is None:
|
|
1164
|
+
if snapshots and self.promotion_progress is None:
|
|
1165
1165
|
self.promotion_progress = make_progress_bar(
|
|
1166
1166
|
"Updating virtual layer ", self.console, justify="left"
|
|
1167
1167
|
)
|
|
@@ -1782,10 +1782,13 @@ class TerminalConsole(Console):
|
|
|
1782
1782
|
"""Get the user's change category for the directly modified models."""
|
|
1783
1783
|
plan = plan_builder.build()
|
|
1784
1784
|
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1785
|
+
if plan.restatements:
|
|
1786
|
+
self._print("\n[bold]Restating models\n")
|
|
1787
|
+
else:
|
|
1788
|
+
self.show_environment_difference_summary(
|
|
1789
|
+
plan.context_diff,
|
|
1790
|
+
no_diff=no_diff,
|
|
1791
|
+
)
|
|
1789
1792
|
|
|
1790
1793
|
if plan.context_diff.has_changes:
|
|
1791
1794
|
self.show_model_difference_summary(
|
|
@@ -3458,7 +3461,8 @@ class DebuggerTerminalConsole(TerminalConsole):
|
|
|
3458
3461
|
environment_naming_info: EnvironmentNamingInfo,
|
|
3459
3462
|
default_catalog: t.Optional[str],
|
|
3460
3463
|
) -> None:
|
|
3461
|
-
|
|
3464
|
+
if snapshots:
|
|
3465
|
+
self._write(f"Starting promotion for {len(snapshots)} snapshots")
|
|
3462
3466
|
|
|
3463
3467
|
def update_promotion_progress(self, snapshot: SnapshotInfoLike, promoted: bool) -> None:
|
|
3464
3468
|
self._write(f"Promoting {snapshot.name}")
|
sqlmesh/core/plan/evaluator.py
CHANGED
|
@@ -133,7 +133,9 @@ class BuiltInPlanEvaluator(PlanEvaluator):
|
|
|
133
133
|
push_completion_status = self._push(plan, snapshots, deployability_index_for_creation)
|
|
134
134
|
if push_completion_status.is_nothing_to_do:
|
|
135
135
|
self.console.log_status_update(
|
|
136
|
-
"
|
|
136
|
+
""
|
|
137
|
+
if plan.restatements
|
|
138
|
+
else "\n[green]SKIP: No physical layer updates to perform[/green]\n"
|
|
137
139
|
)
|
|
138
140
|
update_intervals_for_new_snapshots(plan.new_snapshots, self.state_sync)
|
|
139
141
|
self._restate(plan, snapshots_by_name)
|
|
@@ -457,10 +457,13 @@ class GithubController:
|
|
|
457
457
|
try:
|
|
458
458
|
# Clear out any output that might exist from prior steps
|
|
459
459
|
self._console.clear_captured_outputs()
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
460
|
+
if plan.restatements:
|
|
461
|
+
self._console._print("\n**Restating models**\n")
|
|
462
|
+
else:
|
|
463
|
+
self._console.show_environment_difference_summary(
|
|
464
|
+
context_diff=plan.context_diff,
|
|
465
|
+
no_diff=False,
|
|
466
|
+
)
|
|
464
467
|
if plan.context_diff.has_changes:
|
|
465
468
|
self._console.show_model_difference_summary(
|
|
466
469
|
context_diff=plan.context_diff,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=trxJFczO8LsMwFHUk7ps1GxH-LekNPEgLj1HTy2cQ7U,530
|
|
3
3
|
sqlmesh/magics.py,sha256=aeOyTdeNnyGzGtJXECDAbqJ8OAplrV4UAYl0I2hhtig,39670
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,7 +11,7 @@ sqlmesh/cli/main.py,sha256=TnV6htxJEvRDU7XxcXPOXNKmCT--f6k3yANeqmNSo6Y,32143
|
|
|
11
11
|
sqlmesh/cli/options.py,sha256=aC_L5WnMScKzMU55BD1Y-8R-QzqCkPSYrlCI-payHRA,1333
|
|
12
12
|
sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
14
|
-
sqlmesh/core/console.py,sha256=
|
|
14
|
+
sqlmesh/core/console.py,sha256=ZAaGLOWBJGBxPzLV7KZZ9akPExgD5m5AboCM8O0Q0nY,150944
|
|
15
15
|
sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
|
|
16
16
|
sqlmesh/core/context.py,sha256=r7wKGFx702NF06S0Y8AvkoMaeYjzDRcugArRwxT4LHU,114911
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=s9toP17d4tJfOpFH91LcjGK2CM64PVuB0MPkeFgF4hQ,20415
|
|
@@ -95,7 +95,7 @@ sqlmesh/core/model/seed.py,sha256=ctUHH6CmeEnBVJyIAZznx0xJBm09W7VIZ-76Cfwfq28,50
|
|
|
95
95
|
sqlmesh/core/plan/__init__.py,sha256=ctpnu9mK3uTujs0It8qRMqcj9GdObXDnvSgn4rD2zqc,450
|
|
96
96
|
sqlmesh/core/plan/builder.py,sha256=ltoUlUr13uoEftYqGzjbnOa_n7-Q1CUiE9R_LgHY9Mc,38471
|
|
97
97
|
sqlmesh/core/plan/definition.py,sha256=SI3zi2poPkKJKTZogYv60Q7eIOhksaAcFUcu-J2-XqI,13218
|
|
98
|
-
sqlmesh/core/plan/evaluator.py,sha256=
|
|
98
|
+
sqlmesh/core/plan/evaluator.py,sha256=noxP8GgC6Fz8eJsZHvvE6Zd9dGukIjCq0MXy4vtpKgs,25810
|
|
99
99
|
sqlmesh/core/snapshot/__init__.py,sha256=Z5HTetNCZGoKF1WAKXk4LWL9dc8EC8lwS2O4TtoBmt4,1317
|
|
100
100
|
sqlmesh/core/snapshot/cache.py,sha256=MRYi_koDvp2yeQ5NDGoNFzhuJTw7Vh7mI0oJyeVbqio,4022
|
|
101
101
|
sqlmesh/core/snapshot/categorizer.py,sha256=qGG5870mu1jR2whKisSBH_GFbsyh96RnzJDgkN7DV9g,2482
|
|
@@ -154,7 +154,7 @@ sqlmesh/integrations/github/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
154
154
|
sqlmesh/integrations/github/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
155
155
|
sqlmesh/integrations/github/cicd/command.py,sha256=a48qtSeRM7RD3IeydJwHLAZBHRbmFdA7uHh7Yhe5a74,11301
|
|
156
156
|
sqlmesh/integrations/github/cicd/config.py,sha256=qEy0mRfPYJw1pm68UK0v1_4kZBj5QodnpIsOZ8JjZro,1838
|
|
157
|
-
sqlmesh/integrations/github/cicd/controller.py,sha256=
|
|
157
|
+
sqlmesh/integrations/github/cicd/controller.py,sha256=pMe3vwrIzw6YznCEK_rsRqVFckCP-y4ObRXA_bwTOfA,41521
|
|
158
158
|
sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
|
|
159
159
|
sqlmesh/lsp/completions.py,sha256=Uo8lUzPBeoB58Eu2642YoAtNI0pgIFWFSvwmuJALTv4,3583
|
|
160
160
|
sqlmesh/lsp/context.py,sha256=Ff09vrsawdYS-7YcXbGZW_RU-tj_-k8WV7maCghpYp0,1438
|
|
@@ -268,53 +268,53 @@ sqlmesh/utils/pydantic.py,sha256=-u69PDY-4FLR7ODNKBoN7PsPNmZ0wdhsJcCAG2P6vyY,110
|
|
|
268
268
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
269
269
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
270
270
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
271
|
-
sqlmesh-0.184.3.
|
|
271
|
+
sqlmesh-0.184.3.dev21.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
272
272
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
|
-
web/client/dist/index.html,sha256=
|
|
274
|
-
web/client/dist/assets/Audits-
|
|
275
|
-
web/client/dist/assets/Banner-
|
|
276
|
-
web/client/dist/assets/ChevronDownIcon-
|
|
277
|
-
web/client/dist/assets/ChevronRightIcon-
|
|
278
|
-
web/client/dist/assets/Content-
|
|
279
|
-
web/client/dist/assets/Content-
|
|
280
|
-
web/client/dist/assets/Data-
|
|
281
|
-
web/client/dist/assets/DataCatalog-
|
|
282
|
-
web/client/dist/assets/Editor-
|
|
283
|
-
web/client/dist/assets/Editor-
|
|
284
|
-
web/client/dist/assets/Errors-
|
|
285
|
-
web/client/dist/assets/FileExplorer-
|
|
286
|
-
web/client/dist/assets/Footer-
|
|
287
|
-
web/client/dist/assets/Header-
|
|
288
|
-
web/client/dist/assets/Input-
|
|
289
|
-
web/client/dist/assets/Lineage-
|
|
290
|
-
web/client/dist/assets/ListboxShow-
|
|
291
|
-
web/client/dist/assets/ModelLineage-
|
|
292
|
-
web/client/dist/assets/Models-
|
|
293
|
-
web/client/dist/assets/Page-
|
|
294
|
-
web/client/dist/assets/Plan-
|
|
295
|
-
web/client/dist/assets/PlusCircleIcon-
|
|
296
|
-
web/client/dist/assets/ReportErrors-
|
|
297
|
-
web/client/dist/assets/Root-
|
|
298
|
-
web/client/dist/assets/SearchList-
|
|
299
|
-
web/client/dist/assets/SelectEnvironment-
|
|
300
|
-
web/client/dist/assets/SourceList-
|
|
301
|
-
web/client/dist/assets/SourceListItem-
|
|
302
|
-
web/client/dist/assets/SplitPane-
|
|
303
|
-
web/client/dist/assets/Tests-
|
|
304
|
-
web/client/dist/assets/Welcome-
|
|
273
|
+
web/client/dist/index.html,sha256=x9qfdHkVkXOwWRFRCZGaixiLj5e9tOQsCDRR92vW9QI,5472
|
|
274
|
+
web/client/dist/assets/Audits-cGDtiiKB.js,sha256=jrS4x1nQ8Klx67744_LjNI2oBOI9XnnygDR-0wmlme8,1041
|
|
275
|
+
web/client/dist/assets/Banner-DHp1YP1u.js,sha256=nIfSosLiU-8KEK0F4_J4a3PfC67kN66DhfuvjkrDt94,1549
|
|
276
|
+
web/client/dist/assets/ChevronDownIcon-Sazvo9i-.js,sha256=W-Nzif_454TrrAjNDFoxCyjWzp5rmWgRQmpzXRrFCJI,553
|
|
277
|
+
web/client/dist/assets/ChevronRightIcon-84R-3q8m.js,sha256=5AS8V5nPp5yS70ZaQBL5YP6v-F1PlRZ59c1ueWhtnl8,553
|
|
278
|
+
web/client/dist/assets/Content-B9yV2iEZ.js,sha256=g92yu2wAz8RpfuA-aJkyG_P2iPYaYlNXZua0_ar7UMo,37525
|
|
279
|
+
web/client/dist/assets/Content-C65MWvF0.js,sha256=uGny6bcllQADZK6XblUgcBz1phe9R7fArcrLRTft3dU,803
|
|
280
|
+
web/client/dist/assets/Data-By25O4M5.js,sha256=nwKc0a0v8Wp8oqKTf3tVWIQVgQ5LR-hkBP0UDMV4K7s,984
|
|
281
|
+
web/client/dist/assets/DataCatalog-hSS21hR6.js,sha256=cDtuuIxXCXDypgBv7sKrX820cb-RK_JTWEhQ1_AYTIs,122464
|
|
282
|
+
web/client/dist/assets/Editor-Bsxwi3aO.js,sha256=fiWFUqXKUChiRVkzmZGeZjhvo8Jq8JT1ODBa0ujwmMM,1490
|
|
283
|
+
web/client/dist/assets/Editor-CUCC89Ij.js,sha256=kViI4e2tnNzqHS18MaPPJlNeaLwNuXZnB_nkdz9qXQc,43614
|
|
284
|
+
web/client/dist/assets/Errors-BOCVwZyl.js,sha256=Jl2p5_EAOB2ZRUDfXxtxOpjyUqJMr_2Xe8qiZnsI9OQ,1361
|
|
285
|
+
web/client/dist/assets/FileExplorer-BZ8API0P.js,sha256=Rih59BRMk3UUSanhZ4LGltZm2rwmtAf9BMOpjDL7I1A,87619
|
|
286
|
+
web/client/dist/assets/Footer-CUwjtSu4.js,sha256=gE4CSJPJCkEPgQ4gGlh9t1uneDO4tKNkBYAq22uyklg,700
|
|
287
|
+
web/client/dist/assets/Header-LsiS75Z7.js,sha256=lxVgSCBgGh5INWSyj8iSaUp2JMT211041jQHgqzJnE8,11424
|
|
288
|
+
web/client/dist/assets/Input-D0tI9yL5.js,sha256=On6KP4lBpnyCyxuniG0kxSBJ0I8tngM2Jqn3O5gxpoo,54762
|
|
289
|
+
web/client/dist/assets/Lineage-DWpcQYIS.js,sha256=VSYGwVtu35y72R-ZjNXNC08K7BAoR_2cmlPajCU5nvw,1002
|
|
290
|
+
web/client/dist/assets/ListboxShow-DF5PqZhj.js,sha256=4VfAd8iMG2_dVVuKZFzxiWBgU3riQ5TojRwQJBhPLjo,29911
|
|
291
|
+
web/client/dist/assets/ModelLineage-BHZN6cbe.js,sha256=AlXxABeKaWS1QcSXhpn5NG7oOzH3Ul4Hh5qUrs4f3qk,15546
|
|
292
|
+
web/client/dist/assets/Models-y5gl8Oaf.js,sha256=9nDJhBiW5nzJcJckeawijeZeBKiaBrzsWzKv_ZgLFpk,2194
|
|
293
|
+
web/client/dist/assets/Page-DbTpD-wK.js,sha256=a7NzTNTAE_vrSB435ZlLZRrsJZyVHgDddHhesOOC6IU,589
|
|
294
|
+
web/client/dist/assets/Plan-CiSxSXLS.js,sha256=pC0-ZFXrVjiCaV6ida_2LrSuz3oxQvmtkhWr85-dBuY,666
|
|
295
|
+
web/client/dist/assets/PlusCircleIcon-DJoyPo8S.js,sha256=fg5oVqKyaV_groKRjBToqXqUdyxf4zlWXThgWissl70,11698
|
|
296
|
+
web/client/dist/assets/ReportErrors-CNXH4GuU.js,sha256=5aOFNXE31BK3fuKoer-bIesdeQinIxnYylWWZaMNF-I,5419
|
|
297
|
+
web/client/dist/assets/Root-RYhutnyD.js,sha256=cP2gV4lyEPLNiqgzdIh-Xj1akraMIMhj7oZB8vC50dA,42195
|
|
298
|
+
web/client/dist/assets/SearchList-iv5ny7Mb.js,sha256=jvQDYP9sQfb-NKfwl8e4MGbOIr32VhrcVSOvvdkqQWA,291983
|
|
299
|
+
web/client/dist/assets/SelectEnvironment-DSHK4OKG.js,sha256=2Gfhu8b-aIfCd05bMolL4MgdkMO2kUonvDiThjeYvWw,37637
|
|
300
|
+
web/client/dist/assets/SourceList-BXrKA-hR.js,sha256=1dW3nftoAiEqHQ_CYpUdxB9Xn6qSWuV7-6jgpr0Ikvo,3205
|
|
301
|
+
web/client/dist/assets/SourceListItem-BvVyXARN.js,sha256=MrPaRzEpKkSPnPacd_9ZI45RPrMSReiDMmGb5v020qg,1106
|
|
302
|
+
web/client/dist/assets/SplitPane-BCBwk2UE.js,sha256=WJ4aVNh-qUVVUvnfxuvZVmAoWLUW_o30M06fEWR8Css,10439
|
|
303
|
+
web/client/dist/assets/Tests-BOygb2O9.js,sha256=adXCrP8c-Vvdy-DKESTew9ey4qjxNFoXJHZ1a6DHsEo,1014
|
|
304
|
+
web/client/dist/assets/Welcome-saOWnjhW.js,sha256=NgQpgRjf4NC5gXeXWGS556tEYyb2GIlaimHGatMviIA,354
|
|
305
305
|
web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
|
|
306
|
-
web/client/dist/assets/context-
|
|
307
|
-
web/client/dist/assets/context-
|
|
308
|
-
web/client/dist/assets/editor-
|
|
309
|
-
web/client/dist/assets/file-
|
|
310
|
-
web/client/dist/assets/floating-ui.react-dom-
|
|
306
|
+
web/client/dist/assets/context-Cl_qdjcd.js,sha256=sX8H0pW85vd5PoIkjpwKHBmY5dqhUV2-LrIZmaFK80A,2053023
|
|
307
|
+
web/client/dist/assets/context-cGGhLbGj.js,sha256=9Y7hHjbrpSN7zB011dMl7v1i6dTj_gUXJdoZvXWV_WE,4517
|
|
308
|
+
web/client/dist/assets/editor-yKXGVuvn.js,sha256=ehCUCRjgksqVNF7r1GOiJpKDcf1utWk-bGDKFGyQn84,7858
|
|
309
|
+
web/client/dist/assets/file-CJ8A1f27.js,sha256=e46WMtPg1xbPewkFF1Hp1D6ygJpgQZ18x-pFFLISvy8,2349
|
|
310
|
+
web/client/dist/assets/floating-ui.react-dom-CfXRycK_.js,sha256=tfOPdGISvlTqYMwUKBgbzqE3IdttNwVxnFnoOEYhNN8,22264
|
|
311
311
|
web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
|
|
312
|
-
web/client/dist/assets/help-
|
|
313
|
-
web/client/dist/assets/index-
|
|
314
|
-
web/client/dist/assets/index-
|
|
315
|
-
web/client/dist/assets/plan-
|
|
316
|
-
web/client/dist/assets/popover-
|
|
317
|
-
web/client/dist/assets/project-
|
|
312
|
+
web/client/dist/assets/help-aam8B-7S.js,sha256=ID4NA6YcO3WAXoVbKNClt5etCrcLSKen5iwJ9DqdBdc,57842
|
|
313
|
+
web/client/dist/assets/index-CQy7Tkrl.js,sha256=mvCvAdKLfKWfp9Vr4iv_KpnZYaRfOcwqrMlGYMX3N68,13582
|
|
314
|
+
web/client/dist/assets/index-zO-UPMUq.js,sha256=FIMJy_GYy7FE1r40dBXjYUHf4w0Zi5iVbAwuDlFVThQ,531311
|
|
315
|
+
web/client/dist/assets/plan-CiAasU-P.js,sha256=LSM2LlE-_qWq64sp7Sf0Df8n8QFJkxZxM73Zh_glhiI,13754
|
|
316
|
+
web/client/dist/assets/popover-Ox7TJJ2-.js,sha256=mkQ8x-m39x4LyYi-Gxp7IptcRbD-pu8TmS6pw-wFzHc,68101
|
|
317
|
+
web/client/dist/assets/project-PqqAyMWE.js,sha256=BCm98k8xwCRx56LbL7XEfR01oN8Htlut6pr5R7LBcnI,3338
|
|
318
318
|
web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
|
|
319
319
|
web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
|
|
320
320
|
web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
|
|
@@ -386,8 +386,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
386
386
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
387
387
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
388
388
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
389
|
-
sqlmesh-0.184.3.
|
|
390
|
-
sqlmesh-0.184.3.
|
|
391
|
-
sqlmesh-0.184.3.
|
|
392
|
-
sqlmesh-0.184.3.
|
|
393
|
-
sqlmesh-0.184.3.
|
|
389
|
+
sqlmesh-0.184.3.dev21.dist-info/METADATA,sha256=i1gPOyFMnRr2C-dfxkLFZWyFIY4Pk0eH0MF1nlKl3uM,25499
|
|
390
|
+
sqlmesh-0.184.3.dev21.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
391
|
+
sqlmesh-0.184.3.dev21.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
392
|
+
sqlmesh-0.184.3.dev21.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
393
|
+
sqlmesh-0.184.3.dev21.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-zO-UPMUq.js";import{P as j}from"./Page-DbTpD-wK.js";import{u as h}from"./project-PqqAyMWE.js";import{S as v}from"./SourceList-BXrKA-hR.js";import{S as A}from"./SourceListItem-BvVyXARN.js";import"./SplitPane-BCBwk2UE.js";import"./file-CJ8A1f27.js";import"./Input-D0tI9yL5.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./index-CQy7Tkrl.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-zO-UPMUq.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-zO-UPMUq.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-zO-UPMUq.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-tpUXT8yx.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-BEVWGY0-.js";import{u as j,a as Y,E as M}from"./plan-Cttl620W.js";import{B as S}from"./Banner-CgwLz5R5.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-CErWR_UX.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-k1WuHpnU.js";import{I as K}from"./Input-CgGiu7YD.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-ZJMgV_zm.js";import{u as ze}from"./project-C_xj-Y_c.js";import{F as we}from"./context-DGN-T77G.js";import"./ModelLineage-DTLuCeiY.js";import"./editor-DfvuLZRc.js";import"./file-DrmdjHM2.js";import"./SearchList-C-oF3biB.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-CkbMeDhm.js";import"./ChevronDownIcon-BmxRmFkN.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-Dv3xPrd_.js";import"./index-uSmLm2pE.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-zO-UPMUq.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-DSHK4OKG.js";import{u as j,a as Y,E as M}from"./plan-CiAasU-P.js";import{B as S}from"./Banner-DHp1YP1u.js";import{V as L,F as ke,a as Pe,p as ps}from"./PlusCircleIcon-DJoyPo8S.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-Ox7TJJ2-.js";import{I as K}from"./Input-D0tI9yL5.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-DF5PqZhj.js";import{u as ze}from"./project-PqqAyMWE.js";import{F as we}from"./context-Cl_qdjcd.js";import"./ModelLineage-BHZN6cbe.js";import"./editor-yKXGVuvn.js";import"./file-CJ8A1f27.js";import"./SearchList-iv5ny7Mb.js";import"./help-6Q7f7fjd.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./ChevronDownIcon-Sazvo9i-.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-BXrKA-hR.js";import"./index-CQy7Tkrl.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-zO-UPMUq.js";import{D as u}from"./ReportErrors-CNXH4GuU.js";import"./PlusCircleIcon-DJoyPo8S.js";import"./popover-Ox7TJJ2-.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-BCBwk2UE.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-zO-UPMUq.js";import{g as b,T as g}from"./help-aam8B-7S.js";import{u as r}from"./editor-yKXGVuvn.js";import"./index-CQy7Tkrl.js";import"./floating-ui.react-dom-CfXRycK_.js";import"./Input-D0tI9yL5.js";import"./file-CJ8A1f27.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};
|