[Buildbot-devel] [buildbot] Bootstrap latest does not work with buildbot-www. (#828)
Luis Lloret
luislloret at gmail.com
Thu Aug 15 14:55:27 UTC 2013
Hi,
I have been having a look at trying to start contributing to buildbot-www
and decided that the easiest way to start (and learn) was to create a new
page, something like the old Changesources one. So there I went, and this
is what I have seen and done so far:
- I made a simple jade template (with an ng-repeat, like the one in
builders)
- I made a simple controller
- I added the new route to the angularjs route component
- ...
So, now I am at the point where I can see my new page, nicely rendered, but
the data that it shows in the table does not make any sense. I think it is
showing the methods that restangular objects get added when they are
restangularized. This is in the buildbotService component, I think.
I see that this happens as well in the builders page, so I am thinking: are
we sure that the buildbotService is returning the right data?
This is what I see it is returning (for changesources) (you can see that
the element 0 holds the 2 valid changesources I have configured, element 1
contains something else, and then there is a lot of things that I am not
sure what they are doing there):
************
{
changesources: {
0:
[ {
changesourceid: 1
link: http://localhost:8020/api/v2/changesource/1
master: {
active: true
last_active: 1376575201
link: http://localhost:8020/api/v2/master/1
masterid: 1
name: luis-minmate:/home/luis/buildbot/master9
}
name: http://myserver.com/svn/is/trunk/
} , {
changesourceid: 2
link: http://localhost:8020/api/v2/changesource/2
master: {
active: true
last_active: 1376575201
link: http://localhost:8020/api/v2/master/1
masterid: 1
name: luis-minmate:/home/luis/buildbot/master9
}
name: http://myserver.com/svn/is/branches/Virtua/
} ]
1: {
links:
[ {
href: http://localhost:8020/api/v2/changesource
rel: self
} ]
total: 2
route: changesource
getRestangularUrl: null
addRestangularMethod: null
one: null
all: null
parentResource: null
restangularCollection: false
get: null
getList: null
put: null
post: null
remove: null
head: null
trace: null
options: null
patch: null
customOperation: null
doPUT: null
customPUT: null
doPOST: null
customPOST: null
doGET: null
customGET: null
doDELETE: null
customDELETE: null
customGETLIST: null
doGETLIST: null
bind: null
unbind: null
on: null
}
changesources: {
$ref: $["0"]
}
meta: {
$ref: $["1"]
}
route: changesource
getRestangularUrl: null
addRestangularMethod: null
one: null
all: null
parentResource: null
restangularCollection: true
post: null
head: null
trace: null
putElement: null
options: null
patch: null
getList: null
customOperation: null
doPUT: null
customPUT: null
doPOST: null
customPOST: null
doGET: null
customGET: null
doDELETE: null
customDELETE: null
customGETLIST: null
doGETLIST: null
bind: null
unbind: null
on: null
}
}
**********************************
Am I missing something in here? Let me know if you need any more info.
Thanks,
Luis
On Wed, Aug 14, 2013 at 10:45 PM, Pierre Tardy <notifications at github.com>wrote:
> And the data is not hardcoded. It s auto generated from spec. :)
> Le 14 août 2013 23:24, "Dustin J. Mitchell" <notifications at github.com> a
> écrit :
>
> > Yes - there's a nice REST API to the data API - see
> > `master/docs/developer/{data,www}.rst`.
> >
> > —
> > Reply to this email directly or view it on GitHub<
> https://github.com/buildbot/buildbot/pull/828#issuecomment-22668148>
> > .
> >
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/buildbot/buildbot/pull/828#issuecomment-22669720>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130815/9d5f54a3/attachment.html>
More information about the devel
mailing list