From bda30c6f4f7791e2397cfdeb7e2e96200897fe6d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 10 Sep 2018 11:13:16 +0100 Subject: [PATCH] yocto_conole_view: Ensure unresolved changes are deleted when we resolve This should stop the UI looking as confused as builds resolve the build revisions. Signed-off-by: Richard Purdie --- yocto_console_view/src/module/main.module.coffee | 14 ++++++++++---- .../yocto_console_view/static/scripts.js | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/yocto_console_view/src/module/main.module.coffee b/yocto_console_view/src/module/main.module.coffee index 4b6fd57..d8372a4 100644 --- a/yocto_console_view/src/module/main.module.coffee +++ b/yocto_console_view/src/module/main.module.coffee @@ -274,6 +274,11 @@ class Console extends Controller if not change? change = @changesBySSID[rev] if not change? + if buildset? and buildset.parent_buildid? + oldrev = "Unresolved #{buildset.parent_buildid}" + delete @changesBySSID.oldrev + oldrev = "Unresolved #{build.builderid}-#{build.buildid}" + delete @changesBySSID.oldrev change = @makeFakeChange(rev, build.started_at, rev) change.caption = "Commit" if build.properties?.yp_build_branch? @@ -282,20 +287,21 @@ class Console extends Controller change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + rev + "&type=commit&limit=150" if build.properties?.reason? change.reason = build.properties.reason[0] - else - if buildset? and buildset.parent_buildid? + if buildset? and buildset.parent_buildid? rev = "Unresolved #{buildset.parent_buildid}" if not change? change = @changesBySSID[rev] if not change? - change = @makeFakeChange("Unresolved #{buildset.parent_buildid}", build.started_at, "Unresolved #{buildset.parent_buildid}") + oldrev = "Unresolved #{build.builderid}-#{build.buildid}" + delete @changesBySSID.oldrev + change = @makeFakeChange(rev, build.started_at, rev) if not change? rev = "Unresolved #{build.builderid}-#{build.buildid}" if not change? change = @changesBySSID[rev] if not change? - change = @makeFakeChange("Unresolved #{build.builderid}-#{build.buildid}", build.started_at, "Unresolved #{build.builderid}-#{build.buildid}") + change = @makeFakeChange(rev, build.started_at, rev) change.caption = rev change.buildersById[build.builderid].builds.push(build) diff --git a/yocto_console_view/yocto_console_view/static/scripts.js b/yocto_console_view/yocto_console_view/static/scripts.js index 8efe8b8..8dc5be0 100644 --- a/yocto_console_view/yocto_console_view/static/scripts.js +++ b/yocto_console_view/yocto_console_view/static/scripts.js @@ -1 +1 @@ -BOWERDEPS="undefined"==typeof BOWERDEPS?{}:BOWERDEPS,function(){var e,t,i,n=function(e,t){return function(){return e.apply(t,arguments)}};e=function(){function e(){return["ui.router","ui.bootstrap","ngAnimate","guanlecoja.ui","bbData"]}return e}(),i=function(){function e(e,t,i){var n,l,s;l="console",t.addGroup({name:l,caption:"Yocto Console View",icon:"exclamation-circle",order:5}),n={group:l,caption:"Yocto Console View"},s={controller:l+"Controller",controllerAs:"c",templateUrl:"yocto_console_view/views/"+l+".html",name:l,url:"/"+l,data:n},e.state(s),i.addSettingsGroup({name:"Console",caption:"Console related settings",items:[{type:"integer",name:"buildLimit",caption:"Number of builds to fetch",default_value:200},{type:"integer",name:"changeLimit",caption:"Number of changes to fetch",default_value:30}]})}return e}(),t=function(){function e(e,t,i,l,s,o,a,r){var d,c;this.$scope=e,this.$window=i,this.$uibModal=a,this.$timeout=r,this.makeFakeChange=n(this.makeFakeChange,this),this.matchBuildWithChange=n(this.matchBuildWithChange,this),this._onChange=n(this._onChange,this),this.onChange=n(this.onChange,this),angular.extend(this,o),c=s.getSettingsGroup("Console"),this.buildLimit=c.buildLimit.value,this.changeLimit=c.changeLimit.value,this.dataAccessor=l.open().closeOnDestroy(this.$scope),this._infoIsExpanded={},this.$scope.all_builders=this.all_builders=this.dataAccessor.getBuilders(),this.$scope.builders=this.builders=[],"undefined"!=typeof Intl&&null!==Intl?(d=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),this.strcompare=d.compare):this.strcompare=function(e,t){return t>e?-1:e===t?0:1},this.$scope.builds=this.builds=this.dataAccessor.getBuilds({property:["yp_build_revision","yp_build_branch","reason"],limit:this.buildLimit,order:"-started_at"}),this.changes=this.dataAccessor.getChanges({limit:this.changeLimit,order:"-changeid"}),this.buildrequests=this.dataAccessor.getBuildrequests({limit:this.buildLimit,order:"-submitted_at"}),this.buildsets=this.dataAccessor.getBuildsets({limit:this.buildLimit,order:"-submitted_at"}),this.builds.onChange=this.changes.onChange=this.buildrequests.onChange=this.buildsets.onChange=this.onChange}return e.prototype.onChange=function(e){return 0!==this.builds.length&&0!==this.all_builders.length&&this.changes.$resolved&&0!==this.buildsets.length&&0!==this.buildrequests&&null==this.onchange_debounce?this.onchange_debounce=this.$timeout(this._onChange,100):void 0},e.prototype._onChange=function(){var e,t,i,n,l,s,o,a,r,d,c,h,u,g,p;for(this.onchange_debounce=void 0,d=this.builds,n=0,o=d.length;o>n;n++)e=d[n],this.all_builders.get(e.builderid).hasBuild=!0;for(this.sortBuildersByTags(this.all_builders),null==this.changesBySSID&&(this.changesBySSID={}),null==this.changesByRevision&&(this.changesByRevision={}),c=this.changes,l=0,a=c.length;a>l;l++)i=c[l],this.changesBySSID[i.sourcestamp.ssid]=i,this.changesByRevision[i.revision]=i,this.populateChange(i);for(h=this.builds,s=0,r=h.length;r>s;s++)e=h[s],this.matchBuildWithChange(e);this.filtered_changes=[],u=this.changesBySSID,g=[];for(p in u)i=u[p],i.comments&&(i.subject=i.comments.split("\n")[0]),g.push(function(){var e,n,l,s;for(l=i.builders,s=[],n=0,e=l.length;e>n;n++){if(t=l[n],t.builds.length>0){this.filtered_changes.push(i);break}s.push(void 0)}return s}.call(this));return g},e.prototype.sortBuildersByTags=function(e){var t,i,n,l,s,o,a,r,d,c,h,u,g,p,b,f;for(n=[],i="",l=0,a=e.length;a>l;l++)t=e[l],t.hasBuild&&(n.push(t),i+="."+t.builderid);if(i!==this.last_builderids_with_builds){for(p=this._sortBuildersByTags(n),b=[],u=[],h=function(e,t,i){var n,l;if(n=b[e],null==n)n=b[e]=[];else if(l=n[n.length-1],l.tag===t)return void(l.colspan+=i);return n.push({tag:t,colspan:i})},c=this,f=function(e,t){var i,n,l,s,o,a,r;h(t,e.tag,e.builders.length);{if(null!=e.tag_line&&0!==e.tag_line.length){for(a=e.tag_line,r=[],s=0,o=a.length;o>s;s++)i=a[s],r.push(f(i,t+1));return r}for(e.builders.sort(function(e,t){return c.strcompare(e.name,t.name)}),u=u.concat(e.builders),n=l=1;100>=l;n=++l)h(t+n,"",e.builders.length)}},s=0,r=p.length;r>s;s++)g=p[s],f(g,0);for(this.builders=u,this.tag_lines=[],o=0,d=b.length;d>o;o++)p=b[o],(1!==p.length||""!==p[0].tag)&&this.tag_lines.push(p);return this.last_builderids_with_builds=i}},e.prototype._sortBuildersByTags=function(e){var t,i,n,l,s,o,a,r,d,c,h,u,g,p,b,f,m,v,_,y,w,B,C,$,S,k;for(n={},o=0,d=e.length;d>o;o++)if(t=e[o],null!=t.tags)for(y=t.tags,a=0,c=y.length;c>a;a++)$=y[a],null==n[$]&&(n[$]=[]),n[$].push(t);k=[];for($ in n)i=n[$],i.lengthr;r++){for($=k[r],s=!1,w=$.builders,f=0,u=w.length;u>f;f++)if(t=w[f],l.hasOwnProperty(t.builderid)){s=!0;break}if(!s){for(B=$.builders,m=0,g=B.length;g>m;m++)t=B[m],l[t.builderid]=$.tag;S.push($)}}for(C=[],v=0,p=e.length;p>v;v++)t=e[v],l.hasOwnProperty(t.builderid)||C.push(t);if(C.length&&S.push({tag:"",builders:C}),S.length>1)for(_=0,b=S.length;b>_;_++)$=S[_],$.tag_line=this._sortBuildersByTags($.builders);return S},e.prototype.populateChange=function(e){var t,i,n,l,s;for(e.builders=[],e.buildersById={},l=this.builders,s=[],i=0,n=l.length;n>i;i++)t=l[i],t={builderid:t.builderid,name:t.name,builds:[]},e.builders.push(t),s.push(e.buildersById[t.builderid]=t);return s},e.prototype.matchBuildWithChange=function(e){var t,i,n,l,s,o,a,r,d,c,h;if(t=this.buildrequests.get(e.buildrequestid),null!=t&&(i=this.buildsets.get(t.buildsetid),null!=i)){if(null!=i&&null!=i.sourcestamps)for(o=i.sourcestamps,l=0,s=o.length;s>l;l++)h=o[l],n=this.changesBySSID[h.ssid];return null!=(null!=(a=e.properties)?a.yp_build_revision:void 0)?(c=e.properties.yp_build_revision[0],n=this.changesByRevision[c],null==n&&(n=this.changesBySSID[c]),null==n&&(n=this.makeFakeChange(c,e.started_at,c)),n.caption="Commit",null!=(null!=(r=e.properties)?r.yp_build_branch:void 0)&&(n.caption=e.properties.yp_build_branch[0]),n.revlink="http://git.yoctoproject.org/cgit.cgi/poky/commit/?id="+c,n.errorlink="http://errors.yoctoproject.org/Errors/Latest/?filter="+c+"&type=commit&limit=150",null!=(null!=(d=e.properties)?d.reason:void 0)&&(n.reason=e.properties.reason[0])):(null!=i&&null!=i.parent_buildid&&(c="Unresolved "+i.parent_buildid,null==n&&(n=this.changesBySSID[c]),null==n&&(n=this.makeFakeChange("Unresolved "+i.parent_buildid,e.started_at,"Unresolved "+i.parent_buildid))),null==n&&(c="Unresolved "+e.builderid+"-"+e.buildid,null==n&&(n=this.changesBySSID[c]),null==n&&(n=this.makeFakeChange("Unresolved "+e.builderid+"-"+e.buildid,e.started_at,"Unresolved "+e.builderid+"-"+e.buildid))),n.caption=c),n.buildersById[e.builderid].builds.push(e)}},e.prototype.makeFakeChange=function(e,t,i){var n;return n={revision:e,changeid:e,when_timestamp:t,comments:i},this.changesBySSID[e]=n,this.populateChange(n),n},e.prototype.openAll=function(){var e,t,i,n,l;for(n=this.filtered_changes,l=[],t=0,i=n.length;i>t;t++)e=n[t],l.push(e.show_details=!0);return l},e.prototype.closeAll=function(){var e,t,i,n,l;for(n=this.filtered_changes,l=[],t=0,i=n.length;i>t;t++)e=n[t],l.push(e.show_details=!1);return l},e.prototype.getRowHeaderWidth=function(){return this.hasExpanded()?400:200},e.prototype.getColHeaderHeight=function(){var e,t,i,n,l;for(n=0,l=this.builders,t=0,i=l.length;i>t;t++)e=l[t],n=Math.max(e.name.length,n);return Math.max(100,3*n)},e.prototype.isBigTable=function(){var e;return e=this.getRowHeaderWidth(),(this.$window.innerWidth-e)/this.builders.length<40?!0:!1},e.prototype.hasExpanded=function(){var e,t,i,n;for(n=this.changes,t=0,i=n.length;i>t;t++)if(e=n[t],this.infoIsExpanded(e))return!0;return!1},e.prototype.selectBuild=function(e){var t;return t=this.$uibModal.open({templateUrl:"yocto_console_view/views/modal.html",controller:"consoleModalController as modal",windowClass:"modal-big",resolve:{selectedBuild:function(){return e}}})},e.prototype.toggleInfo=function(e){return e.show_details=!e.show_details},e.prototype.infoIsExpanded=function(e){return e.show_details},e}(),angular.module("yocto_console_view",new e).config(["$stateProvider","glMenuServiceProvider","bbSettingsServiceProvider",i]).controller("consoleController",["$scope","$q","$window","dataService","bbSettingsService","resultsService","$uibModal","$timeout",t])}.call(this),function(){var e,t;e=function(){function e(){return{replace:!1,restrict:"E",scope:!1,templateUrl:"yocto_console_view/views/releaseselectorfield.html",controller:"_ReleaseselectorfieldController"}}return e}(),t=function(){function e(e,t){var i,n,l;for(l=e;null!=l&&null==l.rootfield;)l=l.$parent;return null==l?void console.log("rootfield not found!?!?"):(i={},n=function(e){var t,l,s,o;for(o=[],l=0,s=e.length;s>l;l++)t=e[l],null!=t.fields?o.push(n(t.fields)):o.push(i[t.fullName]=t);return o},n(l.rootfield.fields),console.log(i),void e.$watch("field.value",function(t,n){var l,s,o,a;if(o=e.field.selectors[t],null!=o){s=[];for(l in o)a=o[l],console.log(l),s.push(i[l].value=a);return s}}))}return e}(),angular.module("yocto_console_view").directive("releaseselectorfield",[e]).controller("_ReleaseselectorfieldController",["$scope","$http",t])}.call(this),function(){var e;e=function(){function e(){return{replace:!0,restrict:"E",scope:{change:"=",compact:"=?"},templateUrl:"yocto_console_view/views/yoctochangedetails.html"}}return e}(),angular.module("common").directive("yoctochangedetails",[e])}.call(this),function(){var e;e=function(){function e(e,t,i){this.$uibModalInstance=t,this.selectedBuild=i,e.$on("$stateChangeStart",function(e){return function(){return e.close()}}(this))}return e.prototype.close=function(){return this.$uibModalInstance.close()},e}(),angular.module("yocto_console_view").controller("consoleModalController",["$scope","$uibModalInstance","selectedBuild",e])}.call(this),angular.module("yocto_console_view").run(["$templateCache",function(e){e.put("yocto_console_view/views/console.html",'

loading

No changes. Console view needs changesource to be setup, andchangesto be in the system.

{{tag.tag}}
{{ build.number }}
'),e.put("yocto_console_view/views/releaseselectorfield.html",'
'),e.put("yocto_console_view/views/yoctochangedetails.html",'
{{ change.caption }}  {{ "Errors" }}  {{ change.caption }}  ({{ change.when_timestamp | timeago }})  
Reason{{ change.reason }}
Author{{ change.author }}
Date{{ change.when_timestamp | dateformat:\'LLL\'}} ({{ change.when_timestamp | timeago }})
Repository{{ change.repository }}
Branch{{ change.branch }}
Revision {{ change.revision }}
Comment
{{ change.comments }}
Changed files
  • {{file}}

No files

'),e.put("yocto_console_view/views/modal.html",'')}]); \ No newline at end of file +BOWERDEPS="undefined"==typeof BOWERDEPS?{}:BOWERDEPS,function(){var e,t,i,n=function(e,t){return function(){return e.apply(t,arguments)}};e=function(){function e(){return["ui.router","ui.bootstrap","ngAnimate","guanlecoja.ui","bbData"]}return e}(),i=function(){function e(e,t,i){var n,l,s;l="console",t.addGroup({name:l,caption:"Yocto Console View",icon:"exclamation-circle",order:5}),n={group:l,caption:"Yocto Console View"},s={controller:l+"Controller",controllerAs:"c",templateUrl:"yocto_console_view/views/"+l+".html",name:l,url:"/"+l,data:n},e.state(s),i.addSettingsGroup({name:"Console",caption:"Console related settings",items:[{type:"integer",name:"buildLimit",caption:"Number of builds to fetch",default_value:200},{type:"integer",name:"changeLimit",caption:"Number of changes to fetch",default_value:30}]})}return e}(),t=function(){function e(e,t,i,l,s,o,a,r){var d,c;this.$scope=e,this.$window=i,this.$uibModal=a,this.$timeout=r,this.makeFakeChange=n(this.makeFakeChange,this),this.matchBuildWithChange=n(this.matchBuildWithChange,this),this._onChange=n(this._onChange,this),this.onChange=n(this.onChange,this),angular.extend(this,o),c=s.getSettingsGroup("Console"),this.buildLimit=c.buildLimit.value,this.changeLimit=c.changeLimit.value,this.dataAccessor=l.open().closeOnDestroy(this.$scope),this._infoIsExpanded={},this.$scope.all_builders=this.all_builders=this.dataAccessor.getBuilders(),this.$scope.builders=this.builders=[],"undefined"!=typeof Intl&&null!==Intl?(d=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}),this.strcompare=d.compare):this.strcompare=function(e,t){return t>e?-1:e===t?0:1},this.$scope.builds=this.builds=this.dataAccessor.getBuilds({property:["yp_build_revision","yp_build_branch","reason"],limit:this.buildLimit,order:"-started_at"}),this.changes=this.dataAccessor.getChanges({limit:this.changeLimit,order:"-changeid"}),this.buildrequests=this.dataAccessor.getBuildrequests({limit:this.buildLimit,order:"-submitted_at"}),this.buildsets=this.dataAccessor.getBuildsets({limit:this.buildLimit,order:"-submitted_at"}),this.builds.onChange=this.changes.onChange=this.buildrequests.onChange=this.buildsets.onChange=this.onChange}return e.prototype.onChange=function(e){return 0!==this.builds.length&&0!==this.all_builders.length&&this.changes.$resolved&&0!==this.buildsets.length&&0!==this.buildrequests&&null==this.onchange_debounce?this.onchange_debounce=this.$timeout(this._onChange,100):void 0},e.prototype._onChange=function(){var e,t,i,n,l,s,o,a,r,d,c,h,u,g,p;for(this.onchange_debounce=void 0,d=this.builds,n=0,o=d.length;o>n;n++)e=d[n],this.all_builders.get(e.builderid).hasBuild=!0;for(this.sortBuildersByTags(this.all_builders),null==this.changesBySSID&&(this.changesBySSID={}),null==this.changesByRevision&&(this.changesByRevision={}),c=this.changes,l=0,a=c.length;a>l;l++)i=c[l],this.changesBySSID[i.sourcestamp.ssid]=i,this.changesByRevision[i.revision]=i,this.populateChange(i);for(h=this.builds,s=0,r=h.length;r>s;s++)e=h[s],this.matchBuildWithChange(e);this.filtered_changes=[],u=this.changesBySSID,g=[];for(p in u)i=u[p],i.comments&&(i.subject=i.comments.split("\n")[0]),g.push(function(){var e,n,l,s;for(l=i.builders,s=[],n=0,e=l.length;e>n;n++){if(t=l[n],t.builds.length>0){this.filtered_changes.push(i);break}s.push(void 0)}return s}.call(this));return g},e.prototype.sortBuildersByTags=function(e){var t,i,n,l,s,o,a,r,d,c,h,u,g,p,b,f;for(n=[],i="",l=0,a=e.length;a>l;l++)t=e[l],t.hasBuild&&(n.push(t),i+="."+t.builderid);if(i!==this.last_builderids_with_builds){for(p=this._sortBuildersByTags(n),b=[],u=[],h=function(e,t,i){var n,l;if(n=b[e],null==n)n=b[e]=[];else if(l=n[n.length-1],l.tag===t)return void(l.colspan+=i);return n.push({tag:t,colspan:i})},c=this,f=function(e,t){var i,n,l,s,o,a,r;h(t,e.tag,e.builders.length);{if(null!=e.tag_line&&0!==e.tag_line.length){for(a=e.tag_line,r=[],s=0,o=a.length;o>s;s++)i=a[s],r.push(f(i,t+1));return r}for(e.builders.sort(function(e,t){return c.strcompare(e.name,t.name)}),u=u.concat(e.builders),n=l=1;100>=l;n=++l)h(t+n,"",e.builders.length)}},s=0,r=p.length;r>s;s++)g=p[s],f(g,0);for(this.builders=u,this.tag_lines=[],o=0,d=b.length;d>o;o++)p=b[o],(1!==p.length||""!==p[0].tag)&&this.tag_lines.push(p);return this.last_builderids_with_builds=i}},e.prototype._sortBuildersByTags=function(e){var t,i,n,l,s,o,a,r,d,c,h,u,g,p,b,f,m,v,_,y,w,B,C,S,$,k;for(n={},o=0,d=e.length;d>o;o++)if(t=e[o],null!=t.tags)for(y=t.tags,a=0,c=y.length;c>a;a++)S=y[a],null==n[S]&&(n[S]=[]),n[S].push(t);k=[];for(S in n)i=n[S],i.lengthr;r++){for(S=k[r],s=!1,w=S.builders,f=0,u=w.length;u>f;f++)if(t=w[f],l.hasOwnProperty(t.builderid)){s=!0;break}if(!s){for(B=S.builders,m=0,g=B.length;g>m;m++)t=B[m],l[t.builderid]=S.tag;$.push(S)}}for(C=[],v=0,p=e.length;p>v;v++)t=e[v],l.hasOwnProperty(t.builderid)||C.push(t);if(C.length&&$.push({tag:"",builders:C}),$.length>1)for(_=0,b=$.length;b>_;_++)S=$[_],S.tag_line=this._sortBuildersByTags(S.builders);return $},e.prototype.populateChange=function(e){var t,i,n,l,s;for(e.builders=[],e.buildersById={},l=this.builders,s=[],i=0,n=l.length;n>i;i++)t=l[i],t={builderid:t.builderid,name:t.name,builds:[]},e.builders.push(t),s.push(e.buildersById[t.builderid]=t);return s},e.prototype.matchBuildWithChange=function(e){var t,i,n,l,s,o,a,r,d,c,h,u;if(t=this.buildrequests.get(e.buildrequestid),null!=t&&(i=this.buildsets.get(t.buildsetid),null!=i)){if(null!=i&&null!=i.sourcestamps)for(a=i.sourcestamps,l=0,s=a.length;s>l;l++)u=a[l],n=this.changesBySSID[u.ssid];return null!=(null!=(r=e.properties)?r.yp_build_revision:void 0)?(h=e.properties.yp_build_revision[0],n=this.changesByRevision[h],null==n&&(n=this.changesBySSID[h]),null==n&&(null!=i&&null!=i.parent_buildid&&(o="Unresolved "+i.parent_buildid,delete this.changesBySSID.oldrev),o="Unresolved "+e.builderid+"-"+e.buildid,delete this.changesBySSID.oldrev,n=this.makeFakeChange(h,e.started_at,h)),n.caption="Commit",null!=(null!=(d=e.properties)?d.yp_build_branch:void 0)&&(n.caption=e.properties.yp_build_branch[0]),n.revlink="http://git.yoctoproject.org/cgit.cgi/poky/commit/?id="+h,n.errorlink="http://errors.yoctoproject.org/Errors/Latest/?filter="+h+"&type=commit&limit=150",null!=(null!=(c=e.properties)?c.reason:void 0)&&(n.reason=e.properties.reason[0])):(null!=i&&null!=i.parent_buildid&&(h="Unresolved "+i.parent_buildid,null==n&&(n=this.changesBySSID[h]),null==n&&(o="Unresolved "+e.builderid+"-"+e.buildid,delete this.changesBySSID.oldrev,n=this.makeFakeChange(h,e.started_at,h))),null==n&&(h="Unresolved "+e.builderid+"-"+e.buildid,null==n&&(n=this.changesBySSID[h]),null==n&&(n=this.makeFakeChange(h,e.started_at,h))),n.caption=h),n.buildersById[e.builderid].builds.push(e)}},e.prototype.makeFakeChange=function(e,t,i){var n;return n={revision:e,changeid:e,when_timestamp:t,comments:i},this.changesBySSID[e]=n,this.populateChange(n),n},e.prototype.openAll=function(){var e,t,i,n,l;for(n=this.filtered_changes,l=[],t=0,i=n.length;i>t;t++)e=n[t],l.push(e.show_details=!0);return l},e.prototype.closeAll=function(){var e,t,i,n,l;for(n=this.filtered_changes,l=[],t=0,i=n.length;i>t;t++)e=n[t],l.push(e.show_details=!1);return l},e.prototype.getRowHeaderWidth=function(){return this.hasExpanded()?400:200},e.prototype.getColHeaderHeight=function(){var e,t,i,n,l;for(n=0,l=this.builders,t=0,i=l.length;i>t;t++)e=l[t],n=Math.max(e.name.length,n);return Math.max(100,3*n)},e.prototype.isBigTable=function(){var e;return e=this.getRowHeaderWidth(),(this.$window.innerWidth-e)/this.builders.length<40?!0:!1},e.prototype.hasExpanded=function(){var e,t,i,n;for(n=this.changes,t=0,i=n.length;i>t;t++)if(e=n[t],this.infoIsExpanded(e))return!0;return!1},e.prototype.selectBuild=function(e){var t;return t=this.$uibModal.open({templateUrl:"yocto_console_view/views/modal.html",controller:"consoleModalController as modal",windowClass:"modal-big",resolve:{selectedBuild:function(){return e}}})},e.prototype.toggleInfo=function(e){return e.show_details=!e.show_details},e.prototype.infoIsExpanded=function(e){return e.show_details},e}(),angular.module("yocto_console_view",new e).config(["$stateProvider","glMenuServiceProvider","bbSettingsServiceProvider",i]).controller("consoleController",["$scope","$q","$window","dataService","bbSettingsService","resultsService","$uibModal","$timeout",t])}.call(this),function(){var e,t;e=function(){function e(){return{replace:!1,restrict:"E",scope:!1,templateUrl:"yocto_console_view/views/releaseselectorfield.html",controller:"_ReleaseselectorfieldController"}}return e}(),t=function(){function e(e,t){var i,n,l;for(l=e;null!=l&&null==l.rootfield;)l=l.$parent;return null==l?void console.log("rootfield not found!?!?"):(i={},n=function(e){var t,l,s,o;for(o=[],l=0,s=e.length;s>l;l++)t=e[l],null!=t.fields?o.push(n(t.fields)):o.push(i[t.fullName]=t);return o},n(l.rootfield.fields),console.log(i),void e.$watch("field.value",function(t,n){var l,s,o,a;if(o=e.field.selectors[t],null!=o){s=[];for(l in o)a=o[l],console.log(l),s.push(i[l].value=a);return s}}))}return e}(),angular.module("yocto_console_view").directive("releaseselectorfield",[e]).controller("_ReleaseselectorfieldController",["$scope","$http",t])}.call(this),function(){var e;e=function(){function e(){return{replace:!0,restrict:"E",scope:{change:"=",compact:"=?"},templateUrl:"yocto_console_view/views/yoctochangedetails.html"}}return e}(),angular.module("common").directive("yoctochangedetails",[e])}.call(this),function(){var e;e=function(){function e(e,t,i){this.$uibModalInstance=t,this.selectedBuild=i,e.$on("$stateChangeStart",function(e){return function(){return e.close()}}(this))}return e.prototype.close=function(){return this.$uibModalInstance.close()},e}(),angular.module("yocto_console_view").controller("consoleModalController",["$scope","$uibModalInstance","selectedBuild",e])}.call(this),angular.module("yocto_console_view").run(["$templateCache",function(e){e.put("yocto_console_view/views/console.html",'

loading

No changes. Console view needs changesource to be setup, andchangesto be in the system.

{{tag.tag}}
{{ build.number }}
'),e.put("yocto_console_view/views/releaseselectorfield.html",'
'),e.put("yocto_console_view/views/yoctochangedetails.html",'
{{ change.caption }}  {{ "Errors" }}  {{ change.caption }}  ({{ change.when_timestamp | timeago }})  
Reason{{ change.reason }}
Author{{ change.author }}
Date{{ change.when_timestamp | dateformat:\'LLL\'}} ({{ change.when_timestamp | timeago }})
Repository{{ change.repository }}
Branch{{ change.branch }}
Revision {{ change.revision }}
Comment
{{ change.comments }}
Changed files
  • {{file}}

No files

'),e.put("yocto_console_view/views/modal.html",'')}]); \ No newline at end of file