Monday, 2014-03-17

*** saju_m has joined #storyboard06:47
*** openstack has quit IRC08:21
*** openstack has joined #storyboard08:30
ruhettx: do you think it's going to become mainstream in OpenStack?08:30
ruhewill other projects adopt this approach?08:30
*** openstackstatus has joined #storyboard08:30
ttxruhe: haven't read the thread yet08:33
ttxruhe: it's compatible with storyboard though08:33
ttxruhe: we'd just have a task that affects the nova-specs repo08:34
*** jcoufal has joined #storyboard08:36
ruhettx: i just imagine a tight integration with this - once spec patch is approved, corresponding story also moves to approved state. in other words story state would automatically reflect the state of spec patch08:47
SergeyLukjanovruhe, IMO if we have good enough comments and ACL systems in storyboard than there will be no need for such approach08:48
ruheSergeyLukjanov: you mean - let drivers team to update story state manually?08:49
SergeyLukjanovruhe, I mean that profit from the CR for BP approach will be less meaningful08:50
ttxruhe: or not having "story state" at all08:51
ruheSergeyLukjanov: i see your point. yes, with the right design StoryBoard will let people do what they're doing now with BP/gerrit08:52
*** jcoufal has quit IRC09:20
*** persia has joined #storyboard09:32
*** persia has quit IRC09:32
*** persia has joined #storyboard09:32
*** saju_m has quit IRC10:17
*** tteggel has quit IRC10:18
*** tteggel has joined #storyboard10:18
*** saju_m has joined #storyboard10:32
*** jcoufal has joined #storyboard11:09
*** openstackgerrit has quit IRC11:10
*** openstackgerrit has joined #storyboard11:10
*** saju_m has quit IRC11:15
*** saju_m has joined #storyboard11:36
ruheanyone wants to comment on https://review.openstack.org/80836 ?13:12
*** hashar has joined #storyboard13:19
*** mfer has joined #storyboard13:19
*** jcoufal has quit IRC14:03
*** jcoufal has joined #storyboard14:04
krotscheckruhe: I'll take a look14:39
ruhekrotscheck: danke schön14:40
krotscheckruhe: Does python or pep8 enforce a "first statement of an override must be super()" rule?14:50
krotscheckI'm curious on whether it's possible for that addCleanup call to somehow end up in a weird order-of-operations error.14:51
*** che-arne has joined #storyboard14:54
krotscheckYou know, even if it did, that'll fail almost instantly.14:56
ruhekrotscheck: it doesn't, but it's a very common practice to put it as a first statement15:03
*** saju_m has quit IRC15:03
*** saju_m has joined #storyboard15:20
ruhekrotscheck: also i spoke with our folks who drive oslo.db. they said that approach we're taking in our DB tests is the right approach15:20
ruhealso they're working on implementing parallel tests on real DBs15:20
ruheso, we just need to wait :)15:20
ruhekrotscheck: NikitaKonovalov: could you please checkout my patch and see if it works correctly on your local machines?15:23
NikitaKonovalovruhe: checking ...15:25
krotscheckruhe: Willdo15:25
krotscheckruhe: Had to blow away the *.pyc files before it worked, but py27 seems to pass. Checking the others now15:27
*** david-lyle has joined #storyboard15:28
krotscheckpypy hates me15:45
*** miqui has joined #storyboard15:47
openstackgerritRuslan Kamaldinov proposed a change to openstack-infra/storyboard: Fix DB migrations in unit tests  https://review.openstack.org/8083615:50
krotscheckThanks for fixing that15:50
mordred++15:53
krotscheckmordred: I need your database brain15:58
krotscheckmordred: Given what we've currently built, and where it's going, we're likely to have the use case of stackalytics and/or ttx writing overview reports of activity. I'm worried that reports like that will generate ad-hoc filters and queries that will block the database and compromise storyboard. Do you think that's a likely scenario?16:00
krotscheckIn a nutshell: I don't want jenkins/zuul to start throwing errors when they try to update tickets, because someone's using the API to load the entire database contents so they can have a pretty chart.16:01
openstackgerritA change was merged to openstack-infra/storyboard: Fix DB migrations in unit tests  https://review.openstack.org/8083616:12
cody-somervillekrotscheck: Do you think there is something architecturally wrong with what we've built that would cause that?16:14
cody-somervillekrotscheck: Unless the api calls involve locks, it shouldn't be too much of a problem and there are known solutions to scaling.16:15
*** saju_m has quit IRC16:15
krotscheckcody-somerville: Architecturally speaking? Yes: We're using an ORM.16:16
cody-somervillekrotscheck: Lot's of websites use ORMs. It certainly has a level of overhead and can sometimes result in some inefficient queries but we can scale that out horizontally.16:18
krotscheckcody-somerville: I'm familiar with quite a few scaling approaches as well - I just think that it might be better (at least in the short run) to provide a replicated, read only database where ttx can write his own queries. That way he can join all he wants.16:18
cody-somervillekrotscheck: I imagine we can do that if we find we need to. I believe sqlalchemy has a 'router' type system similar to Django that lets you route read-only requests to your read-only replicas.16:19
krotscheckcody-somerville: Well, ok, let me give you some background - I've been burned because a BI's reporting query has taken down a live e-commerce site.16:19
krotscheckcody-somerville: So whenever someone says  "Hey I want to run reports on this" my immediate response is "oh hell no"16:20
*** jcoufal has quit IRC16:24
cody-somervillehaha @ BI reporting taking down a e-commerce site. that's gotta hurt.16:24
krotscheck....yeeeaaaah.16:26
ttxkrotscheck: i epect I won't be the only one hitting the API for basic reports though16:30
ttxexpect, even16:30
*** hashar has quit IRC16:36
krotscheckttx: Exactly. For now I'd be happy if we can get some notification of the request/response times, so we keep tabs on what queries take forever.16:44
ttxkrotscheck: back from vacation, will help with storyboard as soon as I'm done with the backlog16:45
krotscheckttx: ruhe just figured out the sqlite nonsense, you should be able to rebase/fix your migration16:47
krotscheckttx: We did rename the migrations though, fair warning.16:48
ttxkrotscheck: I should be away more often16:48
krotscheckNikitaKonovalov, ruhe: jeblair's requested that we get story & task comments working next. How do your schedules look regarding the work items we discussed on thursday?16:51
krotscheckmordred: does https://review.openstack.org/#/c/80836/ supercede https://review.openstack.org/#/c/79208/ ?17:01
NikitaKonovalovkrotscheck: we've got a db model for story comments, so task commnets should be mostly the same17:02
krotscheckNikitaKonovalov: Let's start with stories then.17:02
NikitaKonovalovthen  db_api layer is pretty easy to do17:02
krotscheckYeah, I suspect the UI is going to be tha hard part :)17:03
NikitaKonovalovan the only remaining thing is a controller17:03
krotscheckNikitaKonovalov: Something about keeping comments in different tables for different asset types feels like duplicating code to me :/17:04
NikitaKonovalovwe can do that with inheritance and partial overriding I guess17:05
krotscheckNikitaKonovalov: Yeah, thankfully we don't have to do a fulltext search on comments and return different resource types.17:06
krotscheckNikitaKonovalov: Where should the comments endpoint live? /story/ID/comments/ID?17:07
krotscheckNikitaKonovalov: Treat it as a subresource of stories? Or as its own resource?17:07
krotschecki.e. /story/ID/comments/ID vs /comments/ID17:07
NikitaKonovalovwe can have two endpoints /story/id/commnets and /task/id/comments17:10
krotscheckNikitaKonovalov: Yeah, I'm just debating whether it makes sense to treat comments as an independent resource or as a subresource of the thing it's related to.17:13
* krotscheck can see both sides of the argument.17:13
krotscheckruhe, cody-somerville, ttx: Thoughts on API endpoint for comments? ^^17:14
ttxkrotscheck: I don't think we want comments for tasks. only for stories.17:16
ttxkrotscheck: I would place it under stories, but hen I'm not that RESTful17:17
ttx /story/ID/comments/ID17:17
krotscheckttx: I don't think that's an issue with RESTfulness, since we're describing an explicit subresource.17:17
krotscheckAlright, if no comments for tasks, then subresource it is.17:18
ttxkrotscheck: you are the RESTmaster17:18
krotscheck*snort*17:18
* ttx is back to no unread mails !17:18
* ttx was back to no unread mails.17:18
krotscheckIf I was the rest master, I'd demand that foreign keys be replaced with fully qualified resource URI's.17:18
krotscheckBut that's really just being pedantic.17:22
krotscheckAnd pedantry isn't funny17:22
*** hashar has joined #storyboard19:48
ruhekrotscheck: re schedules - i have more work on this week than i can actually do :), so if you leave me something to hack on i'll do that at the weekend. but i guess NikitaKonovalov will be able to cover REST API side19:53
ruhekrotscheck: re API endpoint for comments i agree with ttx19:54
ruhekrotscheck: re performance - we always can run (i hope so) several StoryBoard instances behind a load balancer19:54
ruheand we will just let mordred to figure out DB scaling issues :)19:55
krotscheckGot it20:06
*** mfer has quit IRC20:59
*** hashar is now known as hasharMeeting21:11
* krotscheck found a bug in angular.21:52
*** david-lyle has quit IRC22:04
openstackgerritMichael Krotscheck proposed a change to openstack-infra/storyboard-webclient: Added user preference handling  https://review.openstack.org/8110022:30
*** openstackgerrit has quit IRC22:39
*** openstackgerrit has joined #storyboard22:40
*** hasharMeeting has quit IRC22:44
*** miqui_ has joined #storyboard23:42
*** miqui has quit IRC23:43

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!