mage-ai 0.8.80__py3-none-any.whl → 0.8.82__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/presenters/SyncPresenter.py +1 -0
- mage_ai/api/resources/GitBranchResource.py +1 -1
- mage_ai/api/resources/SyncResource.py +83 -41
- mage_ai/data_preparation/executors/block_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +40 -3
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +21 -9
- mage_ai/data_preparation/models/utils.py +5 -3
- mage_ai/data_preparation/models/variable.py +59 -26
- mage_ai/data_preparation/preferences.py +24 -16
- mage_ai/data_preparation/sync/__init__.py +23 -4
- mage_ai/data_preparation/sync/git_sync.py +7 -0
- mage_ai/data_preparation/templates/callbacks/base.jinja +2 -2
- mage_ai/data_preparation/templates/callbacks/orchestration/triggers/default.jinja +1 -1
- mage_ai/data_preparation/templates/repo/.gitignore +13 -0
- mage_ai/orchestration/db/models/oauth.py +16 -7
- mage_ai/orchestration/pipeline_scheduler.py +17 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/QB08hs4sID1RqTCyVc19P/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1005-2ad5a1b201c2e742.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1424-fbc7f741303c0aa0.js → 1424-c6b0d89ffb4a10b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-5a56c22fbc5626c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3714-d472531256ed5cf5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/547-f3f2ccd9dcde9459.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7400-e5e39ae07de554b2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{8180-325d712ecbed97ce.js → 8180-0c53312021451bb7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8735-1a3d39946add4aea.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/894-6290def8665695eb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6d3f5778166f4294.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9270-e35a5eb3dae4c3ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-b25383366d854e8e.js → _app-13fb8342c87983a1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-8b81ef90680f3f72.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-9e96b956c26fbc92.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-3260a2dac8df672e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-9e519ad50f639e00.js → [...slug]-a4fbf12642923051.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-fe65c89f1e86b4b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-302e1bd9fbf39994.js → block-runs-5c02b08404dbdd20.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-25a125d43569c70d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-5244d6c5d80af010.js → monitors-092f364100995ba6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-90170de1e6fe8f04.js → [run]-50e60f6b49eed3f0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-88994d0bcf41cf9e.js → runs-ed9903520a27f4c8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-55748e7fcf738d91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-456d84426ffe5025.js → [...slug]-1725c0871027ae05.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-05f43f9eaf6528db.js → triggers-0d2c9f28ae21cde8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-2f4b987a8dba3484.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3ca183fdcb571bde.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-3b26db0dd0962783.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-bd5e22e49c1f7bc2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-85073f9cc09fabf7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-0d2260ad08dfe44a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-d74d0f163157ba65.js +1 -0
- mage_ai/server/frontend_dist/files.html +25 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +14 -14
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/tests/api/operations/test_syncs.py +97 -0
- mage_ai/tests/data_preparation/models/test_block.py +20 -14
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +23 -2
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/METADATA +2 -1
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/RECORD +91 -85
- mage_ai/server/frontend_dist/_next/static/K62oaHK5x3k16vVxdvIWf/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1005-38fa861ca54679db.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-187a4db6073d95df.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/547-833b70469e82cb2b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5540-1025c6b3e65558b3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6edafc5a2521efdf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9129-8ae88897c3817909.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-eba67ac0edfdea1b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-128dd171c6fff7ac.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-d90d32812b2be89e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-7635e7031335de0f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3c42f05001416811.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-c73dab1d63317556.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-f5626eb662337ad5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-292e840e9386335e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-353dc1ef2fadf70b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-cd838435ed1b8383.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-d15ea617ef145b32.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-df30a0006fd775b8.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_ssgManifest.js +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return T},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return A},jv:function(){return m},nz:function(){return b},oh:function(){return d},qn:function(){return l},t1:function(){return h},y9:function(){return R}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),a=e(90880),d=68;function l(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,a=t||{},d=a.blockColor,l=a.isSelected,s=a.theme;return l?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||d===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||d===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||d===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||d===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||d===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===n||d===i.Lq.GREY||i.tf.CUSTOM===n&&!d)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(l(n.blockType,n).accent,";\n }\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),R=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:d,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,d)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return a},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,a=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return f},DA:function(){return p},HX:function(){return A},J8:function(){return m},L8:function(){return c},Lq:function(){return l},Qj:function(){return h},Ut:function(){return O},V4:function(){return E},VZ:function(){return b},dO:function(){return s},f2:function(){return T},iZ:function(){return R},t6:function(){return u},tf:function(){return d}});var r,o,i,c,u,a=e(82394);!function(n){n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output"}(c||(c={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,l,s=(r={},(0,a.Z)(r,u.MARKDOWN,"MD"),(0,a.Z)(r,u.PYTHON,"PY"),(0,a.Z)(r,u.R,"R"),(0,a.Z)(r,u.SQL,"SQL"),(0,a.Z)(r,u.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var p,f=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],A=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],R=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(p||(p={}));var T=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],E=(o={},(0,a.Z)(o,d.EXTENSION,"Callback"),(0,a.Z)(o,d.CUSTOM,"Custom"),(0,a.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,d.DATA_LOADER,"Data loader"),(0,a.Z)(o,d.EXTENSION,"Extension"),(0,a.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,d.SENSOR,"Sensor"),(0,a.Z)(o,d.MARKDOWN,"Markdown"),(0,a.Z)(o,d.TRANSFORMER,"Transformer"),o),O=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,a.Z)(i,d.DATA_EXPORTER,"DE"),(0,a.Z)(i,d.DATA_LOADER,"DL"),(0,a.Z)(i,d.SCRATCHPAD,"SP"),(0,a.Z)(i,d.SENSOR,"SR"),(0,a.Z)(i,d.MARKDOWN,"MD"),(0,a.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),a=e(82684),d=e(92083),l=e.n(d),s=e(9518),p=e(21679),f=e(16634),b=e(67971),m=e(87372),A=e(87465),h=e(41788),R=e(55378),T=e(86673),E=e(82531),O=e(23831),v=e(67400),_=e(43032),Z=e(92953),D=e(44162),g=e(24224),x=e(28598);function y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function C(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?y(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function S(n){var t=n.pipeline,e=(0,a.useContext)(s.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],d=t.uuid,h=E.ZP.pipelines.detail(d,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,y=(0,a.useMemo)((function(){return C(C({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:d})}),[h,d]),S=E.ZP.pipeline_schedules.pipelines.list(d).data,N=(0,a.useMemo)((function(){return null===S||void 0===S?void 0:S.pipeline_schedules}),[S]),L=(0,a.useMemo)((function(){return(0,g.HK)(null===y||void 0===y?void 0:y.blocks,(function(n){return n.uuid}))||{}}),[y]),P={pipeline_uuid:d};(c||0===c)&&(P.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",P),M=k.data,w=k.mutate,I=((null===M||void 0===M?void 0:M.monitor_stat)||{}).stats,j=(0,a.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),B=(0,a.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=j.map((function(n){return C({date:n},c[n]||{})}));return C(C({},n),{},(0,i.Z)({},r,u))}),{})}),[j,I]),X=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,x.jsx)(A.Z,{breadcrumbs:X,monitorType:Z.a.BLOCK_RUNS,pipeline:y,subheader:(0,x.jsx)(b.Z,{children:(0,x.jsxs)(R.Z,{backgroundColor:O.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),w(t)):(w(),u(null))},value:c||"initial",children:[(0,x.jsx)("option",{value:"initial",children:"All"}),N&&N.map((function(n){return(0,x.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,x.jsx)(T.Z,{mx:2,children:B&&Object.entries(B).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,x.jsxs)(T.Z,{mt:3,children:[(0,x.jsxs)(b.Z,{alignItems:"center",children:[(0,x.jsx)(T.Z,{mx:1,children:(0,x.jsx)(f.Z,{color:(0,D.qn)(null===(t=L[c])||void 0===t?void 0:t.type,{blockColor:null===(r=L[c])||void 0===r?void 0:r.color,theme:e}).accent,size:_.ZG,square:!0})}),(0,x.jsx)(m.Z,{level:4,children:c})]}),(0,x.jsx)(T.Z,{mt:1,children:(0,x.jsx)(p.Z,{colors:v.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:v.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:Z.C,xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}S.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,h.Z)(S)},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(50094)}])}},function(n){n.O(0,[844,7607,5896,2714,1424,1005,547,9129,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(n,t,e){"use strict";e.d(t,{HC:function(){return T},Kf:function(){return s},Nk:function(){return p},PY:function(){return f},gE:function(){return A},jv:function(){return m},nz:function(){return b},oh:function(){return d},qn:function(){return l},t1:function(){return h},y9:function(){return R}});var r=e(9518),o=e(23831),i=e(86422),c=e(73942),u=e(49125),a=e(90880),d=68;function l(n,t){var e,r,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,u=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,a=t||{},d=a.blockColor,l=a.isSelected,s=a.theme;return l?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||d===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||d===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||d===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||d===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||d===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===n||d===i.Lq.GREY||i.tf.CUSTOM===n&&!d)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(l(n.blockType,n).accent,";\n }\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),R=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:d,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,d)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return a},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,a=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return f},DA:function(){return p},HX:function(){return A},J8:function(){return m},L8:function(){return c},Lq:function(){return l},Qj:function(){return h},Ut:function(){return O},V4:function(){return E},VZ:function(){return b},dO:function(){return s},f2:function(){return T},iZ:function(){return R},t6:function(){return u},tf:function(){return d}});var r,o,i,c,u,a=e(82394);!function(n){n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output"}(c||(c={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,l,s=(r={},(0,a.Z)(r,u.MARKDOWN,"MD"),(0,a.Z)(r,u.PYTHON,"PY"),(0,a.Z)(r,u.R,"R"),(0,a.Z)(r,u.SQL,"SQL"),(0,a.Z)(r,u.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var p,f=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],A=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],R=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(p||(p={}));var T=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],E=(o={},(0,a.Z)(o,d.EXTENSION,"Callback"),(0,a.Z)(o,d.CUSTOM,"Custom"),(0,a.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,d.DATA_LOADER,"Data loader"),(0,a.Z)(o,d.EXTENSION,"Extension"),(0,a.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,d.SENSOR,"Sensor"),(0,a.Z)(o,d.MARKDOWN,"Markdown"),(0,a.Z)(o,d.TRANSFORMER,"Transformer"),o),O=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];i={},(0,a.Z)(i,d.DATA_EXPORTER,"DE"),(0,a.Z)(i,d.DATA_LOADER,"DL"),(0,a.Z)(i,d.SCRATCHPAD,"SP"),(0,a.Z)(i,d.SENSOR,"SR"),(0,a.Z)(i,d.MARKDOWN,"MD"),(0,a.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),a=e(82684),d=e(92083),l=e.n(d),s=e(9518),p=e(21679),f=e(16634),b=e(67971),m=e(87372),A=e(87465),h=e(41788),R=e(55378),T=e(86673),E=e(82531),O=e(23831),v=e(67400),_=e(43032),Z=e(92953),D=e(44162),g=e(24224),x=e(28598);function y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function C(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?y(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function S(n){var t=n.pipeline,e=(0,a.useContext)(s.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],d=t.uuid,h=E.ZP.pipelines.detail(d,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,y=(0,a.useMemo)((function(){return C(C({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:d})}),[h,d]),S=E.ZP.pipeline_schedules.pipelines.list(d).data,N=(0,a.useMemo)((function(){return null===S||void 0===S?void 0:S.pipeline_schedules}),[S]),L=(0,a.useMemo)((function(){return(0,g.HK)(null===y||void 0===y?void 0:y.blocks,(function(n){return n.uuid}))||{}}),[y]),P={pipeline_uuid:d};(c||0===c)&&(P.pipeline_schedule_id=Number(c));var k=E.ZP.monitor_stats.detail("block_run_count",P),M=k.data,w=k.mutate,I=((null===M||void 0===M?void 0:M.monitor_stat)||{}).stats,j=(0,a.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),B=(0,a.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,t){var e=(0,o.Z)(t,2),r=e[0],c=e[1].data,u=j.map((function(n){return C({date:n},c[n]||{})}));return C(C({},n),{},(0,i.Z)({},r,u))}),{})}),[j,I]),X=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,x.jsx)(A.Z,{breadcrumbs:X,monitorType:Z.a.BLOCK_RUNS,pipeline:y,subheader:(0,x.jsx)(b.Z,{children:(0,x.jsxs)(R.Z,{backgroundColor:O.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var t=n.target.value;"initial"!==t?(u(t),w(t)):(w(),u(null))},value:c||"initial",children:[(0,x.jsx)("option",{value:"initial",children:"All"}),N&&N.map((function(n){return(0,x.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,x.jsx)(T.Z,{mx:2,children:B&&Object.entries(B).map((function(n){var t,r,i=(0,o.Z)(n,2),c=i[0],u=i[1];return(0,x.jsxs)(T.Z,{mt:3,children:[(0,x.jsxs)(b.Z,{alignItems:"center",children:[(0,x.jsx)(T.Z,{mx:1,children:(0,x.jsx)(f.Z,{color:(0,D.qn)(null===(t=L[c])||void 0===t?void 0:t.type,{blockColor:null===(r=L[c])||void 0===r?void 0:r.color,theme:e}).accent,size:_.ZG,square:!0})}),(0,x.jsx)(m.Z,{level:4,children:c})]}),(0,x.jsx)(T.Z,{mt:1,children:(0,x.jsx)(p.Z,{colors:v.BAR_STACK_COLORS,data:u,getXValue:function(n){return n.date},height:200,keys:v.BAR_STACK_STATUSES,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:Z.C,xLabelFormat:function(n){return l()(n).format("MMM DD")}})})]},c)}))})})}S.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(t){var e;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,h.Z)(S)},83542:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runs",function(){return e(50094)}])}},function(n){n.O(0,[844,7607,5896,2714,1424,1005,547,7400,9774,2888,179],(function(){return t=83542,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(n,e,t){"use strict";t.d(e,{HC:function(){return y},Kf:function(){return s},Nk:function(){return f},PY:function(){return p},gE:function(){return v},jv:function(){return m},nz:function(){return h},oh:function(){return l},qn:function(){return d},t1:function(){return b},y9:function(){return g}});var r=t(9518),o=t(23831),i=t(86422),c=t(73942),u=t(49125),a=t(90880),l=68;function d(n,e){var t,r,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,u=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,a=e||{},l=a.blockColor,d=a.isSelected,s=a.theme;return d?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),f=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(n.blockType,n).accent,";\n }\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),g=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:l,"px;\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l)},43032:function(n,e,t){"use strict";t.d(e,{Cl:function(){return u},Nk:function(){return a},ZG:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=1.5*i.iI,u=1*c+i.iI/2,a=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},92953:function(n,e,t){"use strict";var r;t.d(e,{C:function(){return o},a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var o=-50},87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return v}});t(82684);var r=t(34376),o=t(87372),i=t(60547),c=t(86673),u=t(19711),a=t(2850),l=t(9518),d=t(23831),s=t(49125),f=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(92953),h=t(59920),m=t(28598);var v=function(n){var e=n.breadcrumbs,t=n.children,l=n.errors,d=n.monitorType,v=n.pipeline,b=n.setErrors,g=n.subheader,y=(0,r.useRouter)();return(0,m.jsx)(i.Z,{before:(0,m.jsxs)(a.M,{children:[(0,m.jsx)(c.Z,{p:s.cd,children:(0,m.jsx)(o.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===v||void 0===v?void 0:v.uuid,"/monitors"))},selected:p.a.PIPELINE_RUNS==d,children:(0,m.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===v||void 0===v?void 0:v.uuid,"/monitors/block-runs"))},selected:p.a.BLOCK_RUNS==d,children:(0,m.jsx)(u.ZP,{children:"Block runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===v||void 0===v?void 0:v.uuid,"/monitors/block-runtime"))},selected:p.a.BLOCK_RUNTIME==d,children:(0,m.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:l,pageName:h.M.MONITOR,pipeline:v,setErrors:b,subheader:g,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return c},W:function(){return i}});var r=t(9518),o=t(3055),i=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],o.Mz)},45739:function(n,e,t){"use strict";t.d(e,{K:function(){return o}});var r=t(31969),o=function(n){var e=n||r.Z,t=e.brand,o=t.earth200,i=t.earth300,c=t.earth400,u=t.energy200,a=t.energy300,l=t.energy400,d=t.fire200,s=t.fire300,f=t.fire400,p=t.water200,h=t.water300,m=t.water400,v=t.wind200,b=t.wind300,g=t.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([g,m,f,l,c,b,h,s,a,i,v,p,d,u,o])}},52359:function(n,e,t){"use strict";var r=t(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(n,e,t){"use strict";t.d(e,{P5:function(){return o},Vs:function(){return i}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function o(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function i(n,e,t){var r,o;if("undefined"===typeof n||"undefined"===typeof e)return 0;var i=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return p},DA:function(){return f},HX:function(){return v},J8:function(){return m},L8:function(){return c},Lq:function(){return d},Qj:function(){return b},Ut:function(){return R},V4:function(){return A},VZ:function(){return h},dO:function(){return s},f2:function(){return y},iZ:function(){return g},t6:function(){return u},tf:function(){return l}});var r,o,i,c,u,a=t(82394);!function(n){n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output"}(c||(c={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var l,d,s=(r={},(0,a.Z)(r,u.MARKDOWN,"MD"),(0,a.Z)(r,u.PYTHON,"PY"),(0,a.Z)(r,u.R,"R"),(0,a.Z)(r,u.SQL,"SQL"),(0,a.Z)(r,u.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(d||(d={}));var f,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],h=[l.DATA_EXPORTER,l.DATA_LOADER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],v=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],b=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],g=[l.CALLBACK,l.CHART,l.EXTENSION,l.SCRATCHPAD,l.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(f||(f={}));var y=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],A=(o={},(0,a.Z)(o,l.EXTENSION,"Callback"),(0,a.Z)(o,l.CUSTOM,"Custom"),(0,a.Z)(o,l.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,l.DATA_LOADER,"Data loader"),(0,a.Z)(o,l.EXTENSION,"Extension"),(0,a.Z)(o,l.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,l.SENSOR,"Sensor"),(0,a.Z)(o,l.MARKDOWN,"Markdown"),(0,a.Z)(o,l.TRANSFORMER,"Transformer"),o),R=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];i={},(0,a.Z)(i,l.DATA_EXPORTER,"DE"),(0,a.Z)(i,l.DATA_LOADER,"DL"),(0,a.Z)(i,l.SCRATCHPAD,"SP"),(0,a.Z)(i,l.SENSOR,"SR"),(0,a.Z)(i,l.MARKDOWN,"MD"),(0,a.Z)(i,l.TRANSFORMER,"TF")},68805:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(75582),i=t(82394),c=t(38860),u=t.n(c),a=t(82684),l=t(92083),d=t.n(l),s=t(16634),f=t(67971),p=t(87372),h=t(68735),m=t(87465),v=t(41788),b=t(86673),g=t(55378),y=t(19711),A=t(82531),R=t(23831),x=t(73942),E=t(43032),T=t(92953),O=t(9518),_=t(44162),Z=t(24224),k=t(28598);function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function D(n){var e=n.pipeline,t=(0,a.useContext)(O.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],l=e.uuid,v=A.ZP.pipelines.detail(l,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,w=(0,a.useMemo)((function(){return C(C({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:l})}),[v,l]),D=A.ZP.pipeline_schedules.pipelines.list(l).data,N=(0,a.useMemo)((function(){return null===D||void 0===D?void 0:D.pipeline_schedules}),[D]),S=(0,a.useMemo)((function(){return(0,Z.HK)(null===w||void 0===w?void 0:w.blocks,(function(n){return n.uuid}))||{}}),[w]),L={pipeline_uuid:l};(c||0===c)&&(L.pipeline_schedule_id=Number(c));var M=A.ZP.monitor_stats.detail("block_run_time",L),P=M.data,I=M.mutate;(0,a.useEffect)((function(){I(c)}),[I,c]);var j=((null===P||void 0===P?void 0:P.monitor_stat)||{}).stats,B=(0,a.useMemo)((function(){for(var n=new Date,e=[],t=0;t<90;t++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}),[]),U=(0,a.useMemo)((function(){if(j)return Object.entries(j).reduce((function(n,e){var t=(0,o.Z)(e,2),r=t[0],c=t[1].data;return C(C({},n),{},(0,i.Z)({},r,B.map((function(n){return{x:n,y:n in c?[c[n]]:null}}))))}),{})}),[j]),X=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[w]);return(0,k.jsx)(m.Z,{breadcrumbs:X,monitorType:T.a.BLOCK_RUNTIME,pipeline:w,subheader:(0,k.jsx)(f.Z,{children:(0,k.jsxs)(g.Z,{backgroundColor:R.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var e=n.target.value;"initial"!==e?(u(e),I(e)):(I(),u(null))},value:c||"initial",children:[(0,k.jsx)("option",{value:"initial",children:"All"}),N&&N.map((function(n){return(0,k.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,k.jsx)(b.Z,{mx:2,children:U&&Object.entries(U).map((function(n,e){var r,i,c=(0,o.Z)(n,2),u=c[0],a=c[1];return(0,k.jsxs)(b.Z,{mt:2,children:[(0,k.jsxs)(f.Z,{alignItems:"center",children:[(0,k.jsx)(b.Z,{mx:1,children:(0,k.jsx)(s.Z,{color:(0,_.qn)(null===(r=S[u])||void 0===r?void 0:r.type,{blockColor:null===(i=S[u])||void 0===i?void 0:i.color,theme:t}).accent,size:E.ZG,square:!0})}),(0,k.jsx)(p.Z,{level:4,children:u})]}),(0,k.jsx)("div",{style:{backgroundColor:R.Z.background.chartBlock,borderRadius:"".concat(x.TR,"px"),marginTop:"8px"},children:(0,k.jsx)(h.Z,{data:a,getX:function(n){return d()(n.x).valueOf()},gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:200,hideGridX:!0,margin:{top:10,bottom:30,left:35,right:-1},noCurve:!0,renderXTooltipContent:function(n){return(0,k.jsx)(y.ZP,{center:!0,inverted:!0,small:!0,children:d()(n.x).format("MMM DD")})},renderYTooltipContent:function(n){var e,t=null===n||void 0===n||null===(e=n.y)||void 0===e?void 0:e[0];return void 0!==t&&(0,k.jsxs)(y.ZP,{center:!0,inverted:!0,small:!0,children:[t.toFixed?t.toFixed(3):t,"s"]})},thickStroke:!0,xLabelFormat:function(n){return d()(n).format("MMM DD")},xLabelRotate:!1})})]},"".concat(u,"_").concat(e))}))})})}D.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(e){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,v.Z)(D)},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return d},kC:function(){return s},vg:function(){return g},kE:function(){return T},T3:function(){return R},Mp:function(){return f},Pb:function(){return a},HW:function(){return A},wX:function(){return p},x6:function(){return h},_6:function(){return m},zf:function(){return y},Y6:function(){return E},wE:function(){return O},J3:function(){return v},We:function(){return l},QV:function(){return x},C5:function(){return b}});var r=t(75582),o=t(17717),i=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],c=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function d(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function h(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function m(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,u=n[c-1];t="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(i){var a=r?h(o):o;return"".concat(a," ").concat(t)}return t}function v(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function b(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function g(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(v(n.toLowerCase()))}function y(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),u=c[0],a=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(a)*l&&(e=m(u,Math.round(n/l)))}})),e}function A(n){return!isNaN(n)}function R(n){return"".concat(h(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function x(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function E(){return"".concat((0,u.mp)(i)," ").concat((0,u.mp)(c))}function T(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function O(n){var e,t=n.split(o.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(o.sep)}},76017:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return t(68805)}])}},function(n){n.O(0,[3662,844,7607,5896,2714,9832,1424,1005,547,8735,9774,2888,179],(function(){return e=76017,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[844,7607,5896,2714,1424,1005,547,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[844,7607,5896,2714,1424,1005,547,7400,9774,2888,179],(function(){return _=89677,n(n.s=_);var _}));var _=n.O();_N_E=_}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{27125:function(e,n,t){"use strict";var r=t(82684),i=t(12691),u=t.n(i),o=t(34376),l=t.n(o),c=t(9518),s=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),b=t(58180),h=t(19711),j=t(10503),O=t(49125),g=t(44162),m=t(24224),x=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,i=e.pipeline,o=e.selectedRun,y=(0,r.useContext)(c.ThemeContext),Z=(i||{}).uuid,P=(0,r.useMemo)((function(){return i.blocks||[]}),[i]),_=(0,r.useMemo)((function(){return(0,m.HK)(P,(function(e){return e.uuid}))}),[P]);return(0,x.jsx)(b.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===o||void 0===o?void 0:o.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,o,c=e.block_uuid,b=e.completed_at,m=e.created_at,P=e.id,D=e.pipeline_schedule_id,k=e.pipeline_schedule_name,w=e.status,E=c,T=E.split(":");f.qL.INTEGRATION===i.type&&(E=T[0],r=T[1],o=T[2]);var N=_[E];return N||(N=_[T[0]]),[(0,x.jsx)(h.ZP,{monospace:!0,default:!0,children:m}),(0,x.jsx)(h.ZP,{danger:s.V.FAILED===w,default:s.V.CANCELLED===w,info:s.V.INITIAL===w,monospace:!0,success:s.V.COMPLETED===w,warning:s.V.RUNNING===w,children:w}),(0,x.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(D),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,x.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:k})}),(0,x.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(E),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,x.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,x.jsx)(d.Z,{color:(0,g.qn)(null===(n=N)||void 0===n?void 0:n.type,{blockColor:null===(t=N)||void 0===t?void 0:t.color,theme:y}).accent,size:1.5*O.iI,square:!0}),(0,x.jsx)(v.Z,{mr:1}),(0,x.jsxs)(h.ZP,{monospace:!0,children:[E,r&&": ",r&&(0,x.jsx)(h.ZP,{default:!0,inline:!0,monospace:!0,children:r}),o>=0&&": ",o>=0&&(0,x.jsx)(h.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,x.jsx)(h.ZP,{monospace:!0,default:!0,children:b||"-"}),(0,x.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(P))},children:(0,x.jsx)(j.B4,{default:!0,size:2*O.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return y},ZP:function(){return Z},u$:function(){return g}});var r=t(75582),i=t(82394),u=t(26304),o=t(32316),l=t(22673),c=t(48957),s=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=76,m={uuid:"Run details"},x={uuid:"Dependency tree"},y=[x,m];function Z(e){var n=e.height,t=e.heightOffset,i=e.pipeline,j=e.selectedRun,Z=e.selectedTab,P=e.setSelectedTab,_=O({},(0,u.Z)(e,h));j?_.blockStatus=(0,f.IJ)(null===j||void 0===j?void 0:j.block_runs):_.noStatus=!0;var D=(0,v.Kn)(null===j||void 0===j?void 0:j.variables)?O({},null===j||void 0===j?void 0:j.variables):(null===j||void 0===j?void 0:j.variables)||{},k=null===j||void 0===j?void 0:j.event_variables;if(k&&(0,v.Kn)(k)&&!(0,v.Qr)(k))if((0,v.Kn)(D)&&D.hasOwnProperty("event")){var w=(0,v.Kn)(D.event)?D.event:{};D.event=O(O({},w),k)}else D.event=O({},k);var E=[];D&&JSON.stringify(D,null,2).split("\n").forEach((function(e){E.push(" ".concat(e))}));var T=j&&[["Run ID",null===j||void 0===j?void 0:j.id],["Variables",(0,b.jsx)(l.Z,{language:"json",small:!0,source:E.join("\n")},"variable_value")]],N=j&&(0,b.jsx)(s.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:T.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],u=t[1];return[(0,b.jsx)(a.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,b.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:u},"val_".concat(n))]})),uuid:"LogDetail"})}),C=Z&&P;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(s.Z,{py:p.cd,children:(0,b.jsx)(o.Z,{onClickTab:P,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:y})}),(!C||x.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(c.Z,O(O({},_),{},{height:n,heightOffset:(t||0)+(C?g:0),pipeline:i})),m.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&N]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return v},tL:function(){return f},vJ:function(){return b}});var r,i,u=t(82394),o=t(92083),l=t.n(o);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,o=n.status,c=null;i&&r&&(c=l()(r).valueOf()-l()(i).valueOf());return s(s({},e),{},(0,u.Z)({},t,{runtime:c,status:o}))}),{})}function d(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function p(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var f=(r={},(0,u.Z)(r,i.DAY,86400),(0,u.Z)(r,i.HOUR,3600),(0,u.Z)(r,i.MINUTE,60),(0,u.Z)(r,i.SECOND,1),r);function v(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function b(e,n){return e*f[n]}},47409:function(e,n,t){"use strict";t.d(n,{Az:function(){return l},BF:function(){return o},Do:function(){return s},VO:function(){return u},sZ:function(){return c}});var r,i=t(82394),u=t(66050).V,o=[u.INITIAL,u.RUNNING],l=[u.CANCELLED,u.COMPLETED,u.FAILED],c="__mage_variables",s=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r)},23588:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return K}});var r=t(77837),i=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(83455),a=t(27125),d=t(60328),p=t(34744),f=t(93461),v=t(67971),b=t(87372),h=t(60547),j=t(47409),O=t(98781),g=t(41788),m=t(86673),x=t(54283),y=t(19711),Z=t(82531),P=t(26304),_=t(32316),D=t(62976),k=t(48957),w=t(82635),E=t(49125),T=t(64155),N=t(56681),C=t(19395),I=t(90211),R=t(28598),S=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M={uuid:"Dependency tree"},U={uuid:"Block output"},F=[M,U];var B=t(59920),H=t(96510),V=t(66653);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function J(e){var n,t=e.pipeline,r=e.pipelineRun,u=(0,c.useState)(null),o=u[0],l=u[1],g=(0,c.useState)(F[0]),L=g[0],G=g[1],J=(0,c.useState)(null),K=J[0],Y=J[1],z=t.uuid,W=Z.ZP.pipelines.detail(z,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,X=(0,c.useMemo)((function(){return q(q({},null===W||void 0===W?void 0:W.pipeline),{},{uuid:z})}),[W,z]),$=Z.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,Q=(0,c.useMemo)((function(){return(null===$||void 0===$?void 0:$.pipeline_run)||{}}),[$]),ee=Q.block_runs,ne=Q.execution_date,te=Q.id,re=Q.status,ie=(0,s.Db)(Z.ZP.pipeline_runs.useUpdate(te),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){l(null)},onErrorCallback:function(e,n){return Y({errors:n,response:e})}})}}),ue=(0,i.Z)(ie,2),oe=ue[0],le=ue[1].isLoading,ce=Z.ZP.outputs.block_runs.list(null===o||void 0===o?void 0:o.id),se=ce.data,ae=ce.loading,de=(null===se||void 0===se||null===(n=se.outputs)||void 0===n?void 0:n[0])||{},pe=de.sample_data,fe=de.text_data,ve=de.type;(0,c.useEffect)((function(){o||(null===L||void 0===L?void 0:L.uuid)!==U.uuid||G(M)}),[o,null===L||void 0===L?void 0:L.uuid]);var be=(0,c.useMemo)((function(){return ee||[]}),[Q]),he=((null===pe||void 0===pe?void 0:pe.columns)||[]).slice(0,40),je=(null===pe||void 0===pe?void 0:pe.rows)||[],Oe=(0,c.useMemo)((function(){return(0,R.jsx)(a.Z,{blockRuns:be,onClickRow:function(e){return l((function(n){var t=be[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipeline:X,selectedRun:o})}),[be,X,o]),ge=(null===X||void 0===X?void 0:X.type)!==O.qL.STREAMING&&re&&re!==j.VO.COMPLETED,me=((null===X||void 0===X?void 0:X.type)===O.qL.PYTHON||(null===X||void 0===X?void 0:X.type)===O.qL.INTEGRATION)&&o&&j.Az.includes(re);return(0,R.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(z,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return ne}}],buildSidekick:function(e){return function(e){var n=e.blockRuns,t=e.columns,r=e.dataType,i=e.height,u=e.heightOffset,o=e.loadingData,l=e.pipeline,c=e.renderColumnHeader,s=e.rows,a=e.selectedRun,d=e.selectedTab,p=e.setSelectedTab,f=e.textData,b=A({},(0,P.Z)(e,S));b.blockStatus=(0,C.IJ)(n);var h=(0,R.jsx)(m.Z,{ml:2,children:(0,R.jsx)(y.ZP,{children:"This block run has no output."})}),j=s&&s.length>0?(0,R.jsx)(D.Z,{columnHeaderHeight:c?T.Eh:0,columns:t,height:i-u-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:s}):h,O=(0,I.Pb)(f)?JSON.stringify(JSON.parse(f),null,2):f,g=f?(0,R.jsx)(m.Z,{ml:2,children:(0,R.jsx)(y.ZP,{monospace:!0,children:(0,R.jsx)("pre",{children:O})})}):h,Z=d&&p;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{position:"fixed",top:"50px"},children:Z&&(0,R.jsx)(m.Z,{py:E.cd,children:(0,R.jsx)(_.Z,{onClickTab:p,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:a?F:F.slice(0,1)})})}),(0,R.jsxs)("div",{style:{position:"relative",top:"75px"},children:[(!a||M.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,R.jsx)(k.Z,A(A({},b),{},{height:i,heightOffset:(u||0)+(Z?N.u$:0),pipeline:l})),a&&U.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,R.jsxs)(R.Fragment,{children:[o&&(0,R.jsx)(m.Z,{mt:2,children:(0,R.jsx)(v.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,R.jsx)(x.Z,{color:"white",large:!0})})}),!o&&r===w.Gi.TABLE&&j,!o&&r!==w.Gi.TABLE&&g]})]})]})}(q(q({},e),{},{blockRuns:be,columns:he,dataType:ve,loadingData:ae,rows:je,selectedRun:o,selectedTab:L,setSelectedTab:G,showDynamicBlocks:!0,textData:fe}))},errors:K,pageName:B.M.RUNS,pipeline:X,setErrors:Y,subheader:(ge||me)&&(0,R.jsxs)(v.Z,{alignItems:"center",children:[j.BF.includes(re)&&(0,R.jsxs)(f.Z,{children:[(0,R.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,R.jsx)(m.Z,{mr:1}),(0,R.jsx)(x.Z,{inverted:!0}),(0,R.jsx)(m.Z,{mr:2})]}),ge&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(d.Z,{danger:!0,loading:le,onClick:function(e){(0,V.j)(e),oe({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,R.jsx)(m.Z,{mr:2})]}),me&&(0,R.jsxs)(d.Z,{loading:le,onClick:function(e){(0,V.j)(e),oe({pipeline_run:{from_block_uuid:o.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",o.block_uuid,")"]})]}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(B.M.RUNS,"_").concat(z,"_").concat(te),children:[(0,R.jsx)(m.Z,{mt:E.cd,px:E.cd,children:(0,R.jsx)(b.Z,{level:5,children:"Block runs"})}),(0,R.jsx)(p.Z,{light:!0,mt:E.cd,short:!0}),Oe]})}J.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var K=(0,g.Z)(J)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[844,7607,5896,4804,1774,9350,5872,2125,1424,1005,8180,547,8957,1286,5682,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{27125:function(e,n,t){"use strict";var r=t(82684),i=t(12691),u=t.n(i),o=t(34376),l=t.n(o),c=t(9518),s=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),b=t(58180),h=t(19711),j=t(10503),O=t(49125),g=t(44162),m=t(24224),x=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,i=e.pipeline,o=e.selectedRun,y=(0,r.useContext)(c.ThemeContext),Z=(i||{}).uuid,P=(0,r.useMemo)((function(){return i.blocks||[]}),[i]),_=(0,r.useMemo)((function(){return(0,m.HK)(P,(function(e){return e.uuid}))}),[P]);return(0,x.jsx)(b.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===o||void 0===o?void 0:o.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,o,c=e.block_uuid,b=e.completed_at,m=e.created_at,P=e.id,D=e.pipeline_schedule_id,k=e.pipeline_schedule_name,w=e.status,E=c,T=E.split(":");f.qL.INTEGRATION===i.type&&(E=T[0],r=T[1],o=T[2]);var N=_[E];return N||(N=_[T[0]]),[(0,x.jsx)(h.ZP,{monospace:!0,default:!0,children:m}),(0,x.jsx)(h.ZP,{danger:s.V.FAILED===w,default:s.V.CANCELLED===w,info:s.V.INITIAL===w,monospace:!0,success:s.V.COMPLETED===w,warning:s.V.RUNNING===w,children:w}),(0,x.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(D),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,x.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:k})}),(0,x.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(E),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,x.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,x.jsx)(d.Z,{color:(0,g.qn)(null===(n=N)||void 0===n?void 0:n.type,{blockColor:null===(t=N)||void 0===t?void 0:t.color,theme:y}).accent,size:1.5*O.iI,square:!0}),(0,x.jsx)(v.Z,{mr:1}),(0,x.jsxs)(h.ZP,{monospace:!0,children:[E,r&&": ",r&&(0,x.jsx)(h.ZP,{default:!0,inline:!0,monospace:!0,children:r}),o>=0&&": ",o>=0&&(0,x.jsx)(h.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,x.jsx)(h.ZP,{monospace:!0,default:!0,children:b||"-"}),(0,x.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(P))},children:(0,x.jsx)(j.B4,{default:!0,size:2*O.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return y},ZP:function(){return Z},u$:function(){return g}});var r=t(75582),i=t(82394),u=t(26304),o=t(32316),l=t(22673),c=t(48957),s=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=76,m={uuid:"Run details"},x={uuid:"Dependency tree"},y=[x,m];function Z(e){var n=e.height,t=e.heightOffset,i=e.pipeline,j=e.selectedRun,Z=e.selectedTab,P=e.setSelectedTab,_=O({},(0,u.Z)(e,h));j?_.blockStatus=(0,f.IJ)(null===j||void 0===j?void 0:j.block_runs):_.noStatus=!0;var D=(0,v.Kn)(null===j||void 0===j?void 0:j.variables)?O({},null===j||void 0===j?void 0:j.variables):(null===j||void 0===j?void 0:j.variables)||{},k=null===j||void 0===j?void 0:j.event_variables;if(k&&(0,v.Kn)(k)&&!(0,v.Qr)(k))if((0,v.Kn)(D)&&D.hasOwnProperty("event")){var w=(0,v.Kn)(D.event)?D.event:{};D.event=O(O({},w),k)}else D.event=O({},k);var E=[];D&&JSON.stringify(D,null,2).split("\n").forEach((function(e){E.push(" ".concat(e))}));var T=j&&[["Run ID",null===j||void 0===j?void 0:j.id],["Variables",(0,b.jsx)(l.Z,{language:"json",small:!0,source:E.join("\n")},"variable_value")]],N=j&&(0,b.jsx)(s.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:T.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],u=t[1];return[(0,b.jsx)(a.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,b.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:u},"val_".concat(n))]})),uuid:"LogDetail"})}),C=Z&&P;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(s.Z,{py:p.cd,children:(0,b.jsx)(o.Z,{onClickTab:P,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:y})}),(!C||x.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,b.jsx)(c.Z,O(O({},_),{},{height:n,heightOffset:(t||0)+(C?g:0),pipeline:i})),m.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&N]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return v},tL:function(){return f},vJ:function(){return b}});var r,i,u=t(82394),o=t(92083),l=t.n(o);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,o=n.status,c=null;i&&r&&(c=l()(r).valueOf()-l()(i).valueOf());return s(s({},e),{},(0,u.Z)({},t,{runtime:c,status:o}))}),{})}function d(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function p(e){return"string"!==typeof e?e:d(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var f=(r={},(0,u.Z)(r,i.DAY,86400),(0,u.Z)(r,i.HOUR,3600),(0,u.Z)(r,i.MINUTE,60),(0,u.Z)(r,i.SECOND,1),r);function v(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function b(e,n){return e*f[n]}},47409:function(e,n,t){"use strict";t.d(n,{Az:function(){return l},BF:function(){return o},Do:function(){return s},VO:function(){return u},sZ:function(){return c}});var r,i=t(82394),u=t(66050).V,o=[u.INITIAL,u.RUNNING],l=[u.CANCELLED,u.COMPLETED,u.FAILED],c="__mage_variables",s=(r={},(0,i.Z)(r,u.CANCELLED,"Cancelled"),(0,i.Z)(r,u.COMPLETED,"Done"),(0,i.Z)(r,u.FAILED,"Failed"),(0,i.Z)(r,u.INITIAL,"Ready"),(0,i.Z)(r,u.RUNNING,"Running"),r)},23588:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return K}});var r=t(77837),i=t(75582),u=t(82394),o=t(38860),l=t.n(o),c=t(82684),s=t(83455),a=t(27125),d=t(60328),p=t(34744),f=t(93461),v=t(67971),b=t(87372),h=t(60547),j=t(47409),O=t(98781),g=t(41788),m=t(86673),x=t(54283),y=t(19711),Z=t(82531),P=t(26304),_=t(32316),D=t(62976),k=t(48957),w=t(82635),E=t(49125),T=t(64155),N=t(56681),C=t(19395),I=t(90211),R=t(28598),S=["blockRuns","columns","dataType","height","heightOffset","loadingData","pipeline","renderColumnHeader","rows","selectedRun","selectedTab","setSelectedTab","textData"];function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M={uuid:"Dependency tree"},U={uuid:"Block output"},F=[M,U];var B=t(59920),H=t(96510),V=t(66653);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function J(e){var n,t=e.pipeline,r=e.pipelineRun,u=(0,c.useState)(null),o=u[0],l=u[1],g=(0,c.useState)(F[0]),L=g[0],G=g[1],J=(0,c.useState)(null),K=J[0],Y=J[1],z=t.uuid,W=Z.ZP.pipelines.detail(z,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,X=(0,c.useMemo)((function(){return q(q({},null===W||void 0===W?void 0:W.pipeline),{},{uuid:z})}),[W,z]),$=Z.ZP.pipeline_runs.detail(r.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}).data,Q=(0,c.useMemo)((function(){return(null===$||void 0===$?void 0:$.pipeline_run)||{}}),[$]),ee=Q.block_runs,ne=Q.execution_date,te=Q.id,re=Q.status,ie=(0,s.Db)(Z.ZP.pipeline_runs.useUpdate(te),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){l(null)},onErrorCallback:function(e,n){return Y({errors:n,response:e})}})}}),ue=(0,i.Z)(ie,2),oe=ue[0],le=ue[1].isLoading,ce=Z.ZP.outputs.block_runs.list(null===o||void 0===o?void 0:o.id),se=ce.data,ae=ce.loading,de=(null===se||void 0===se||null===(n=se.outputs)||void 0===n?void 0:n[0])||{},pe=de.sample_data,fe=de.text_data,ve=de.type;(0,c.useEffect)((function(){o||(null===L||void 0===L?void 0:L.uuid)!==U.uuid||G(M)}),[o,null===L||void 0===L?void 0:L.uuid]);var be=(0,c.useMemo)((function(){return ee||[]}),[Q]),he=((null===pe||void 0===pe?void 0:pe.columns)||[]).slice(0,40),je=(null===pe||void 0===pe?void 0:pe.rows)||[],Oe=(0,c.useMemo)((function(){return(0,R.jsx)(a.Z,{blockRuns:be,onClickRow:function(e){return l((function(n){var t=be[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipeline:X,selectedRun:o})}),[be,X,o]),ge=(null===X||void 0===X?void 0:X.type)!==O.qL.STREAMING&&re&&re!==j.VO.COMPLETED,me=((null===X||void 0===X?void 0:X.type)===O.qL.PYTHON||(null===X||void 0===X?void 0:X.type)===O.qL.INTEGRATION)&&o&&j.Az.includes(re);return(0,R.jsxs)(h.Z,{breadcrumbs:[{label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(z,"/runs"),href:"/pipelines/[pipeline]/runs"}},{label:function(){return ne}}],buildSidekick:function(e){return function(e){var n=e.blockRuns,t=e.columns,r=e.dataType,i=e.height,u=e.heightOffset,o=e.loadingData,l=e.pipeline,c=e.renderColumnHeader,s=e.rows,a=e.selectedRun,d=e.selectedTab,p=e.setSelectedTab,f=e.textData,b=A({},(0,P.Z)(e,S));b.blockStatus=(0,C.IJ)(n);var h=(0,R.jsx)(m.Z,{ml:2,children:(0,R.jsx)(y.ZP,{children:"This block run has no output."})}),j=s&&s.length>0?(0,R.jsx)(D.Z,{columnHeaderHeight:c?T.Eh:0,columns:t,height:i-u-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:s}):h,O=(0,I.Pb)(f)?JSON.stringify(JSON.parse(f),null,2):f,g=f?(0,R.jsx)(m.Z,{ml:2,children:(0,R.jsx)(y.ZP,{monospace:!0,children:(0,R.jsx)("pre",{children:O})})}):h,Z=d&&p;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{position:"fixed",top:"50px"},children:Z&&(0,R.jsx)(m.Z,{py:E.cd,children:(0,R.jsx)(_.Z,{onClickTab:p,selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:a?F:F.slice(0,1)})})}),(0,R.jsxs)("div",{style:{position:"relative",top:"75px"},children:[(!a||M.uuid===(null===d||void 0===d?void 0:d.uuid))&&(0,R.jsx)(k.Z,A(A({},b),{},{height:i,heightOffset:(u||0)+(Z?N.u$:0),pipeline:l})),a&&U.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,R.jsxs)(R.Fragment,{children:[o&&(0,R.jsx)(m.Z,{mt:2,children:(0,R.jsx)(v.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,R.jsx)(x.Z,{color:"white",large:!0})})}),!o&&r===w.Gi.TABLE&&j,!o&&r!==w.Gi.TABLE&&g]})]})]})}(q(q({},e),{},{blockRuns:be,columns:he,dataType:ve,loadingData:ae,rows:je,selectedRun:o,selectedTab:L,setSelectedTab:G,showDynamicBlocks:!0,textData:fe}))},errors:K,pageName:B.M.RUNS,pipeline:X,setErrors:Y,subheader:(ge||me)&&(0,R.jsxs)(v.Z,{alignItems:"center",children:[j.BF.includes(re)&&(0,R.jsxs)(f.Z,{children:[(0,R.jsx)(y.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline is running"}),(0,R.jsx)(m.Z,{mr:1}),(0,R.jsx)(x.Z,{inverted:!0}),(0,R.jsx)(m.Z,{mr:2})]}),ge&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(d.Z,{danger:!0,loading:le,onClick:function(e){(0,V.j)(e),oe({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),(0,R.jsx)(m.Z,{mr:2})]}),me&&(0,R.jsxs)(d.Z,{loading:le,onClick:function(e){(0,V.j)(e),oe({pipeline_run:{from_block_uuid:o.block_uuid,pipeline_run_action:"retry_blocks"}})},outline:!0,primary:!0,children:["Retry from selected block (",o.block_uuid,")"]})]}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(B.M.RUNS,"_").concat(z,"_").concat(te),children:[(0,R.jsx)(m.Z,{mt:E.cd,px:E.cd,children:(0,R.jsx)(b.Z,{level:5,children:"Block runs"})}),(0,R.jsx)(p.Z,{light:!0,mt:E.cd,short:!0}),Oe]})}J.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var K=(0,g.Z)(J)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[844,7607,5896,4804,1774,9350,5872,2125,1424,1005,8180,547,3714,8957,1286,5682,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{59739:function(e,n,t){"use strict";var i=t(56669);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,o,u){if(u!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:r};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},27125:function(e,n,t){"use strict";var i=t(82684),r=t(12691),o=t.n(r),u=t(34376),l=t.n(u),s=t(9518),c=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),h=t(58180),g=t(19711),b=t(10503),m=t(49125),x=t(44162),j=t(24224),_=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,u=e.selectedRun,Z=(0,i.useContext)(s.ThemeContext),y=(r||{}).uuid,O=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),w=(0,i.useMemo)((function(){return(0,j.HK)(O,(function(e){return e.uuid}))}),[O]);return(0,_.jsx)(h.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===u||void 0===u?void 0:u.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,i,u,s=e.block_uuid,h=e.completed_at,j=e.created_at,O=e.id,C=e.pipeline_schedule_id,P=e.pipeline_schedule_name,k=e.status,S=s,I=S.split(":");f.qL.INTEGRATION===r.type&&(S=I[0],i=I[1],u=I[2]);var R=w[S];return R||(R=w[I[0]]),[(0,_.jsx)(g.ZP,{monospace:!0,default:!0,children:j}),(0,_.jsx)(g.ZP,{danger:c.V.FAILED===k,default:c.V.CANCELLED===k,info:c.V.INITIAL===k,monospace:!0,success:c.V.COMPLETED===k,warning:c.V.RUNNING===k,children:k}),(0,_.jsx)(o(),{as:"/pipelines/".concat(y,"/triggers/").concat(C),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:P})}),(0,_.jsx)(o(),{as:"/pipelines/".concat(y,"/edit?block_uuid=").concat(S),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,_.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,_.jsx)(d.Z,{color:(0,x.qn)(null===(n=R)||void 0===n?void 0:n.type,{blockColor:null===(t=R)||void 0===t?void 0:t.color,theme:Z}).accent,size:1.5*m.iI,square:!0}),(0,_.jsx)(v.Z,{mr:1}),(0,_.jsxs)(g.ZP,{monospace:!0,children:[S,i&&": ",i&&(0,_.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:i}),u>=0&&": ",u>=0&&(0,_.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,_.jsx)(g.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(y,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(b.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return Z},ZP:function(){return y},u$:function(){return x}});var i=t(75582),r=t(82394),o=t(26304),u=t(32316),l=t(22673),s=t(48957),c=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(7715),h=t(28598),g=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=76,j={uuid:"Run details"},_={uuid:"Dependency tree"},Z=[_,j];function y(e){var n=e.height,t=e.heightOffset,r=e.pipeline,b=e.selectedRun,y=e.selectedTab,O=e.setSelectedTab,w=m({},(0,o.Z)(e,g));b?w.blockStatus=(0,f.IJ)(null===b||void 0===b?void 0:b.block_runs):w.noStatus=!0;var C=(0,v.Kn)(null===b||void 0===b?void 0:b.variables)?m({},null===b||void 0===b?void 0:b.variables):(null===b||void 0===b?void 0:b.variables)||{},P=null===b||void 0===b?void 0:b.event_variables;if(P&&(0,v.Kn)(P)&&!(0,v.Qr)(P))if((0,v.Kn)(C)&&C.hasOwnProperty("event")){var k=(0,v.Kn)(C.event)?C.event:{};C.event=m(m({},k),P)}else C.event=m({},P);var S=[];C&&JSON.stringify(C,null,2).split("\n").forEach((function(e){S.push(" ".concat(e))}));var I=b&&[["Run ID",null===b||void 0===b?void 0:b.id],["Variables",(0,h.jsx)(l.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],R=b&&(0,h.jsx)(c.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:I.map((function(e,n){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),T=y&&O;return(0,h.jsxs)(h.Fragment,{children:[T&&(0,h.jsx)(c.Z,{py:p.cd,children:(0,h.jsx)(u.Z,{onClickTab:O,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:Z})}),(!T||_.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(s.Z,m(m({},w),{},{height:n,heightOffset:(t||0)+(T?x:0),pipeline:r})),j.uuid===(null===y||void 0===y?void 0:y.uuid)&&R]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),u=t(9518),l=t(65292),s=t(23831),c=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,v=e.source,h=e.wrapLines,g=(0,i.useContext)(u.ThemeContext);function b(e){var i=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(g.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:c.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(g.content||s.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:h,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(b,{value:n})}},children:v})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var i=t(82684),r=t(60328),o=t(67971),u=t(882),l=t(86673),s=t(19711),c=t(99994),a=t(9518),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),p.w5),v=t(66653),h=t(28598);var g=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,p=e.onClickTab,g=e.selectedTabUUID,b=e.small,m=e.tabs,x=(0,i.useMemo)((function(){var e=m.length,n=[];return m.forEach((function(t,i){var a=t.Icon,f=t.IconSelected,m=t.label,x=t.uuid,j=x===g,_=j&&f||a,Z=m?m():x,y=(0,h.jsxs)(o.Z,{alignItems:"center",children:[_&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_,{default:!j,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),(0,h.jsx)(s.ZP,{bold:!0,default:!j,noWrapping:!0,small:!0,children:Z})]});i>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(x))),j?n.push((0,h.jsx)(u.Z,{backgroundGradient:c.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,v.j)(e),p(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},x)):n.push((0,h.jsx)("div",{style:{padding:2},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,v.j)(e),p(t)},outline:!0,small:b,children:y})},"button-tab-".concat(x)))})),n}),[p,g,b,m]),j=(0,h.jsx)(o.Z,{alignItems:"center",children:x});return t?j:(0,h.jsx)(f,{allowScroll:n,noPadding:a,children:j})}},21135:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),s=t(82684),c=t(83455),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(27125),v=t(60328),h=t(32316),g=t(67971),b=t(9518),m=t(23831),x=b.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||m.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||m.Z.borders).medium,";\n ")})),j=t(51099),_=t(60547);var Z=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},y=t(47409),O=t(97496),w=t(41788),C=t(55378),P=t(86673),k=t(54283),S=t(82531),I=t(56681),R=t(66166),T=t(10503),E=t(33766),H=t(59920),M=t(98781),N=t(66050),V=t(49125),D=t(7715),L=t(96510),U=t(59e3);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F={Icon:T.mR,IconSelected:Z,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},B={Icon:T.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},G=[F,B];function W(e){var n,t,i=e.pipeline,o=(0,a.useRouter)(),u=(0,s.useState)(null),l=u[0],p=u[1],b=(0,s.useState)(F),m=b[0],Z=b[1],w=(0,s.useState)(I.G7[0]),T=w[0],z=w[1],W=(0,s.useState)({}),q=W[0],K=W[1],X=(0,s.useState)(null),J=X[0],Q=X[1],Y=(0,s.useMemo)((function(){return F.uuid===(null===m||void 0===m?void 0:m.uuid)}),[null===m||void 0===m?void 0:m.uuid]),$=i.uuid,ee=S.ZP.pipelines.detail($,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ne=(0,s.useMemo)((function(){return A(A({},null===ee||void 0===ee?void 0:ee.pipeline),{},{uuid:$})}),[ee,$]),te=(0,s.useState)(),ie=te[0],re=te[1],oe=(0,U.iV)(),ue=(0,R.Z)(oe),le=null!==oe&&void 0!==oe&&oe.page?oe.page:0;(0,s.useEffect)((function(){var e=oe.pipeline_run_id,n=oe.status;if(!(0,D.Xy)(oe,ue)){var t=A(A({},ue),oe);e?t.pipeline_run_id=e:t.pipeline_uuid=$,n?t.status=n:delete t.status,Q(t),K({})}}),[$,oe,ue]);var se={_limit:30,_offset:30*le,pipeline_uuid:$},ce=(0,D.gR)(A(A({},J),se),["tab","page"]);Y&&(ce=(0,D.gR)(ce,[E.O2]));var ae=S.ZP.block_runs.list(ce,{},{pauseFetch:!J}).data,de=(0,s.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.block_runs)||[]}),[ae]),pe=A({},se);null!==oe&&void 0!==oe&&oe.status&&(pe.status=oe.status),Y||(pe=(0,D.gR)(pe,[E.O2]));var fe=S.ZP.pipeline_runs.list(pe,{refreshInterval:5e3}),ve=fe.data,he=fe.mutate,ge=(0,s.useMemo)((function(){return(null===ve||void 0===ve?void 0:ve.pipeline_runs)||[]}),[ve]),be=(0,s.useMemo)((function(){var e,n;return Y?(null===ve||void 0===ve||null===(e=ve.metadata)||void 0===e?void 0:e.count)||[]:(null===ae||void 0===ae||null===(n=ae.metadata)||void 0===n?void 0:n.count)||[]}),[null===ae||void 0===ae||null===(n=ae.metadata)||void 0===n?void 0:n.count,null===ve||void 0===ve||null===(t=ve.metadata)||void 0===t?void 0:t.count,Y]),me=(0,s.useMemo)((function(){return ge.some((function(e){var n=e.status;return n===N.V.INITIAL||n===N.V.RUNNING}))}),[ge]),xe=(0,s.useMemo)((function(){return Object.values(q||{}).filter((function(e){return null!==e}))}),[q]),je=(0,c.Db)(S.ZP.pipelines.useUpdate($),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){K({}),he()},onErrorCallback:function(e,n){return p({errors:n,response:e})}})}}),_e=(0,r.Z)(je,2),Ze=_e[0],ye=_e[1].isLoading,Oe=(0,R.Z)(m);(0,s.useEffect)((function(){var e=oe.tab;e&&Z(G.find((function(n){return n.uuid===e})))}),[oe,m,Oe]);var we=(0,s.useMemo)((function(){return(0,d.jsx)(P.Z,{p:2,children:(0,d.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=A(A({},oe),{},{page:n>=0?n:0});o.push("/pipelines/[pipeline]/runs","/pipelines/".concat($,"/runs?").concat((0,U.uM)(t)))},page:Number(le),totalPages:Math.ceil(be/30)})})}),[le,$,oe,o,be]),Ce=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(O.Z,{allowBulkSelect:(null===ne||void 0===ne?void 0:ne.type)!==M.qL.STREAMING,fetchPipelineRuns:he,onClickRow:function(e){return re((function(n){var t=ge[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ge,selectedRun:ie,selectedRuns:q,setErrors:p,setSelectedRuns:K}),we]})}),[he,we,null===ne||void 0===ne?void 0:ne.type,ge,ie,q]),Pe=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{blockRuns:de,pipeline:ne}),we]})}),[de,we,ne]);return(0,d.jsxs)(_.Z,{afterHidden:Y&&!ie,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:Y?function(e){return(0,I.ZP)(A(A({},e),{},{selectedRun:ie,selectedTab:T,setSelectedTab:z}))}:function(e){return(0,I.ZP)(e)},errors:l,pageName:H.M.RUNS,pipeline:ne,setErrors:p,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(H.M.RUNS,"_").concat($),children:[(0,d.jsx)(x,{children:(0,d.jsx)(P.Z,{py:1,children:(0,d.jsxs)(g.Z,{alignItems:"center",children:[me&&Y&&(0,d.jsx)(P.Z,{pl:2,children:(0,d.jsx)(v.Z,{danger:!0,loading:ye,onClick:function(){Ze({pipeline:{status:N.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),xe.length>0&&(0,d.jsx)(P.Z,{pl:2,children:(0,d.jsxs)(v.Z,{loading:ye,onClick:function(){Ze({pipeline:{pipeline_runs:xe,status:M.QK.RETRY}})},primary:!0,children:["Retry selected runs (",xe.length,")"]})}),(0,d.jsx)(h.Z,{onClickTab:function(e){var n=e.uuid;Q(null),(0,E.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===m||void 0===m?void 0:m.uuid,tabs:G}),Y&&(0,d.jsxs)(C.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(Q(null),(0,E.u7)({tab:F.uuid},{replaceParams:!0})):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*V.iI,placeholder:"Select run status",value:null===J||void 0===J?void 0:J.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(N.V).map((function(e){return(0,d.jsx)("option",{value:e,children:y.Do[e]},e)}))]})]})})}),ve||ae?(0,d.jsxs)(d.Fragment,{children:[Y&&Ce,B.uuid===(null===m||void 0===m?void 0:m.uuid)&&Pe]}):(0,d.jsx)(P.Z,{m:3,children:(0,d.jsx)(k.Z,{inverted:!0})})]})}W.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var q=(0,w.Z)(W)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(21135)}])}},function(e){e.O(0,[844,7607,4804,1774,9350,1424,1005,8180,547,8957,8312,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{59739:function(e,n,t){"use strict";var i=t(56669);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,o,u){if(u!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:r};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},27125:function(e,n,t){"use strict";var i=t(82684),r=t(12691),o=t.n(r),u=t(34376),l=t.n(u),s=t(9518),c=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),h=t(58180),g=t(19711),b=t(10503),m=t(49125),x=t(44162),j=t(24224),_=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,u=e.selectedRun,Z=(0,i.useContext)(s.ThemeContext),y=(r||{}).uuid,O=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),w=(0,i.useMemo)((function(){return(0,j.HK)(O,(function(e){return e.uuid}))}),[O]);return(0,_.jsx)(h.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===u||void 0===u?void 0:u.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,i,u,s=e.block_uuid,h=e.completed_at,j=e.created_at,O=e.id,C=e.pipeline_schedule_id,P=e.pipeline_schedule_name,k=e.status,S=s,I=S.split(":");f.qL.INTEGRATION===r.type&&(S=I[0],i=I[1],u=I[2]);var R=w[S];return R||(R=w[I[0]]),[(0,_.jsx)(g.ZP,{monospace:!0,default:!0,children:j}),(0,_.jsx)(g.ZP,{danger:c.V.FAILED===k,default:c.V.CANCELLED===k,info:c.V.INITIAL===k,monospace:!0,success:c.V.COMPLETED===k,warning:c.V.RUNNING===k,children:k}),(0,_.jsx)(o(),{as:"/pipelines/".concat(y,"/triggers/").concat(C),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:P})}),(0,_.jsx)(o(),{as:"/pipelines/".concat(y,"/edit?block_uuid=").concat(S),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,_.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,_.jsx)(d.Z,{color:(0,x.qn)(null===(n=R)||void 0===n?void 0:n.type,{blockColor:null===(t=R)||void 0===t?void 0:t.color,theme:Z}).accent,size:1.5*m.iI,square:!0}),(0,_.jsx)(v.Z,{mr:1}),(0,_.jsxs)(g.ZP,{monospace:!0,children:[S,i&&": ",i&&(0,_.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:i}),u>=0&&": ",u>=0&&(0,_.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,_.jsx)(g.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(y,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(b.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return Z},ZP:function(){return y},u$:function(){return x}});var i=t(75582),r=t(82394),o=t(26304),u=t(32316),l=t(22673),s=t(48957),c=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),v=t(7715),h=t(28598),g=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x=76,j={uuid:"Run details"},_={uuid:"Dependency tree"},Z=[_,j];function y(e){var n=e.height,t=e.heightOffset,r=e.pipeline,b=e.selectedRun,y=e.selectedTab,O=e.setSelectedTab,w=m({},(0,o.Z)(e,g));b?w.blockStatus=(0,f.IJ)(null===b||void 0===b?void 0:b.block_runs):w.noStatus=!0;var C=(0,v.Kn)(null===b||void 0===b?void 0:b.variables)?m({},null===b||void 0===b?void 0:b.variables):(null===b||void 0===b?void 0:b.variables)||{},P=null===b||void 0===b?void 0:b.event_variables;if(P&&(0,v.Kn)(P)&&!(0,v.Qr)(P))if((0,v.Kn)(C)&&C.hasOwnProperty("event")){var k=(0,v.Kn)(C.event)?C.event:{};C.event=m(m({},k),P)}else C.event=m({},P);var S=[];C&&JSON.stringify(C,null,2).split("\n").forEach((function(e){S.push(" ".concat(e))}));var I=b&&[["Run ID",null===b||void 0===b?void 0:b.id],["Variables",(0,h.jsx)(l.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],R=b&&(0,h.jsx)(c.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:I.map((function(e,n){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:r},"key_".concat(n)),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),T=y&&O;return(0,h.jsxs)(h.Fragment,{children:[T&&(0,h.jsx)(c.Z,{py:p.cd,children:(0,h.jsx)(u.Z,{onClickTab:O,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:Z})}),(!T||_.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(s.Z,m(m({},w),{},{height:n,heightOffset:(t||0)+(T?x:0),pipeline:r})),j.uuid===(null===y||void 0===y?void 0:y.uuid)&&R]})}},22673:function(e,n,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),u=t(9518),l=t(65292),s=t(23831),c=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,v=e.source,h=e.wrapLines,g=(0,i.useContext)(u.ThemeContext);function b(e){var i=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(g.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:c.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(g.content||s.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:h,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(b,{value:n})}},children:v})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var i=t(82684),r=t(60328),o=t(67971),u=t(882),l=t(86673),s=t(19711),c=t(99994),a=t(9518),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),p.w5),v=t(66653),h=t(28598);var g=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,p=e.onClickTab,g=e.selectedTabUUID,b=e.small,m=e.tabs,x=(0,i.useMemo)((function(){var e=m.length,n=[];return m.forEach((function(t,i){var a=t.Icon,f=t.IconSelected,m=t.label,x=t.uuid,j=x===g,_=j&&f||a,Z=m?m():x,y=(0,h.jsxs)(o.Z,{alignItems:"center",children:[_&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_,{default:!j,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),(0,h.jsx)(s.ZP,{bold:!0,default:!j,noWrapping:!0,small:!0,children:Z})]});i>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(x))),j?n.push((0,h.jsx)(u.Z,{backgroundGradient:c.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,v.j)(e),p(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},x)):n.push((0,h.jsx)("div",{style:{padding:2},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,v.j)(e),p(t)},outline:!0,small:b,children:y})},"button-tab-".concat(x)))})),n}),[p,g,b,m]),j=(0,h.jsx)(o.Z,{alignItems:"center",children:x});return t?j:(0,h.jsx)(f,{allowScroll:n,noPadding:a,children:j})}},21135:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),s=t(82684),c=t(83455),a=t(34376),d=t(28598);var p=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(27125),v=t(60328),h=t(32316),g=t(67971),b=t(9518),m=t(23831),x=b.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||m.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||m.Z.borders).medium,";\n ")})),j=t(51099),_=t(60547);var Z=function(e){var n=e.size;return(0,d.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},y=t(47409),O=t(97496),w=t(41788),C=t(55378),P=t(86673),k=t(54283),S=t(82531),I=t(56681),R=t(66166),T=t(10503),E=t(33766),H=t(59920),M=t(98781),N=t(66050),V=t(49125),D=t(7715),L=t(96510),U=t(59e3);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F={Icon:T.mR,IconSelected:Z,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},B={Icon:T.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},G=[F,B];function W(e){var n,t,i=e.pipeline,o=(0,a.useRouter)(),u=(0,s.useState)(null),l=u[0],p=u[1],b=(0,s.useState)(F),m=b[0],Z=b[1],w=(0,s.useState)(I.G7[0]),T=w[0],z=w[1],W=(0,s.useState)({}),q=W[0],K=W[1],X=(0,s.useState)(null),J=X[0],Q=X[1],Y=(0,s.useMemo)((function(){return F.uuid===(null===m||void 0===m?void 0:m.uuid)}),[null===m||void 0===m?void 0:m.uuid]),$=i.uuid,ee=S.ZP.pipelines.detail($,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,ne=(0,s.useMemo)((function(){return A(A({},null===ee||void 0===ee?void 0:ee.pipeline),{},{uuid:$})}),[ee,$]),te=(0,s.useState)(),ie=te[0],re=te[1],oe=(0,U.iV)(),ue=(0,R.Z)(oe),le=null!==oe&&void 0!==oe&&oe.page?oe.page:0;(0,s.useEffect)((function(){var e=oe.pipeline_run_id,n=oe.status;if(!(0,D.Xy)(oe,ue)){var t=A(A({},ue),oe);e?t.pipeline_run_id=e:t.pipeline_uuid=$,n?t.status=n:delete t.status,Q(t),K({})}}),[$,oe,ue]);var se={_limit:30,_offset:30*le,pipeline_uuid:$},ce=(0,D.gR)(A(A({},J),se),["tab","page"]);Y&&(ce=(0,D.gR)(ce,[E.O2]));var ae=S.ZP.block_runs.list(ce,{},{pauseFetch:!J}).data,de=(0,s.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.block_runs)||[]}),[ae]),pe=A({},se);null!==oe&&void 0!==oe&&oe.status&&(pe.status=oe.status),Y||(pe=(0,D.gR)(pe,[E.O2]));var fe=S.ZP.pipeline_runs.list(pe,{refreshInterval:5e3}),ve=fe.data,he=fe.mutate,ge=(0,s.useMemo)((function(){return(null===ve||void 0===ve?void 0:ve.pipeline_runs)||[]}),[ve]),be=(0,s.useMemo)((function(){var e,n;return Y?(null===ve||void 0===ve||null===(e=ve.metadata)||void 0===e?void 0:e.count)||[]:(null===ae||void 0===ae||null===(n=ae.metadata)||void 0===n?void 0:n.count)||[]}),[null===ae||void 0===ae||null===(n=ae.metadata)||void 0===n?void 0:n.count,null===ve||void 0===ve||null===(t=ve.metadata)||void 0===t?void 0:t.count,Y]),me=(0,s.useMemo)((function(){return ge.some((function(e){var n=e.status;return n===N.V.INITIAL||n===N.V.RUNNING}))}),[ge]),xe=(0,s.useMemo)((function(){return Object.values(q||{}).filter((function(e){return null!==e}))}),[q]),je=(0,c.Db)(S.ZP.pipelines.useUpdate($),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){K({}),he()},onErrorCallback:function(e,n){return p({errors:n,response:e})}})}}),_e=(0,r.Z)(je,2),Ze=_e[0],ye=_e[1].isLoading,Oe=(0,R.Z)(m);(0,s.useEffect)((function(){var e=oe.tab;e&&Z(G.find((function(n){return n.uuid===e})))}),[oe,m,Oe]);var we=(0,s.useMemo)((function(){return(0,d.jsx)(P.Z,{p:2,children:(0,d.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=A(A({},oe),{},{page:n>=0?n:0});o.push("/pipelines/[pipeline]/runs","/pipelines/".concat($,"/runs?").concat((0,U.uM)(t)))},page:Number(le),totalPages:Math.ceil(be/30)})})}),[le,$,oe,o,be]),Ce=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(O.Z,{allowBulkSelect:(null===ne||void 0===ne?void 0:ne.type)!==M.qL.STREAMING,fetchPipelineRuns:he,onClickRow:function(e){return re((function(n){var t=ge[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ge,selectedRun:ie,selectedRuns:q,setErrors:p,setSelectedRuns:K}),we]})}),[he,we,null===ne||void 0===ne?void 0:ne.type,ge,ie,q]),Pe=(0,s.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{blockRuns:de,pipeline:ne}),we]})}),[de,we,ne]);return(0,d.jsxs)(_.Z,{afterHidden:Y&&!ie,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:Y?function(e){return(0,I.ZP)(A(A({},e),{},{selectedRun:ie,selectedTab:T,setSelectedTab:z}))}:function(e){return(0,I.ZP)(e)},errors:l,pageName:H.M.RUNS,pipeline:ne,setErrors:p,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(H.M.RUNS,"_").concat($),children:[(0,d.jsx)(x,{children:(0,d.jsx)(P.Z,{py:1,children:(0,d.jsxs)(g.Z,{alignItems:"center",children:[me&&Y&&(0,d.jsx)(P.Z,{pl:2,children:(0,d.jsx)(v.Z,{danger:!0,loading:ye,onClick:function(){Ze({pipeline:{status:N.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),xe.length>0&&(0,d.jsx)(P.Z,{pl:2,children:(0,d.jsxs)(v.Z,{loading:ye,onClick:function(){Ze({pipeline:{pipeline_runs:xe,status:M.QK.RETRY}})},primary:!0,children:["Retry selected runs (",xe.length,")"]})}),(0,d.jsx)(h.Z,{onClickTab:function(e){var n=e.uuid;Q(null),(0,E.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===m||void 0===m?void 0:m.uuid,tabs:G}),Y&&(0,d.jsxs)(C.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(Q(null),(0,E.u7)({tab:F.uuid},{replaceParams:!0})):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*V.iI,placeholder:"Select run status",value:null===J||void 0===J?void 0:J.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(N.V).map((function(e){return(0,d.jsx)("option",{value:e,children:y.Do[e]},e)}))]})]})})}),ve||ae?(0,d.jsxs)(d.Fragment,{children:[Y&&Ce,B.uuid===(null===m||void 0===m?void 0:m.uuid)&&Pe]}):(0,d.jsx)(P.Z,{m:3,children:(0,d.jsx)(k.Z,{inverted:!0})})]})}W.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var q=(0,w.Z)(W)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(21135)}])}},function(e){e.O(0,[844,7607,4804,1774,9350,1424,1005,8180,547,3714,8957,8312,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{70814:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return M}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(60547),s=t(41788),f=t(60328),d=t(38341),p=t(67971),v=t(86673),g=t(82944),h=t(11366),b=t(49125),w=t(91427),y=t(90211),m=t(28598);function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=function(n){var e=n.isPipelineUpdating,t=n.pipeline,r=n.updatePipeline,i=null===t||void 0===t?void 0:t.uuid,u=(0,l.useMemo)((function(){return(null===t||void 0===t?void 0:t.blocks)||[]}),[t]),c=(0,l.useState)((null===t||void 0===t?void 0:t.name)||""),a=c[0],s=c[1],O="".concat(h.g6,"_").concat(i),k=(0,l.useState)({}),_=k[0],P=k[1],S=(0,l.useCallback)((function(n){P((function(e){var t=n(e);return(0,w.t8)(O,JSON.stringify(t)),t}))}),[O,P]);(0,l.useEffect)((function(){var n=(0,w.U2)(O);n&&(0,y.Pb)(n)&&P(JSON.parse(n))}),[O,P]);var Z=(0,l.useMemo)((function(){return(null===u||void 0===u?void 0:u.filter((function(n){var e=n.uuid;return!(null===_||void 0===_||!_[e])}))).length===u.length}),[u,_]),E=(0,l.useMemo)((function(){return!(null!==u&&void 0!==u&&u.length)}),[u]);return(0,m.jsxs)(v.Z,{p:b.cd,children:[(0,m.jsx)(g.Z,{label:"Pipeline name",onChange:function(n){return s(n.target.value)},primary:!0,required:!0,setContentOnMount:!0,value:a}),(0,m.jsx)(v.Z,{mt:5,children:(0,m.jsx)(p.Z,{children:(0,m.jsx)(f.Z,{disabled:a===(null===t||void 0===t?void 0:t.name),loading:e,onClick:function(){return r({name:a})},primary:!0,children:"Save pipeline settings"})})}),(0,m.jsx)(v.Z,{mt:5,children:(0,m.jsx)(d.Z,{checked:Z&&!E,disabled:E,label:"Hide all blocks in notebook",onClick:function(){return S((function(){return Z?{}:null===u||void 0===u?void 0:u.reduce((function(n,e){var t=e.uuid;return j(j({},n),{},(0,o.Z)({},t,!0))}),{})}))}})})]})},_=t(82531),P=t(59920),S=t(83455),Z=t(96510);function E(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function N(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?E(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function C(n){var e=n.pipeline,t=(0,l.useState)(null),r=t[0],o=t[1],u=null===e||void 0===e?void 0:e.uuid,c=_.ZP.pipelines.detail(u).data,s=N(N({},null===c||void 0===c?void 0:c.pipeline),e),f=(0,S.Db)(_.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(n){return(0,Z.wD)(n,{callback:function(n){if(null!==n&&void 0!==n&&n.pipeline){var e=n.pipeline.uuid;u!==e&&(window.location.href="/pipelines/".concat(e,"/settings"))}},onErrorCallback:function(n,e){return console.log({errors:e,response:n})}})}}),d=(0,i.Z)(f,2),p=d[0],v=d[1].isLoading;return(0,m.jsx)(a.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:r,pageName:P.M.SETTINGS,pipeline:s,setErrors:o,title:function(n){var e=n.name;return"".concat(e," settings")},uuid:"".concat(P.M.SETTINGS,"_").concat(u),children:c&&(0,m.jsx)(k,{isPipelineUpdating:v,pipeline:s,updatePipeline:function(n){return p({pipeline:n})}})})}C.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var M=(0,s.Z)(C)},11366:function(n,e,t){"use strict";t.d(e,{H8:function(){return i},g6:function(){return o},kY:function(){return r}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks"},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return s},kC:function(){return f},vg:function(){return w},kE:function(){return _},T3:function(){return O},Mp:function(){return d},Pb:function(){return l},HW:function(){return m},wX:function(){return p},x6:function(){return v},_6:function(){return g},zf:function(){return y},Y6:function(){return k},wE:function(){return P},J3:function(){return h},We:function(){return a},QV:function(){return j},C5:function(){return b}});var r=t(75582),i=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function l(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function s(n){return n.split(" ").join("_")}function f(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function v(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),i=t[0],o=t[1],u=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function g(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=n;else{var u=n.length,c=n[u-1];t="y"===c&&"day"!==n?"".concat(n.slice(0,u-1),"ies"):"".concat(n,"s"===c?"es":"s")}if(o){var l=r?v(i):i;return"".concat(l," ").concat(t)}return t}function h(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function b(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function w(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f(h(n.toLowerCase()))}function y(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!e){var u=(0,r.Z)(i,2),c=u[0],l=u[1],a=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(l)*a&&(e=g(c,Math.round(n/a)))}})),e}function m(n){return!isNaN(n)}function O(n){return"".concat(v(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function j(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function k(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function _(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function P(n){var e,t=n.split(i.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(i.sep)}},59606:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(70814)}])}},function(n){n.O(0,[844,7607,1424,1005,547,9774,2888,179],(function(){return e=59606,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|