All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.571.9bf1d89926b9972b5b0a.js Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[571],{7681:function(e,t,n){var a=n(8081),r=n.n(a),i=n(23645),l=n.n(i)()(r());l.push([e.id,'/*\n *  Copyright 2024 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n/*\n *  Copyright 2022 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n/* navbar+tab_height+padding = 64+46+12  */\n.logs-heading {\n  background: #222222;\n}\n.logs-heading .ant-typography {\n  color: #fff;\n}\n.log-card .ant-card-body {\n  padding: 0;\n}\n.summary-key {\n  color: #00000080;\n}\n',""]),t.Z=l},84799:function(e,t,n){n.d(t,{m:function(){return o}});var a=n(94199),r=n(71577),i=n(67294),l=n(68432),s=n(51297),c=n(97010),o=function(e){var t=e.copyText,n=e.copyTimer,o=void 0===n?1500:n,u=e.position,d=void 0===u?"left":u,m=e.onCopy,p=(0,l.$)().t,v=(0,c.V)(t,o,m),f=v.hasCopied,h=v.onCopyToClipBoard;return i.createElement(a.Z,{destroyTooltipOnHide:!0,placement:d,title:f?i.createElement("span",{className:"text-xs font-medium","data-testid":"copy-success"},p("message.copied-to-clipboard")):i.createElement("span",{className:"text-xs font-medium","data-testid":"copy-tooltip"},p("message.copy-to-clipboard"))},i.createElement(r.Z,{className:"h-8 m-l-md relative flex-center","data-testid":"copy-secret",icon:i.createElement(s.ReactComponent,{"data-testid":"copy-icon",width:"16"}),type:"text",onClick:h}))};t.Z=o},80571:function(e,t,n){n.r(t),n.d(t,{default:function(){return se}});var a=n(70655),r=n(90631),i=n(19650),l=n(56256),s=n(71230),c=n(15746),o=n(71577),u=n(94199),d=n(82833),m=n(96486),p=n(67294),v=n(68432),f=n(68391),h=n(15137),g=n(84799),E=n(35850),y=n(36169),b=n(76709),T=n(32789),N=n(96162),Z=n(64632),w=n(32181),C=n(34530),k=(0,n(30270).Ue)()((function(e){return{progress:0,updateProgress:function(t){e({progress:t})},reset:function(){e({progress:0})}}})),S=n(66537),L=n(46199),_=n(97354),I=n(53429),x=n(24671),A=n(5302),R=n(46321),z=function(e,t,n){return(0,a.mG)(void 0,void 0,void 0,(function(){var r,i,l,s,c,o,u,d;return(0,a.Jh)(this,(function(p){switch(p.label){case 0:return r="",[4,(0,_.fT)(e,n)];case 1:return i=p.sent().data,l=i.total,s=i.after,c=(0,a._T)(i,["total","after"]),r=r.concat(function(e,t){switch(t){case A.Hz.Metadata:return e.ingestion_task||"";case A.Hz.Application:return e.application_task||"";case A.Hz.Profiler:return e.profiler_task||"";case A.Hz.Usage:return e.usage_task||"";case A.Hz.Lineage:return e.lineage_task||"";case A.Hz.Dbt:return e.dbt_task||"";case A.Hz.TestSuite:return e.test_suite_task||"";case A.Hz.DataInsight:return e.data_insight_task||"";case A.Hz.ElasticSearchReindex:return e.elasticsearch_reindex_task||"";default:return""}}(c,t)),s&&l?(o=(0,m.round)(100*Number(s)/Number(l)),k.getState().updateProgress(o),d=(u=r).concat,[4,z(e,t,s)]):[3,3];case 2:r=d.apply(u,[p.sent()]),p.label=3;case 3:return[2,r]}}))}))},H=n(20642),O=n(62761),B=n(85071),U=n(61284),P=n(93895),G=n(69959),D=n(74475),W=n(50156),j=n(96840),J=new(function(){function e(){}return e.prototype.getLogBreadCrumbs=function(e,t,n){var r,i,l=G.Z.split(t);if(l.includes(B.rn)&&n)return[{name:(0,m.startCase)(n.pipelineType),url:(0,W.mK)(n.pipelineType),activeTitle:!0},{name:(0,P.AY)(t),url:"",activeTitle:!0}];if(e===N.lx.APPLICATIONS)return[{name:(0,m.startCase)(e),url:(0,j.si)(N.lx.APPLICATIONS)},{name:t,url:(0,j.aZ)(t)}];if((0,m.isUndefined)(n))return[];if("testSuite"===e)return[{name:(0,m.startCase)(e),url:(0,j.p_)(U.R.TEST_SUITES)},{name:n.name,url:(0,O.EK)(Z.py.TABLE,null!==(i=null===(r=n.sourceConfig.config)||void 0===r?void 0:r.entityFullyQualifiedName)&&void 0!==i?i:"",Z.M8.PROFILER)+"?activeTab="+H.O.DATA_QUALITY},{name:D.Z.t("label.log-plural"),url:""}];var s=(0,a.ev)([e],(0,a.CR)(l));return s.map((function(t,n){return{name:0===n?(0,m.startCase)(t):t,url:n!==s.length-1?(0,j.c5)(t,e):""}}))},e}()),M=n(93379),Y=n.n(M),F=n(7795),K=n.n(F),V=n(90569),q=n.n(V),Q=n(3565),$=n.n(Q),X=n(19216),ee=n.n(X),te=n(44589),ne=n.n(te),ae=n(7681),re={};re.styleTagTransform=ne(),re.setAttributes=$(),re.insert=q().bind(null,"head"),re.domAPI=K(),re.insertStyleElement=ee(),Y()(ae.Z,re),ae.Z&&ae.Z.locals&&ae.Z.locals;var ie=n(19586),le=function(){return p.createElement(s.Z,{className:"border-top justify-between",gutter:[16,16]},p.createElement(c.Z,{className:"p-md border-right",span:18},p.createElement("div",{className:"flex items-center gap-2 justify-end"},p.createElement(ie.Z.Button,{active:!0}),p.createElement(ie.Z.Button,{active:!0,shape:"circle"}),p.createElement(ie.Z.Button,{active:!0,shape:"circle"})),p.createElement(ie.Z,{active:!0,className:"p-l-md p-t-md",paragraph:{rows:16},title:!1})),p.createElement(c.Z,{className:"p-md",span:6},p.createElement(ie.Z,{active:!0,paragraph:{rows:1,width:"60%"}}),p.createElement(s.Z,{className:"m-t-lg",gutter:[16,48]},p.createElement(c.Z,{span:11},p.createElement(ie.Z,{paragraph:{rows:3,width:["70%","80%","90%"]},title:!1})),p.createElement(c.Z,{span:12},p.createElement(ie.Z,{paragraph:{rows:3,width:"90%"},title:!1})))))},se=function(){var e,t=(0,h.UO)().logEntityType,n=(0,S.f)().fqn,A=(0,v.$)().t,H=k(),O=H.progress,B=H.reset,U=H.updateProgress,P=(0,a.CR)((0,p.useState)(!1),2),G=P[0],D=P[1],W=(0,a.CR)((0,p.useState)(""),2),j=W[0],M=W[1],Y=(0,a.CR)((0,p.useState)(),2),F=Y[0],K=Y[1],V=(0,a.CR)((0,p.useState)(),2),q=V[0],Q=V[1],$=(0,a.CR)((0,p.useState)([]),2),X=$[0],ee=$[1],te=(0,a.CR)((0,p.useState)(),2),ne=te[0],ae=te[1],re=(0,p.useMemo)((function(){return t===N.lx.APPLICATIONS}),[t]),ie=function(e,t){return(0,a.mG)(void 0,void 0,void 0,(function(){var r,i,l,s,c,o,u,d,p,v,f,h,g,E,y;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),re?(r=Date.now(),i=(0,I.f5)(1),[4,(0,L.W7)(n,{startTs:i,endTs:r})]):[3,3];case 1:return l=a.sent().data,[4,(0,L.Qq)(n)];case 2:return s=a.sent(),ee(l),M(s.data_insight_task||s.application_task),[2];case 3:return[4,(0,_.fT)(e||(null==F?void 0:F.id)||"",(null==ne?void 0:ne.total)!==(null==ne?void 0:ne.after)?null==ne?void 0:ne.after:"")];case 4:switch((c=a.sent()).data.after&&c.data.total&&ae({after:c.data.after,total:(0,m.toNumber)(c.data.total)}),t||(null==F?void 0:F.pipelineType)){case w.Hz.Metadata:M(j.concat((null===(u=c.data)||void 0===u?void 0:u.ingestion_task)||""));break;case w.Hz.Application:M(j.concat((null===(d=c.data)||void 0===d?void 0:d.application_task)||""));break;case w.Hz.Profiler:M(j.concat((null===(p=c.data)||void 0===p?void 0:p.profiler_task)||""));break;case w.Hz.Usage:M(j.concat((null===(v=c.data)||void 0===v?void 0:v.usage_task)||""));break;case w.Hz.Lineage:M(j.concat((null===(f=c.data)||void 0===f?void 0:f.lineage_task)||""));break;case w.Hz.Dbt:M(j.concat((null===(h=c.data)||void 0===h?void 0:h.dbt_task)||""));break;case w.Hz.TestSuite:M(j.concat((null===(g=c.data)||void 0===g?void 0:g.test_suite_task)||""));break;case w.Hz.DataInsight:M(j.concat((null===(E=c.data)||void 0===E?void 0:E.data_insight_task)||""));break;case w.Hz.ElasticSearchReindex:M(j.concat((null===(y=c.data)||void 0===y?void 0:y.elasticsearch_reindex_task)||""));break;default:M("")}return[3,6];case 5:return o=a.sent(),(0,R.Eo)(o),[3,6];case 6:return[2]}}))}))},se=(0,p.useCallback)((function(){return(0,a.mG)(void 0,void 0,void 0,(function(){var e,t;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:D(!0),a.label=1;case 1:return a.trys.push([1,3,4,5]),[4,(0,L.Cf)(n,{fields:Z.GB.OWNERS,include:C.y.All})];case 2:return e=a.sent(),Q(e),ie(),[3,5];case 3:return t=a.sent(),(0,R.Eo)(t),[3,5];case 4:return D(!1),[7];case 5:return[2]}}))}))}),[n]);(0,p.useEffect)((function(){re?se():(0,a.mG)(void 0,void 0,void 0,(function(){var e,t;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),D(!0),[4,(0,_.ne)(n,{fields:[Z.GB.OWNERS,Z.GB.PIPELINE_STATUSES]})];case 1:return(e=a.sent())&&(K(e),ie(e.id,e.pipelineType)),[3,4];case 2:return t=a.sent(),(0,R.Eo)(t),[3,4];case 3:return D(!1),[7];case 4:return[2]}}))}))}),[]);var ce=function(e){var t=e.target,n=t.scrollTop,r=t.scrollHeight;t.clientHeight+n===r&&!(0,m.isNil)(ne)&&!(0,m.isUndefined)(ne.after)&&(0,m.toNumber)(null==ne?void 0:ne.after)<(0,m.toNumber)(null==ne?void 0:ne.total)&&(ie(null==F?void 0:F.id,null==F?void 0:F.pipelineType),ae((0,a.pi)((0,a.pi)({},ne),{after:""}))),(0,m.toNumber)(null==ne?void 0:ne.after)+1===(0,m.toNumber)(null==ne?void 0:ne.total)&&ae((0,a.pi)((0,a.pi)({},ne),{after:void 0}))};(0,p.useLayoutEffect)((function(){var e=document.getElementsByClassName("ReactVirtualized__Grid")[0];return e&&e.addEventListener("scroll",ce,{passive:!0}),function(){e&&e.removeEventListener("scroll",ce)}})),(0,p.useLayoutEffect)((function(){var e=document.getElementsByClassName("react-lazylog-searchbar-input")[0];e&&(e.placeholder=A("label.search-entity",{entity:A("label.log-plural")})+"...")}));var oe=(0,p.useMemo)((function(){return!(0,m.isUndefined)(F)||X?p.createElement(T.K,{appRuns:X,ingestion:F,isApplicationType:re}):"--"}),[re,X,F]),ue=(0,p.useMemo)((function(){var e,t,n,a,r,i=null==q?void 0:q.appSchedule;return(e={Type:null!==(n=null!==(t=null==F?void 0:F.pipelineType)&&void 0!==t?t:null==i?void 0:i.scheduleTimeline)&&void 0!==n?n:"--",Schedule:null!==(r=null!==(a=null==F?void 0:F.airflowConfig.scheduleInterval)&&void 0!==a?a:null==i?void 0:i.cronExpression)&&void 0!==r?r:"--"})["Recent Runs"]=oe,e}),[F,q,oe]);return G?p.createElement(E.Z,null):p.createElement(b.Z,{pageTitle:A("label.log-viewer")},p.createElement(i.Z,{align:"start",className:"w-full m-md m-t-xs",direction:"vertical"},p.createElement(i.Z,{align:"center"},p.createElement(y.Z,{titleLinks:J.getLogBreadCrumbs(t,n,F)})),p.createElement(i.Z,null,p.createElement(l.Z.Title,{level:5},null!==(e=null==F?void 0:F.name)&&void 0!==e?e:null==q?void 0:q.name))),(0,m.isEmpty)(j)?p.createElement(le,null):p.createElement(s.Z,{className:"border-top"},p.createElement(c.Z,{className:"p-md border-right",span:18},p.createElement(s.Z,{className:"relative",gutter:[16,16]},p.createElement(c.Z,{span:24},p.createElement(s.Z,{justify:"end"},p.createElement(c.Z,null,p.createElement(o.Z,{ghost:!0,"data-testid":"jump-to-end-button",type:"primary",onClick:function(){var e=document.getElementsByClassName("ReactVirtualized__Grid")[0];(0,m.isNil)(e)||(e.scrollTop=e.scrollHeight)}},A("label.jump-to-end"))),p.createElement(c.Z,null,p.createElement(g.m,{copyText:j})),p.createElement(c.Z,null,O?p.createElement(u.Z,{title:O+"%"},p.createElement(d.Z,{className:"h-8 m-l-md relative flex-center",percent:O,strokeWidth:5,type:"circle",width:32})):p.createElement(o.Z,{className:"h-8 m-l-md relative flex-center","data-testid":"download",icon:p.createElement(r.Z,{"data-testid":"download-icon",width:"16"}),type:"text",onClick:function(){return(0,a.mG)(void 0,void 0,void 0,(function(){var e,t,n,r,i;return(0,a.Jh)(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,3,4]),B(),e=(0,m.round)(100*Number(null==ne?void 0:ne.after)/Number(null==ne?void 0:ne.total)),U((null==ne?void 0:ne.after)?e:1),[4,(s=null==F?void 0:F.id,c=null==F?void 0:F.pipelineType,(0,a.mG)(void 0,void 0,void 0,(function(){var e;return(0,a.Jh)(this,(function(t){switch(t.label){case 0:if(!s||!c)return[2,""];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,z(s,c)];case 2:return[2,t.sent()];case 3:return e=t.sent(),(0,R.Eo)(e),[2,""];case 4:return[2]}}))})))];case 1:return t=l.sent(),n=document.createElement("a"),r=new Blob([t||""],{type:"text/plain"}),n.href=URL.createObjectURL(r),n.download=(0,x.C_)(F)+"-"+(null==F?void 0:F.pipelineType)+".log",document.body.appendChild(n),n.click(),document.body.removeChild(n),[3,4];case 2:return i=l.sent(),(0,R.Eo)(i),[3,4];case 3:return D(!1),B(),[7];case 4:return[2]}var s,c}))}))}})))),p.createElement(c.Z,{className:"h-min-80 lazy-log-container","data-testid":"lazy-log",span:24},p.createElement(f.LazyLog,{caseInsensitive:!0,enableSearch:!0,selectableLines:!0,extraLines:1,text:j})))),p.createElement(c.Z,{span:6},p.createElement(i.Z,{className:"p-md w-full","data-testid":"summary-card",direction:"vertical"},p.createElement(l.Z.Title,{level:5},A("label.summary")),p.createElement("div",null,p.createElement(l.Z.Text,{type:"secondary"},A("label.basic-configuration")),p.createElement(s.Z,{className:"m-t-xs",gutter:[8,8]},Object.entries(ue).map((function(e){var t=(0,a.CR)(e,2),n=t[0],r=t[1];return p.createElement(p.Fragment,{key:n},p.createElement(c.Z,{className:"summary-key",span:12},n),p.createElement(c.Z,{className:"flex",span:12},r))}))))))))}}}]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy