mage-ai 0.8.4__py3-none-any.whl → 0.8.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/policies/BlockPolicy.py +2 -0
- mage_ai/api/policies/PipelinePolicy.py +1 -0
- mage_ai/api/presenters/BlockPresenter.py +1 -0
- mage_ai/api/presenters/OutputPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +6 -1
- mage_ai/data_preparation/models/block/__init__.py +18 -4
- mage_ai/data_preparation/models/block/dbt/__init__.py +50 -1
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +136 -60
- mage_ai/data_preparation/models/block/utils.py +2 -1
- mage_ai/data_preparation/models/pipeline.py +5 -3
- mage_ai/data_preparation/repo_manager.py +1 -1
- mage_ai/data_preparation/storage/local_storage.py +1 -1
- mage_ai/data_preparation/templates/custom/python/default.jinja +1 -1
- mage_ai/data_preparation/templates/data_exporters/default.jinja +2 -4
- mage_ai/data_preparation/templates/data_exporters/pyspark/default.jinja +2 -2
- mage_ai/data_preparation/templates/data_loaders/api.py +1 -1
- mage_ai/data_preparation/templates/data_loaders/default.jinja +1 -1
- mage_ai/data_preparation/templates/data_loaders/file.py +1 -0
- mage_ai/data_preparation/templates/data_loaders/pyspark/default.jinja +1 -1
- mage_ai/data_preparation/templates/testable.jinja +2 -2
- mage_ai/data_preparation/templates/transformers/data_warehouse_transformer.jinja +2 -0
- mage_ai/data_preparation/templates/transformers/default.jinja +4 -6
- mage_ai/data_preparation/templates/transformers/default_pyspark.jinja +4 -4
- mage_ai/data_preparation/templates/transformers/transformer_actions/action.jinja +2 -0
- mage_ai/io/base.py +11 -1
- mage_ai/io/postgres.py +10 -5
- 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/chunks/{2249-84de2142241f4925.js → 2249-70929b8c547bbc18.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4846-58b7e138009c98a2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5944-9488f2ddf3543b08.js → 5944-757b7898608a65e1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{6641-fb7a8be8444f2dd4.js → 6641-a0ed2bd8f5dc777b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8961-7a2143c4424c9217.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{9140-836abb2721055e82.js → 9140-6f67e0879394373d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9898-51ca6a904b7a2382.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a1e8869ed201ce7e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0678cf63c79072a7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-5ccc75887776efb0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-a6dbd67285ecc5a5.js → block-runs-8f23f7ca9efcb069.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-d2bbafbb5b2c09e7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-b0b91245d3299bdf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-5d7c45bb058a3f20.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-dbce4f85a95ea336.js → triggers-e0172c422c95eda9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/{0jln56azuIZflrR1CXt9U → okm8eXXn0kUptL5A1B7a6}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +13 -13
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/server.py +1 -0
- mage_ai/server/utils/output_display.py +7 -0
- mage_ai/server/websocket_server.py +2 -2
- mage_ai/services/datadog/__init__.py +123 -0
- mage_ai/tests/data_preparation/test_templates.py +34 -86
- mage_ai/tests/services/datadog/__init__.py +0 -0
- mage_ai/tests/services/datadog/test_datadog.py +69 -0
- {mage_ai-0.8.4.dist-info → mage_ai-0.8.6.dist-info}/METADATA +2 -1
- {mage_ai-0.8.4.dist-info → mage_ai-0.8.6.dist-info}/RECORD +85 -82
- mage_ai/server/frontend_dist/_next/static/chunks/4846-64f9afc02d45293c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8961-e25997bc088e0d19.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9898-91c6384c9bd33ca7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-688184bd8b4d4f5c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c6dfcc4f231cfa5a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-abce05c25bee218d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-a056c0e384d39c9b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-6a8545f96cc7b8f2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-1734d248ec2b6c24.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{0jln56azuIZflrR1CXt9U → okm8eXXn0kUptL5A1B7a6}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{0jln56azuIZflrR1CXt9U → okm8eXXn0kUptL5A1B7a6}/_ssgManifest.js +0 -0
- {mage_ai-0.8.4.dist-info → mage_ai-0.8.6.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.4.dist-info → mage_ai-0.8.6.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.4.dist-info → mage_ai-0.8.6.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.4.dist-info → mage_ai-0.8.6.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{59920:function(e,n,t){"use strict";var i;t.d(n,{M:function(){return i}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(i||(i={}))},2626:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var i=t(21831),r=t(75582),o=t(82684),l=t(83455),c=t(34376),u=t(28598);var a=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},s=t(16953),d=t(61519);var p=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(70434),h=t(34744),b=t(67971),g=t(87372),m=t(98781),v=t(29664),C=t(86673);var x=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},w=t(82531),k=t(10503),j=t(9518),y=t(23831),O=t(73942),_=t(49125),Z=j.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],O.n_,3*_.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||y.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),I=t(3055),P=t(59920),S=t(96510),M=t(90211),E=t(24141);var N=function(e){var n=e.after,t=e.afterHidden,j=e.afterWidth,y=e.before,O=e.beforeWidth,N=e.breadcrumbs,V=e.buildSidekick,H=e.children,D=e.headline,R=e.pageName,B=e.pipeline,T=e.subheader,L=e.subheaderBackground,U=e.subheaderBackgroundImage,A=e.subheaderButton,z=e.subheaderText,F=e.title,G=e.uuid,Y=(0,c.useRouter)(),W=(0,E.i)().height,K=B.uuid,q=w.ZP.pipelines.detail(K,{includes_outputs:!1},{revalidateOnFocus:!1}).data,J=null===q||void 0===q?void 0:q.pipeline,X=(0,l.Db)(w.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(e){var n=e.pipeline.uuid;Y.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))}})}}),Q=(0,r.Z)(X,1)[0],$=(0,l.Db)((function(e){return w.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(){Y.push("/pipelines")}})}}),ee=(0,r.Z)($,1)[0],ne=[{label:function(){return"New standard pipeline"},onClick:function(){return Q({pipeline:{name:(0,M.Y6)()}})},uuid:"PipelineDetail/Header/new_standard_pipeline"},{label:function(){return"New streaming pipeline"},onClick:function(){return Q({pipeline:{name:(0,M.Y6)(),type:m.q.STREAMING}})},uuid:"PipelineDetail/Header/new_streaming_pipeline"},{label:function(){return"Delete current pipeline"},onClick:function(){return ee(K)},openConfirmationDialogue:!0,uuid:"PipelineDetail/Header/delete_pipeline"}],te=(0,o.useMemo)((function(){return n||(V?V({height:W,heightOffset:I.Mz,pipeline:J}):null)}),[n,V,W,J]),ie=j||(te?50*_.iI:null),re=(0,o.useMemo)((function(){var e=[];return J&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),N?(e.push({label:function(){return J.uuid},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(N)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return J.name}})),e}),[N,J]),oe=[{Icon:k.Pf,IconSelected:v.Z,id:P.M.TRIGGERS,label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"},isSelected:function(){return P.M.TRIGGERS===R}},{Icon:k.pd,IconSelected:d.Z,id:P.M.RUNS,label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(K,"/runs"),href:"/pipelines/[pipeline]/runs"},isSelected:function(){return P.M.RUNS===R}},{Icon:k.yg,IconSelected:a,id:P.M.BACKFILLS,label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(K,"/backfills"),href:"/pipelines/[pipeline]/backfills"},isSelected:function(){return P.M.BACKFILLS===R}},{Icon:k.B4,IconSelected:x,id:P.M.PIPELINE_LOGS,label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(K,"/logs"),href:"/pipelines/[pipeline]/logs"},isSelected:function(){return P.M.PIPELINE_LOGS===R}},{Icon:k.kL,IconSelected:p,id:P.M.MONITOR,label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(K,"/monitors"),href:"/pipelines/[pipeline]/monitors"},isSelected:function(){return P.M.MONITOR===R}}];return m.q.INTEGRATION===(null===J||void 0===J?void 0:J.type)&&oe.unshift({Icon:k.Re,IconSelected:s.Z,id:P.M.SYNCS,label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(K,"/syncs"),href:"/pipelines/[pipeline]/syncs"},isSelected:function(){return P.M.SYNCS===R}}),oe.unshift({Icon:null,IconSelected:null,id:P.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(K,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,u.jsxs)(f.Z,{after:te,afterHidden:t,afterWidth:ie,before:y,beforeWidth:O,breadcrumbs:re,headerMenuItems:ne,navigationItems:oe,subheaderChildren:"undefined"!==typeof T&&T,title:J?F?F(J):J.name:null,uuid:G,children:[(A||z)&&(0,u.jsx)(C.Z,{mb:_.Mq,mt:_.cd,mx:_.cd,children:(0,u.jsx)(Z,{background:L,backgroundImage:U,children:(0,u.jsxs)(b.Z,{alignItems:"center",children:[A,z&&(0,u.jsx)(C.Z,{ml:3}),z]})})}),D&&(0,u.jsx)(C.Z,{p:_.cd,children:(0,u.jsxs)(C.Z,{mt:_.cd,px:_.cd,children:[(0,u.jsx)(g.Z,{level:5,children:D}),(0,u.jsx)(h.Z,{light:!0,mt:_.cd,short:!0})]})}),H]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return b}});var i,r,o=t(82394),l=t(92083),c=t.n(l);function u(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?u(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,r=n.started_at,l=n.status,u=null;r&&i&&(u=c()(i).valueOf()-c()(r).valueOf());return a(a({},e),{},(0,o.Z)({},t,{runtime:u,status:l}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(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 d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(i={},(0,o.Z)(i,r.DAY,86400),(0,o.Z)(i,r.HOUR,3600),(0,o.Z)(i,r.MINUTE,60),(0,o.Z)(i,r.SECOND,1),i);function h(e){var n=r.SECOND,t=e;return e%86400===0?(t/=86400,n=r.DAY):e%3600===0?(t/=3600,n=r.HOUR):e%60===0&&(t/=60,n=r.MINUTE),{time:t,unit:n}}function b(e,n){return e*f[n]}},45838:function(e,n,t){"use strict";t.d(n,{GZ:function(){return d},Vq:function(){return a},cE:function(){return p},cl:function(){return c},kA:function(){return u}});var i=t(9518),r=t(23831),o=t(37391),l=t(49125),c=i.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],o.w5,(function(e){return e.minHeight&&"\n min-height: ".concat(e.minHeight,"px;\n ")}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),u=i.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(e){return(e.columnBorders||e.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=i.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(e){return e.highlightOnHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return!e.noHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,i.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(e){return!e.alignTop&&"\n vertical-align: middle;\n "}),(function(e){return e.alignTop&&"\n vertical-align: top;\n "}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.compact&&"\n padding: ".concat(l.iI/2,"px ").concat(l.iI,"px;\n ")}),(function(e){return!e.compact&&"\n padding: ".concat(l.iI,"px ").concat(2*l.iI,"px;\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,";\n ")})),d=i.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(e){return e.columnBorders&&"\n border: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.sticky&&"\n background-color: ".concat((e.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=i.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(e){return e.rowVerticalPadding&&"\n padding-top: ".concat(e.rowVerticalPadding,"px;\n padding-bottom: ").concat(e.rowVerticalPadding,"px;\n ")}),(function(e){return e.columnBorders&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.stickyFirstColumn&&"\n background-color: ".concat((e.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(e){return e.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(e,n,t){"use strict";var i=t(82394),r=t(12691),o=t.n(r),l=t(82684),c=t(67971),u=t(10919),a=t(86673),s=t(19711),d=t(46261),p=t(45838),f=t(28598);function h(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.alignTop,t=e.borderCollapseSeparate,i=e.buildLinkProps,r=e.columnBorders,h=e.columnFlex,g=e.columnMaxWidth,m=e.columns,v=void 0===m?[]:m,C=e.compact,x=e.highlightRowOnHover,w=e.isSelectedRow,k=e.noBorder,j=e.noHeader,y=e.onClickRow,O=e.rows,_=e.rowVerticalPadding,Z=e.stickyFirstColumn,I=e.stickyHeader,P=e.uuid,S=e.wrapColumns,M=(0,l.useMemo)((function(){return h.reduce((function(e,n){return e+(n||0)}),0)}),h),E=(0,l.useCallback)((function(e){if(h[e]){var n=Math.round(h[e]/M*100);return"".concat(n,"%")}return null}),[]),N=(0,l.useMemo)((function(){return null===O||void 0===O?void 0:O.map((function(e,t){var c=null===i||void 0===i?void 0:i(t),a=e.map((function(i,o){return(0,f.jsx)(p.cE,{alignTop:n,columnBorders:r,compact:C,last:o===e.length-1,maxWidth:null===g||void 0===g?void 0:g(o),noBorder:k,rowVerticalPadding:_,selected:null===w||void 0===w?void 0:w(t),stickyFirstColumn:Z&&0===o,width:E(o),wrapColumns:S,children:i},"".concat(P,"-row-").concat(t,"-cell-").concat(o))})),s=(0,f.jsx)(p.Vq,{highlightOnHover:x,noHover:!(c||y),onClick:y?function(){return y(t)}:null,children:a},"".concat(P,"-row-").concat(t));return c?(0,l.createElement)(o(),b(b({},c),{},{key:"".concat(P,"-row-link-").concat(t),passHref:!0}),(0,f.jsx)(u.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[n,i,E,g,v,C,w,k,y,O]);return(0,f.jsxs)(p.kA,{borderCollapseSeparate:t,columnBorders:r,children:[(null===v||void 0===v?void 0:v.length)>=1&&!j&&(0,f.jsx)(p.Vq,{noHover:!0,children:v.map((function(e,n){return(0,f.jsx)(p.GZ,{columnBorders:r,compact:C,last:n===v.length-1,noBorder:k,sticky:I,children:(0,f.jsxs)(c.Z,{alignItems:"center",children:[(0,f.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.label?e.label():e.uuid}),e.tooltipMessage&&(0,f.jsx)(a.Z,{ml:"4px",children:(0,f.jsx)(d.Z,{appearBefore:!0,label:(0,f.jsx)(s.ZP,{leftAligned:!0,children:e.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(P,"-col-").concat(e.uuid,"-").concat(n))}))}),N]})}},43526:function(e,n,t){"use strict";t.d(n,{IB:function(){return u},VV:function(){return o},_7:function(){return l},rn:function(){return c}});var i,r=t(66050),o="datetime",l="code",c=r.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(i||(i={}));var u=[i.SECOND,i.MINUTE,i.HOUR,i.DAY,i.WEEK,i.MONTH,i.YEAR,i.CUSTOM]},66050:function(e,n,t){"use strict";var i;t.d(n,{V:function(){return i}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(i||(i={}))},16953:function(e,n,t){"use strict";var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.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,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},30206:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var i=t(77837),r=t(75582),o=t(38860),l=t.n(o),c=t(82684),u=t(83455),a=t(34376),s=t(12691),d=t.n(s),p=t(43526),f=t(60328),h=t(10919),b=t(87815),g=t(19711),m=t(10503),v=t(49125),C=t(19395),x=t(28598);var w=function(e){var n=e.models,t=e.onClickRow,i=e.pipeline,r=e.selectedRow,o=null===i||void 0===i?void 0:i.uuid;return(0,x.jsx)(b.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"},{label:function(){return""},uuid:"edit"}],isSelectedRow:function(e){return n[e].id===(null===r||void 0===r?void 0:r.id)},onClickRow:function(e){return t(n[e])},rows:n.map((function(e){var n=e.block_uuid,t=e.completed_at,i=e.end_datetime,r=e.id,l=e.name,c=e.start_datetime,u=e.started_at,a=e.status;return[(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:a||"inactive"},"status"),(0,x.jsx)(d(),{as:"/pipelines/".concat(o,"/backfills/").concat(r),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,x.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:l})},"name"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:n?p._7:p.VV},"type"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:0},"runs"),(0,x.jsxs)(g.ZP,{default:!0,monospace:!0,children:[c&&i&&(0,x.jsxs)(x.Fragment,{children:[(0,C.Vx)(c),"\xa0-\xa0",(0,C.Vx)(i)]}),!(c&&i)&&"-"]},"backfill"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:u?(0,C.Vx)(u):"-"},"started_at"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:t?(0,C.Vx)(t):"-"},"completed_at"),(0,x.jsx)(f.Z,{default:!0,iconOnly:!0,noBackground:!0,linkProps:{as:"/pipelines/".concat(o,"/backfills/").concat(r,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},title:"Edit",children:(0,x.jsx)(m.I8,{default:!0,size:2*v.iI})})]})),uuid:"pipeline-runs"})},k=t(11135),j=t(2626),y=t(41788),O=t(86673),_=t(82531),Z=t(59920),I=t(33766),P=t(96510),S=t(59e3),M=t(90211);function E(e){var n=e.pipeline,t=(0,a.useRouter)(),i=n.uuid,o=_.ZP.backfills.list({_limit:20,_offset:0,pipeline_uuid:i},{refreshInterval:6e4}),l=o.data,s=(o.mutate,(0,c.useMemo)((function(){return(null===l||void 0===l?void 0:l.backfills)||[]}),[l])),d=(0,S.iV)(),p=(0,c.useState)(null),f=p[0],h=p[1];(0,c.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?h(null===s||void 0===s?void 0:s.find((function(e){return e.id===Number(d.backfill_id)}))):f&&h(null)}),[s,d,f]);var b=(0,c.useMemo)((function(){var e="/pipelines/".concat(i,"/backfills"),n=[{label:function(){return"Backfills"},linkProps:f?{as:e,href:"/pipelines/[pipeline]/backfills"}:null}];return f&&n.push({label:function(){return f.name}}),n}),[f]),C=(0,u.Db)(_.ZP.backfills.pipelines.useCreate(i),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){var n=e.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(i,"/backfills/").concat(n,"/edit"))},onErrorCallback:function(e){var n=e.error,t=(n.errors,n.message);alert(t)}})}}),y=(0,r.Z)(C,2),E=y[0],N=y[1].isLoading;return(0,x.jsxs)(j.Z,{breadcrumbs:b,pageName:Z.M.BACKFILLS,pipeline:n,title:function(e){var n=e.name;return"".concat(n," backfills")},uuid:"".concat(Z.M.BACKFILLS,"_").concat(i),children:[(0,x.jsx)(O.Z,{p:v.cd,children:(0,x.jsx)(k.ZP,{beforeElement:(0,x.jsx)(m.mm,{size:2.5*v.iI}),blackBorder:!0,inline:!0,loading:N,noHoverUnderline:!0,onClick:function(){return E({backfill:{name:(0,M.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,x.jsx)(O.Z,{p:v.cd,children:(0,x.jsx)(g.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,x.jsx)(w,{models:s,onClickRow:function(e){var n=e.id;return(0,I.u)({backfill_id:n})},pipeline:n,selectedRow:f})]})}E.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 N=(0,y.Z)(E)},33766:function(e,n,t){"use strict";t.d(n,{u:function(){return s}});var i=t(75582),r=t(82394),o=t(34376),l=t.n(o),c=t(59e3);function u(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?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.replaceParams,o=t.pushHistory,u=r?{}:(0,c.iV)();n=window.location.pathname;var s=o?l().push:l().replace,d=a(a({},u),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[t]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return s(l().router.pathname,f,{shallow:!0})}},37459:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(e){e.O(0,[3850,2083,9767,6579,434,1830,9774,2888,179],(function(){return n=37459,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|