sqlmesh 0.181.2.dev17__py3-none-any.whl → 0.181.2.dev18__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-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev18.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev18.dist-info}/RECORD +49 -49
- web/client/dist/assets/{Audits-CpTpRWJS.js → Audits-l42KyvAS.js} +1 -1
- web/client/dist/assets/{Banner-DoiNAKye.js → Banner-BDixHB-p.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BEGYfY2e.js → ChevronDownIcon-D_X0FuzI.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-DukIeKXy.js → ChevronRightIcon-Ci-vtEDD.js} +1 -1
- web/client/dist/assets/{Content-CfmwrKKm.js → Content-UFxrHkDI.js} +1 -1
- web/client/dist/assets/{Content-C_JUq1Do.js → Content-oIWFleXF.js} +1 -1
- web/client/dist/assets/{Data-ChAnh4ni.js → Data-CLMGP4j8.js} +1 -1
- web/client/dist/assets/{DataCatalog-DWoqDoha.js → DataCatalog-3BLO9jd2.js} +2 -2
- web/client/dist/assets/{Editor-ClszqJ2I.js → Editor-3TWmSfut.js} +1 -1
- web/client/dist/assets/{Editor-CUljCEXi.js → Editor-CScUJsI9.js} +1 -1
- web/client/dist/assets/{Errors-Fuw_f-1a.js → Errors-Dg9IT6GW.js} +1 -1
- web/client/dist/assets/{FileExplorer-CXZ9Q150.js → FileExplorer-BtGXfFe1.js} +1 -1
- web/client/dist/assets/{Footer-BFLq78dA.js → Footer-B_18qn6L.js} +1 -1
- web/client/dist/assets/{Header-BEK5IMP9.js → Header-BIhjjExl.js} +1 -1
- web/client/dist/assets/{Input-tR0WpVuK.js → Input-DZVp-T-c.js} +1 -1
- web/client/dist/assets/Lineage-DKjxAj6r.js +1 -0
- web/client/dist/assets/{ListboxShow-C9Uz0VvV.js → ListboxShow-B9WQbaml.js} +1 -1
- web/client/dist/assets/{ModelLineage-bdWk08Ab.js → ModelLineage-MOGS_tcv.js} +1 -1
- web/client/dist/assets/{Models-BU-MA8yO.js → Models-C0kma0wJ.js} +1 -1
- web/client/dist/assets/{Page-DwNrMCBx.js → Page-yGHiQgIZ.js} +1 -1
- web/client/dist/assets/{Plan-CrjOn4QG.js → Plan-DWtNBwNf.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-C1VPxB8A.js → PlusCircleIcon-DTPvu0Q9.js} +1 -1
- web/client/dist/assets/{ReportErrors-BcmrRxbG.js → ReportErrors-C0yNCCMn.js} +1 -1
- web/client/dist/assets/{Root-BzyY-jcn.js → Root-C33PD4Lp.js} +1 -1
- web/client/dist/assets/{SearchList-wEGQkxPR.js → SearchList-DBo20Eyw.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-LGhN0dhR.js → SelectEnvironment-C7g9UP89.js} +1 -1
- web/client/dist/assets/{SourceList-DHZ9-QtW.js → SourceList--1bRy5wi.js} +1 -1
- web/client/dist/assets/{SourceListItem-CzN9ypEP.js → SourceListItem-BHapbzta.js} +1 -1
- web/client/dist/assets/{SplitPane-Djy_uJgV.js → SplitPane-CazWmOU8.js} +1 -1
- web/client/dist/assets/{Tests-DXoZpfR7.js → Tests-RpyW36kr.js} +1 -1
- web/client/dist/assets/{Welcome-DREQuVRP.js → Welcome-Bp53remK.js} +1 -1
- web/client/dist/assets/{context-C8brTRBZ.js → context-BS6KWtz-.js} +1 -1
- web/client/dist/assets/{context-CKu1HxT0.js → context-BtbAVpZW.js} +1 -1
- web/client/dist/assets/{editor-D_hgjDRq.js → editor-DOmheF0n.js} +1 -1
- web/client/dist/assets/{file-CyBkQGGI.js → file-DnIRvHeq.js} +1 -1
- web/client/dist/assets/{help-BcOVbjKP.js → help-CBrid8WS.js} +1 -1
- web/client/dist/assets/{index-RJnYVUFY.js → index-BQLGC90G.js} +1 -1
- web/client/dist/assets/{index-CYAA3nVF.js → index-C8Tw_Auq.js} +1 -1
- web/client/dist/assets/{plan-BaiSs9Um.js → plan-BXjInmzU.js} +1 -1
- web/client/dist/assets/{project-vqNomsgg.js → project-Dj_oOi4n.js} +1 -1
- web/client/dist/assets/{transition-CtNxN7ku.js → transition-CnSw8kwk.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Lineage-CpFxhla3.js +0 -1
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev18.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev18.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev18.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev17.dist-info → sqlmesh-0.181.2.dev18.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.181.2.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 181, 2, '
|
|
20
|
+
__version__ = version = '0.181.2.dev18'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 181, 2, 'dev18')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=lDQgyvNq7kGBI1ueLeY2XlvY7N_coOZayk07CtRPuGM,530
|
|
3
3
|
sqlmesh/magics.py,sha256=9oY1Uz8uwsuTtPRg9HTYDxnGiJ7-OVRCpmCgAhbKHUU,39431
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -266,52 +266,52 @@ sqlmesh/utils/pandas.py,sha256=j_tYhuPcWpzuPceZZ6IhdTVbmxYyGJW7l4FHr4bQqjM,1824
|
|
|
266
266
|
sqlmesh/utils/pydantic.py,sha256=ioaAzYF42PutEJRyAS11-AHguiCG3yWI6VRcTVa2G-g,10470
|
|
267
267
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
268
268
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
269
|
-
sqlmesh-0.181.2.
|
|
269
|
+
sqlmesh-0.181.2.dev18.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
270
270
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
271
|
-
web/client/dist/index.html,sha256=
|
|
272
|
-
web/client/dist/assets/Audits-
|
|
273
|
-
web/client/dist/assets/Banner-
|
|
274
|
-
web/client/dist/assets/ChevronDownIcon-
|
|
275
|
-
web/client/dist/assets/ChevronRightIcon-
|
|
276
|
-
web/client/dist/assets/Content-
|
|
277
|
-
web/client/dist/assets/Content-
|
|
278
|
-
web/client/dist/assets/Data-
|
|
279
|
-
web/client/dist/assets/DataCatalog-
|
|
280
|
-
web/client/dist/assets/Editor-
|
|
281
|
-
web/client/dist/assets/Editor-
|
|
282
|
-
web/client/dist/assets/Errors-
|
|
283
|
-
web/client/dist/assets/FileExplorer-
|
|
284
|
-
web/client/dist/assets/Footer-
|
|
285
|
-
web/client/dist/assets/Header-
|
|
286
|
-
web/client/dist/assets/Input-
|
|
287
|
-
web/client/dist/assets/Lineage-
|
|
288
|
-
web/client/dist/assets/ListboxShow-
|
|
289
|
-
web/client/dist/assets/ModelLineage-
|
|
290
|
-
web/client/dist/assets/Models-
|
|
291
|
-
web/client/dist/assets/Page-
|
|
292
|
-
web/client/dist/assets/Plan-
|
|
293
|
-
web/client/dist/assets/PlusCircleIcon-
|
|
294
|
-
web/client/dist/assets/ReportErrors-
|
|
295
|
-
web/client/dist/assets/Root-
|
|
296
|
-
web/client/dist/assets/SearchList-
|
|
297
|
-
web/client/dist/assets/SelectEnvironment-
|
|
298
|
-
web/client/dist/assets/SourceList
|
|
299
|
-
web/client/dist/assets/SourceListItem-
|
|
300
|
-
web/client/dist/assets/SplitPane-
|
|
301
|
-
web/client/dist/assets/Tests-
|
|
302
|
-
web/client/dist/assets/Welcome-
|
|
271
|
+
web/client/dist/index.html,sha256=uXM2gzV--XZDC2fsiGHG4LKzhrQrRsucYtAcHCrU7GU,5472
|
|
272
|
+
web/client/dist/assets/Audits-l42KyvAS.js,sha256=g_dGYzNDqJovElwNGNDthbpZyWtxQk_fykmDiLLuTnA,997
|
|
273
|
+
web/client/dist/assets/Banner-BDixHB-p.js,sha256=JJ-PB0KWHtMn8hnl3xoZzk7AmSDA4ZOfAh8ILorhGoY,1544
|
|
274
|
+
web/client/dist/assets/ChevronDownIcon-D_X0FuzI.js,sha256=OYfu6gcdj9npa62e9eGh9HIHnCsokIoVoavrbQ1azHk,553
|
|
275
|
+
web/client/dist/assets/ChevronRightIcon-Ci-vtEDD.js,sha256=hQsG7P3Awg9f-bPX-R-RVV1lxtdrkxwYhq0pJMCc8gQ,553
|
|
276
|
+
web/client/dist/assets/Content-UFxrHkDI.js,sha256=_bE_rcMFr2nZyV7cj6ZsEQK-mCMnEdfe5BAzL-QRRxo,37120
|
|
277
|
+
web/client/dist/assets/Content-oIWFleXF.js,sha256=Uj34iStpCRqJIPqRk_gfdYDksKwXoh_dwVjeSDYKPL4,762
|
|
278
|
+
web/client/dist/assets/Data-CLMGP4j8.js,sha256=36LvJxDj4hKD7xNDZWRvhMNkaBkZSeC4VyJqqm4UgqM,935
|
|
279
|
+
web/client/dist/assets/DataCatalog-3BLO9jd2.js,sha256=n0E4Dh7vl32Z1y3pQe8SQ53dpa7WYENCGWBNigJ86PM,122423
|
|
280
|
+
web/client/dist/assets/Editor-3TWmSfut.js,sha256=fz-qLyXjFj9iDj8JCblc7FxQQ0bkXW6OKHtQT4NWOy4,43432
|
|
281
|
+
web/client/dist/assets/Editor-CScUJsI9.js,sha256=Yc7D7jjtoOPjnSHwa3y8VcxssCf1pdkCD9BPlH5X-ac,1490
|
|
282
|
+
web/client/dist/assets/Errors-Dg9IT6GW.js,sha256=J11w-z5tEbIWFx3NAh97zp3pf2H3qLyWHvk9MEvjJiI,1322
|
|
283
|
+
web/client/dist/assets/FileExplorer-BtGXfFe1.js,sha256=iymIyxpfnyK66wtN_DyaVwhx0ctPNdqMAvk6Wqg9ODM,111732
|
|
284
|
+
web/client/dist/assets/Footer-B_18qn6L.js,sha256=aatmjRuwjnhcMszPb_ves1NLJF8EesgCuwsrlE-sNn8,700
|
|
285
|
+
web/client/dist/assets/Header-BIhjjExl.js,sha256=BR1Jln2rljPBlZh2UP1PPH_qTsoXoGa-jq5qfSXSVL8,11424
|
|
286
|
+
web/client/dist/assets/Input-DZVp-T-c.js,sha256=yd-xY_nLOLa5olGqFdbhBxrvGmktyrWi_U76pxHfBRo,74100
|
|
287
|
+
web/client/dist/assets/Lineage-DKjxAj6r.js,sha256=NLM4lHT3cDnuJO0zrBB5FwU0vwXcx9s9Dy0It8gcf3o,961
|
|
288
|
+
web/client/dist/assets/ListboxShow-B9WQbaml.js,sha256=htZun7Dm5tZ9wiS4zFqMM2LQDcdYeB2jmo3DCK63PnA,17746
|
|
289
|
+
web/client/dist/assets/ModelLineage-MOGS_tcv.js,sha256=FYsi0eapVcdDvkIzOpIEljBwZqCCV_ckBQRT-dqYdrc,16556
|
|
290
|
+
web/client/dist/assets/Models-C0kma0wJ.js,sha256=YWIN_AlLpyoSWShmE9w0197P1UdjSE4fvpBv0atuExE,2153
|
|
291
|
+
web/client/dist/assets/Page-yGHiQgIZ.js,sha256=Dwya48SWdVSpp_BK0E0vBBzGjkCY0AnqA_lLIKx4kRk,589
|
|
292
|
+
web/client/dist/assets/Plan-DWtNBwNf.js,sha256=KkorkOaImkoDv6BxXSFstemp5Zkd8vuDHg7ob54adRY,666
|
|
293
|
+
web/client/dist/assets/PlusCircleIcon-DTPvu0Q9.js,sha256=ou7tLljQwiAxriiOecQvGiQh1TaEKT_kFVEjPDiOg7o,11175
|
|
294
|
+
web/client/dist/assets/ReportErrors-C0yNCCMn.js,sha256=iahsDuzXWyy8JN5VerCxAHujbhwJpz4m_exf87esl3g,5417
|
|
295
|
+
web/client/dist/assets/Root-C33PD4Lp.js,sha256=TutxKlte3o8hGtuhw7KjBNn_1CoQsMckLVKsTibmjrc,46591
|
|
296
|
+
web/client/dist/assets/SearchList-DBo20Eyw.js,sha256=ShXNunIwEj76NN2OeLflTta7NFDMJFiS1gXu7bjjLCI,291986
|
|
297
|
+
web/client/dist/assets/SelectEnvironment-C7g9UP89.js,sha256=EMBWv9gvfG1KyjgWuRKgZoVHOBiNGlyc8DgLNMbCU2c,33099
|
|
298
|
+
web/client/dist/assets/SourceList--1bRy5wi.js,sha256=qiLdQLd7s0rV6bsGD96uAvomqLRkXlTLdQT1SAgnq7g,3205
|
|
299
|
+
web/client/dist/assets/SourceListItem-BHapbzta.js,sha256=3HGfJO2QRVY_AQkSTZvUmzwJQKzzy3UCRhzL1qybFWM,1106
|
|
300
|
+
web/client/dist/assets/SplitPane-CazWmOU8.js,sha256=AqNDg1OMY3Gf-gBHKxkKiYUTVRLU4pezfwBSQ_I-uF0,10439
|
|
301
|
+
web/client/dist/assets/Tests-RpyW36kr.js,sha256=aSJP--DQFJDsnHSSpiSJEKvpOYthvTtPtHjnuBQ9te0,975
|
|
302
|
+
web/client/dist/assets/Welcome-Bp53remK.js,sha256=D-fHRwweR56Y59DKbvd0yPYyQqi8rIHBiaPr5F901hE,354
|
|
303
303
|
web/client/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js,sha256=WQq4BXvAMsPhT58adqrv_QHaYJQT-xKIiBnKBDPB-uk,239
|
|
304
|
-
web/client/dist/assets/context-
|
|
305
|
-
web/client/dist/assets/context-
|
|
306
|
-
web/client/dist/assets/editor-
|
|
307
|
-
web/client/dist/assets/file-
|
|
304
|
+
web/client/dist/assets/context-BS6KWtz-.js,sha256=UGxY-I5ziTrIGSeHtuWL74vskW_C1h8B1FxAWZ0Q73A,2044062
|
|
305
|
+
web/client/dist/assets/context-BtbAVpZW.js,sha256=44e0oVsdXpgXrJ0Qw4UeofXcxT78S81hK-RXvv5_c1E,4522
|
|
306
|
+
web/client/dist/assets/editor-DOmheF0n.js,sha256=fzGwsEoPOcCUH9S8o10NL66zX9b8n_Z7zFNY6wB-PWg,7858
|
|
307
|
+
web/client/dist/assets/file-DnIRvHeq.js,sha256=rW-SbgrDt0PtvFStegckmQps-Pmcf54qnmOEFS_Om8w,2350
|
|
308
308
|
web/client/dist/assets/help-6Q7f7fjd.js,sha256=93Iri9PzpAiPgCyRsrQwABjP2jomAUNR7y2OqHxPf34,445
|
|
309
|
-
web/client/dist/assets/help-
|
|
310
|
-
web/client/dist/assets/index-
|
|
311
|
-
web/client/dist/assets/index-
|
|
312
|
-
web/client/dist/assets/plan-
|
|
313
|
-
web/client/dist/assets/project-
|
|
314
|
-
web/client/dist/assets/transition-
|
|
309
|
+
web/client/dist/assets/help-CBrid8WS.js,sha256=hniy15h60TIVjYh_d6MqYdzdR7Odenj0HgiKf382LFk,57842
|
|
310
|
+
web/client/dist/assets/index-BQLGC90G.js,sha256=0VDRo2LEbGi31jRJ1bEdmPScbJh42ahRwV66pVYFO-M,13514
|
|
311
|
+
web/client/dist/assets/index-C8Tw_Auq.js,sha256=WuN8KijK9Oe_Q61K_IktHOo_DWBz73IXnzrs6KtjZ-E,517239
|
|
312
|
+
web/client/dist/assets/plan-BXjInmzU.js,sha256=O65_eWPnhM1nI6fMeR1s_tt4hsFLV-FqgkYg6lEitNQ,13755
|
|
313
|
+
web/client/dist/assets/project-Dj_oOi4n.js,sha256=qzlWigEWEC_EI3AnLkM4Y7opCBCtU0IcbmpgfXdQkNs,3338
|
|
314
|
+
web/client/dist/assets/transition-CnSw8kwk.js,sha256=cVjVg6_EeARRyj9DIWgRg4m7IA22P_Y0_pGj72U9ahY,34243
|
|
315
315
|
web/client/dist/css/base.css,sha256=JApDmQihY7DRy5Bd30uYMm5NdMKm0QsEOMBsOuK7gyU,9048
|
|
316
316
|
web/client/dist/css/design.css,sha256=9VTHN-aYFVW6I53jUWbV8qaqo87tXyZTYSWFLC_sRQY,17057
|
|
317
317
|
web/client/dist/favicons/favicon.svg,sha256=ZPNT00J77RHUj6Nlh6Z4Puxnp_oq9RSqACjomhDRUXE,1586
|
|
@@ -383,8 +383,8 @@ web/server/api/endpoints/models.py,sha256=SzS5bshzdXyM6hb948sZ_3k-xhpGCHkxkb7pHz
|
|
|
383
383
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
384
384
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
385
385
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
386
|
-
sqlmesh-0.181.2.
|
|
387
|
-
sqlmesh-0.181.2.
|
|
388
|
-
sqlmesh-0.181.2.
|
|
389
|
-
sqlmesh-0.181.2.
|
|
390
|
-
sqlmesh-0.181.2.
|
|
386
|
+
sqlmesh-0.181.2.dev18.dist-info/METADATA,sha256=Wr-2Qtj28J7mDRE2FtiNa5uXwyjfhML_WJ1jLMGi7NQ,25253
|
|
387
|
+
sqlmesh-0.181.2.dev18.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
388
|
+
sqlmesh-0.181.2.dev18.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
389
|
+
sqlmesh-0.181.2.dev18.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
390
|
+
sqlmesh-0.181.2.dev18.dist-info/RECORD,,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as u,j as s,O as f,e as t,I as c,B as d,n as p,m as x}from"./index-
|
|
1
|
+
import{y as u,j as s,O as f,e as t,I as c,B as d,n as p,m as x}from"./index-C8Tw_Auq.js";import{P as j}from"./Page-yGHiQgIZ.js";import{u as h}from"./project-Dj_oOi4n.js";import{S as v}from"./SourceList--1bRy5wi.js";import{S as y}from"./SourceListItem-BHapbzta.js";import"./SplitPane-CazWmOU8.js";import"./file-DnIRvHeq.js";import"./Input-DZVp-T-c.js";import"./index-BQLGC90G.js";function g(){const{pathname:a}=u(),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:n=!1})=>s.jsx(y,{to:e,name:o,text:l,description:m,disabled:n})}),s.jsx(c,{}),s.jsx("div",{className:"py-1 px-1 flex justify-end",children:s.jsx(d,{size:x.sm,variant:p.Neutral,children:"Run All"})})]}),content:s.jsx(f,{})})}export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,c as i,m as a,n,I as p}from"./index-
|
|
1
|
+
import{j as s,c as i,m as a,n,I as p}from"./index-C8Tw_Auq.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-C8Tw_Auq.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-C8Tw_Auq.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 y,R as J,a as O,j as e,n as I,t as Me,b as C,B as te,w as B,m as T,c as g,M as Pe,g as V,J as ze,K as ie,i as M,P as Q,h as H,T as Re,I as re,Q as xe,D as Ue,C as U,s as Le,L as $e,d as Ve,l as Ge,p as He,q as qe,U as Ke,V as Ze,e as Ye}from"./index-CYAA3nVF.js";import{G as Je,B as Qe,F as We,w as Xe,u as Z,S as es,A as ss,a as ge,b as E,E as A,P as L,c as as}from"./SelectEnvironment-LGhN0dhR.js";import{u as x,a as Y,E as z}from"./plan-BaiSs9Um.js";import{B as F}from"./Banner-DoiNAKye.js";import{A as $,F as ye,a as we,p as ns}from"./PlusCircleIcon-C1VPxB8A.js";import{U as ts,C as Ee,I as ls,y as is,o as le,T as rs,p as os,b as cs,F as ds,c as ms,A as us,z as Te,D as ee}from"./transition-CtNxN7ku.js";import{I as q}from"./Input-tR0WpVuK.js";import{T as ps,p as fs}from"./ListboxShow-C9Uz0VvV.js";import{u as Be}from"./project-vqNomsgg.js";import{F as je}from"./context-C8brTRBZ.js";import"./ModelLineage-bdWk08Ab.js";import"./editor-D_hgjDRq.js";import"./file-CyBkQGGI.js";import"./SearchList-wEGQkxPR.js";import"./help-6Q7f7fjd.js";import"./ChevronDownIcon-BEGYfY2e.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList-DHZ9-QtW.js";import"./index-RJnYVUFY.js";function hs({title:s,titleId:a,...t},r){return y.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?y.createElement("title",{id:a},s):null,y.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 W=y.forwardRef(hs);let be=y.createContext(null);be.displayName="GroupContext";let xs=y.Fragment;function js(s){var a;let[t,r]=y.useState(null),[l,i]=We(),[o,u]=Xe(),c=y.useMemo(()=>({switch:t,setSwitch:r,labelledby:l,describedby:o}),[t,r,l,o]),d={},p=s;return J.createElement(u,{name:"Switch.Description"},J.createElement(i,{name:"Switch.Label",props:{htmlFor:(a=c.switch)==null?void 0:a.id,onClick(n){t&&(n.currentTarget.tagName==="LABEL"&&n.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(be.Provider,{value:c},Ee({ourProps:d,theirProps:p,defaultTag:xs,name:"Switch.Group"}))))}let vs="button";function gs(s,a){var t;let r=ls(),{id:l=`headlessui-switch-${r}`,checked:i,defaultChecked:o=!1,onChange:u,disabled:c=!1,name:d,value:p,form:n,...j}=s,m=y.useContext(be),f=y.useRef(null),h=is(f,a,m===null?null:m.setSwitch),[P,S]=ps(i,u,o),D=le(()=>S==null?void 0:S(!P)),N=le(_=>{if(us(_.currentTarget))return _.preventDefault();_.preventDefault(),D()}),k=le(_=>{_.key===Te.Space?(_.preventDefault(),D()):_.key===Te.Enter&&fs(_.currentTarget)}),w=le(_=>_.preventDefault()),R=y.useMemo(()=>({checked:P}),[P]),pe={id:l,ref:h,role:"switch",type:rs(s,f),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,disabled:c,onClick:N,onKeyUp:k,onKeyPress:w},fe=os();return y.useEffect(()=>{var _;let b=(_=f.current)==null?void 0:_.closest("form");b&&o!==void 0&&fe.addEventListener(b,"reset",()=>{S(o)})},[f,S]),J.createElement(J.Fragment,null,d!=null&&P&&J.createElement(cs,{features:ms.Hidden,...ds({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:c,form:n,checked:P,name:d,value:p})}),Ee({ourProps:pe,theirProps:j,slot:R,defaultTag:vs,name:"Switch"}))}let ys=ts(gs),ws=js,he=Object.assign(ys,{Group:ws,Label:Qe,Description:Je});function bs(){const s=O(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(F,{variant:I.Warning,children:e.jsx($,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(F.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ye,{className:"w-5 text-warning-500"}):e.jsx(we,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx($.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(F.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 Ns(s=0){return y.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function ks({run:s,apply:a,cancel:t,reset:r}){const l=Me(),{change_categorization:i}=Z(),o=O(b=>b.modules),u=O(b=>b.environment),c=O(b=>b.environments),d=O(b=>b.addConfirmation),p=O(b=>b.setShowConfirmation),n=x(b=>b.planAction),j=x(b=>b.planOverview),m=x(b=>b.planApply),f=x(b=>b.planCancel),h=Ns();function P(b){b.stopPropagation(),r()}function S(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const Oe=u.isProd&&C(u.isInitial),ke=Array.from(i.values()).some(Ie=>B(Ie.category));Oe?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:ke?["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:`${c.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[c.size>1&&e.jsx(es,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{p(!1)},size:T.md}),e.jsx(ss,{className:"w-full",size:T.md,onAdd:()=>{p(!1)}})]})]})}):ke?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 w=j.isFailed||m.isFailed||f.isSuccessful,R=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(w),pe=n.isApplying||f.isCancelling||m.isRunning&&j.isFinished,fe=w||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),_=o.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(ee,{appear:!0,show:R,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",children:R&&e.jsx(te,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:h,variant:f.isSuccessful?I.Danger:I.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[z.RunningTask,z.Running,z.Run,z.Applying,z.ApplyBackfill,z.ApplyVirtual,z.ApplyChangesAndBackfill,z.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[pe&&e.jsx(te,{onClick:S,variant:I.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[z.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),fe&&e.jsx(te,{onClick:P,variant:I.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),_&&e.jsx(te,{onClick:D,variant:I.Info,children:"Go Back"})]})]})})}function Ps({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:o}){return e.jsxs(he.Group,{as:"div",className:"m-1",children:[e.jsxs(he,{checked:i?!1:a,onChange:t,className:g("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",o,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:g("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(he.Label,{className:g("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function K({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:g("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(Ps,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ts({disabled:s=!1,className:a}){const t=ge(),{start:r,end:l,isInitialPlanRun:i}=Z();return e.jsxs("div",{className:g("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(q,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2023-12-13",value:r,onInput:c=>{c.stopPropagation(),t({type:E.DateStart,start:c.target.value})}})}),e.jsx(q,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2022-12-13",value:l,onInput:c=>{c.stopPropagation(),t({type:E.DateEnd,end:c.target.value})}})})]})}function Cs(){const s=ge(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:o,restate_models:u,isInitialPlanRun:c,create_from:d,include_unmodified:p}=Z(),n=y.useRef(null),j=x(N=>N.planAction),m=x(N=>N.planOverview),f=x(N=>N.planApply),h=O(N=>N.environment),P=O(N=>N.environments),S=Pe.getOnlyRemote(Array.from(P));y.useEffect(()=>{s({type:E.PlanOptions,...m.plan_options,skip_tests:!1})},[]);const D=j.isProcessing||j.isDone||f.isFinished||m.isLatest&&C(j.isRun)||m.isVirtualUpdate;return y.useEffect(()=>{var N;B(n.current)||j.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,j]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:g(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ts,{className:g(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(F,{children:e.jsx($,{defaultOpen:j.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{ref:n,className:g("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(F.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(ye,{className:"h-5 w-5 text-neutral-400"}):e.jsx(we,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs($.Panel,{unmount:!1,className:g("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:g(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(h.isProd)&&e.jsx(q,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:S.length<2,children:({className:k,disabled:w})=>e.jsx(q.Selector,{className:g(k,"w-full"),list:Pe.getOnlyRemote(Array.from(P)).filter(R=>R!==h).map(R=>({value:R.name,text:R.name})),onChange:R=>{s({type:E.PlanOptions,create_from:R})},value:d,disabled:w})}),e.jsx(q,{className:"w-full",label:"Restate Models",info:`Restate data for specified models and models
|
|
1
|
+
import{r as y,R as J,a as O,j as e,n as I,t as Me,b as C,B as te,w as B,m as T,c as g,M as Pe,g as V,J as ze,K as ie,i as M,P as Q,h as H,T as Re,I as re,Q as xe,D as Ue,C as U,s as Le,L as $e,d as Ve,l as Ge,p as He,q as qe,U as Ke,V as Ze,e as Ye}from"./index-C8Tw_Auq.js";import{G as Je,B as Qe,F as We,w as Xe,u as Z,S as es,A as ss,a as ge,b as E,E as A,P as L,c as as}from"./SelectEnvironment-C7g9UP89.js";import{u as x,a as Y,E as z}from"./plan-BXjInmzU.js";import{B as F}from"./Banner-BDixHB-p.js";import{A as $,F as ye,a as we,p as ns}from"./PlusCircleIcon-DTPvu0Q9.js";import{U as ts,C as Ee,I as ls,y as is,o as le,T as rs,p as os,b as cs,F as ds,c as ms,A as us,z as Te,D as ee}from"./transition-CnSw8kwk.js";import{I as q}from"./Input-DZVp-T-c.js";import{T as ps,p as fs}from"./ListboxShow-B9WQbaml.js";import{u as Be}from"./project-Dj_oOi4n.js";import{F as je}from"./context-BS6KWtz-.js";import"./ModelLineage-MOGS_tcv.js";import"./editor-DOmheF0n.js";import"./file-DnIRvHeq.js";import"./SearchList-DBo20Eyw.js";import"./help-6Q7f7fjd.js";import"./ChevronDownIcon-D_X0FuzI.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SourceList--1bRy5wi.js";import"./index-BQLGC90G.js";function hs({title:s,titleId:a,...t},r){return y.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?y.createElement("title",{id:a},s):null,y.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 W=y.forwardRef(hs);let be=y.createContext(null);be.displayName="GroupContext";let xs=y.Fragment;function js(s){var a;let[t,r]=y.useState(null),[l,i]=We(),[o,u]=Xe(),c=y.useMemo(()=>({switch:t,setSwitch:r,labelledby:l,describedby:o}),[t,r,l,o]),d={},p=s;return J.createElement(u,{name:"Switch.Description"},J.createElement(i,{name:"Switch.Label",props:{htmlFor:(a=c.switch)==null?void 0:a.id,onClick(n){t&&(n.currentTarget.tagName==="LABEL"&&n.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},J.createElement(be.Provider,{value:c},Ee({ourProps:d,theirProps:p,defaultTag:xs,name:"Switch.Group"}))))}let vs="button";function gs(s,a){var t;let r=ls(),{id:l=`headlessui-switch-${r}`,checked:i,defaultChecked:o=!1,onChange:u,disabled:c=!1,name:d,value:p,form:n,...j}=s,m=y.useContext(be),f=y.useRef(null),h=is(f,a,m===null?null:m.setSwitch),[P,S]=ps(i,u,o),D=le(()=>S==null?void 0:S(!P)),N=le(_=>{if(us(_.currentTarget))return _.preventDefault();_.preventDefault(),D()}),k=le(_=>{_.key===Te.Space?(_.preventDefault(),D()):_.key===Te.Enter&&fs(_.currentTarget)}),w=le(_=>_.preventDefault()),R=y.useMemo(()=>({checked:P}),[P]),pe={id:l,ref:h,role:"switch",type:rs(s,f),tabIndex:s.tabIndex===-1?0:(t=s.tabIndex)!=null?t:0,"aria-checked":P,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,disabled:c,onClick:N,onKeyUp:k,onKeyPress:w},fe=os();return y.useEffect(()=>{var _;let b=(_=f.current)==null?void 0:_.closest("form");b&&o!==void 0&&fe.addEventListener(b,"reset",()=>{S(o)})},[f,S]),J.createElement(J.Fragment,null,d!=null&&P&&J.createElement(cs,{features:ms.Hidden,...ds({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:c,form:n,checked:P,name:d,value:p})}),Ee({ourProps:pe,theirProps:j,slot:R,defaultTag:vs,name:"Switch"}))}let ys=ts(gs),ws=js,he=Object.assign(ys,{Group:ws,Label:Qe,Description:Je});function bs(){const s=O(a=>a.environment);return e.jsx("div",{className:"flex flex-col px-4 py-2 w-full",children:e.jsx(F,{variant:I.Warning,children:e.jsx($,{defaultOpen:!1,children:({open:a})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{className:"w-full flex items-center justify-between",children:[e.jsx(F.Label,{className:"w-full",children:s.isInitialProd?"Initializing Prod Environment":"Prod Environment"}),s.isInitialProd&&e.jsx(e.Fragment,{children:a?e.jsx(ye,{className:"w-5 text-warning-500"}):e.jsx(we,{className:"w-5 text-warning-500"})})]}),s.isInitialProd&&e.jsx($.Panel,{className:"px-2 text-sm mt-2",children:e.jsx(F.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 Ns(s=0){return y.useCallback(a=>{setTimeout(()=>{a==null||a.focus()},s)},[s])}function ks({run:s,apply:a,cancel:t,reset:r}){const l=Me(),{change_categorization:i}=Z(),o=O(b=>b.modules),u=O(b=>b.environment),c=O(b=>b.environments),d=O(b=>b.addConfirmation),p=O(b=>b.setShowConfirmation),n=x(b=>b.planAction),j=x(b=>b.planOverview),m=x(b=>b.planApply),f=x(b=>b.planCancel),h=Ns();function P(b){b.stopPropagation(),r()}function S(b){b.stopPropagation(),t()}function D(b){b.stopPropagation(),l(-1)}function N(b){b.stopPropagation();const Oe=u.isProd&&C(u.isInitial),ke=Array.from(i.values()).some(Ie=>B(Ie.category));Oe?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:ke?["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:`${c.size>1?"Select or ":""}Add Environment`}),e.jsxs("div",{className:"flex items-center relative",children:[c.size>1&&e.jsx(es,{className:"mr-2",showAddEnvironment:!1,onSelect:()=>{p(!1)},size:T.md}),e.jsx(ss,{className:"w-full",size:T.md,onAdd:()=>{p(!1)}})]})]})}):ke?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 w=j.isFailed||m.isFailed||f.isSuccessful,R=C(n.isCancelling)&&C(n.isDone)&&(n.isProcessing?C(f.isSuccessful):!0)&&C(w),pe=n.isApplying||f.isCancelling||m.isRunning&&j.isFinished,fe=w||C(n.isProcessing)&&C(n.isRun)&&C(n.isDone),_=o.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(ee,{appear:!0,show:R,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",children:R&&e.jsx(te,{disabled:n.isProcessing||f.isSuccessful||n.isDone,onClick:n.isRun?k:f.isSuccessful?void 0:N,ref:h,variant:f.isSuccessful?I.Danger:I.Primary,autoFocus:!0,className:"trasition-all duration-300 ease-in-out",children:e.jsx("span",{children:Y.getActionDisplayName(n,f.isSuccessful?[]:[z.RunningTask,z.Running,z.Run,z.Applying,z.ApplyBackfill,z.ApplyVirtual,z.ApplyChangesAndBackfill,z.ApplyMetadata],f.isSuccessful?"Canceled":"Done")})})})}),e.jsxs("div",{className:"flex items-center",children:[pe&&e.jsx(te,{onClick:S,variant:I.Danger,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:Y.getActionDisplayName(n,n.isProcessing&&C(f.isSuccessful)?[z.Cancelling]:[],f.isSuccessful?"Finishing Cancellation...":"Cancel")}),fe&&e.jsx(te,{onClick:P,variant:I.Info,disabled:n.isCancelling||n.isProcessing&&f.isSuccessful,children:"Start Over"}),_&&e.jsx(te,{onClick:D,variant:I.Info,children:"Go Back"})]})]})})}function Ps({label:s,enabled:a,setEnabled:t,a11yTitle:r,size:l=T.md,disabled:i=!1,className:o}){return e.jsxs(he.Group,{as:"div",className:"m-1",children:[e.jsxs(he,{checked:i?!1:a,onChange:t,className:g("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",o,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:g("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(he.Label,{className:g("text-xs font-light ml-1 text-neutral-600 dark:text-neutral-400"),children:s})]})}function K({label:s,info:a,enabled:t,disabled:r=!1,setEnabled:l,className:i}){return e.jsxs("div",{className:g("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(Ps,{disabled:r,enabled:t,setEnabled:l,size:T.lg})]})}function Ts({disabled:s=!1,className:a}){const t=ge(),{start:r,end:l,isInitialPlanRun:i}=Z();return e.jsxs("div",{className:g("flex w-full flex-wrap md:flex-nowrap",a),children:[e.jsx(q,{className:"w-full md:w-[50%]",label:"Start Date (UTC)",info:"The start datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2023-12-13",value:r,onInput:c=>{c.stopPropagation(),t({type:E.DateStart,start:c.target.value})}})}),e.jsx(q,{className:"w-full md:w-[50%]",label:"End Date (UTC)",info:"The end datetime of the interval",disabled:s||i,children:({disabled:o,className:u})=>e.jsx(q.Textfield,{className:g(u,"w-full"),disabled:o,placeholder:"2022-12-13",value:l,onInput:c=>{c.stopPropagation(),t({type:E.DateEnd,end:c.target.value})}})})]})}function Cs(){const s=ge(),{skip_tests:a,no_gaps:t,skip_backfill:r,forward_only:l,auto_apply:i,no_auto_categorization:o,restate_models:u,isInitialPlanRun:c,create_from:d,include_unmodified:p}=Z(),n=y.useRef(null),j=x(N=>N.planAction),m=x(N=>N.planOverview),f=x(N=>N.planApply),h=O(N=>N.environment),P=O(N=>N.environments),S=Pe.getOnlyRemote(Array.from(P));y.useEffect(()=>{s({type:E.PlanOptions,...m.plan_options,skip_tests:!1})},[]);const D=j.isProcessing||j.isDone||f.isFinished||m.isLatest&&C(j.isRun)||m.isVirtualUpdate;return y.useEffect(()=>{var N;B(n.current)||j.isProcessing&&n.current.classList.contains("--is-open")&&((N=n.current)==null||N.click())},[n,j]),e.jsxs("form",{className:"w-full",children:[e.jsx("fieldset",{className:g(D&&"opacity-50 cursor-not-allowed"),children:e.jsx(Ts,{className:g(D&&"pointer-events-none")})}),e.jsx("fieldset",{className:"my-2",children:e.jsx(F,{children:e.jsx($,{defaultOpen:j.isRun,children:({open:N})=>e.jsxs(e.Fragment,{children:[e.jsxs($.Button,{ref:n,className:g("w-full flex items-center",N&&"--is-open"),children:[e.jsxs(F.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(ye,{className:"h-5 w-5 text-neutral-400"}):e.jsx(we,{className:"h-5 w-5 text-neutral-400"})]}),e.jsxs($.Panel,{unmount:!1,className:g("py-4 text-sm text-neutral-500",D&&"opacity-50 cursor-not-allowed"),children:[e.jsx("div",{className:g(D&&"pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap md:flex-nowrap",children:[C(h.isProd)&&e.jsx(q,{className:"w-full",label:"Create From Environment",info:"The environment to base the plan on rather than local files",disabled:S.length<2,children:({className:k,disabled:w})=>e.jsx(q.Selector,{className:g(k,"w-full"),list:Pe.getOnlyRemote(Array.from(P)).filter(R=>R!==h).map(R=>({value:R.name,text:R.name})),onChange:R=>{s({type:E.PlanOptions,create_from:R})},value:d,disabled:w})}),e.jsx(q,{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,U as l,w as e,j as r,V as n,e as d}from"./index-
|
|
1
|
+
import{d as a,U as l,w as e,j as r,V as n,e as d}from"./index-C8Tw_Auq.js";import{D as u}from"./ReportErrors-C0yNCCMn.js";import"./PlusCircleIcon-DTPvu0Q9.js";import"./transition-CnSw8kwk.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./SplitPane-CazWmOU8.js";function j(){const{errors:i}=a(),{id:s}=l(),o=e(s)?void 0:Array.from(i).find(t=>t.id===s);return r.jsx("div",{className:"flex overflow-auto w-full h-full",children:e(o)?r.jsx(n,{link:d.Errors,description:e(s)?void 0:`Error ${s} 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:o,scope:o.key,withSplitPane:!0})})})})}export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as x,a as m,w as h,Q as o,a5 as c,a6 as D,a7 as T,r as b,j as u}from"./index-
|
|
1
|
+
import{U as x,a as m,w as h,Q as o,a5 as c,a6 as D,a7 as T,r as b,j as u}from"./index-C8Tw_Auq.js";import{g,T as E}from"./help-CBrid8WS.js";import{u as r}from"./editor-DOmheF0n.js";import"./index-BQLGC90G.js";import"./Input-DZVp-T-c.js";import"./file-DnIRvHeq.js";const d=24*60*60*1e3;function Q(){const{modelName:a}=x(),p=m(e=>e.models),s=m(e=>e.lastSelectedModel),f=r(e=>e.previewTable),i=r(e=>e.setPreviewQuery),n=r(e=>e.setPreviewTable),t=h(a)||a===(s==null?void 0:s.name)?s:p.get(encodeURI(a)),l={model:t.displayName,start:o(c(Date.now()-d)),end:o(new Date),execution_time:o(c(Date.now()-d)),limit:1e3},{refetch:v}=D(l),{refetch:w}=T(l);return b.useEffect(()=>{i(void 0),n(void 0),v().then(({data:e})=>{i(e==null?void 0:e.sql)}),w().then(({data:e})=>{n(g(e))})},[t]),u.jsx("div",{className:"flex overflow-hidden w-full h-full px-2",children:u.jsx(E,{headline:t==null?void 0:t.displayName,data:f??[[],[]]})})}export{Q as default};
|