Friday, 2015-02-13

krotscheckSo when a user clicks on the link, they see the pretty webclient, not the API00:00
greghaynesaha!00:00
krotscheckSince the webclient and the APi are separate projects, and are not necessarily installed on the same server, how do we handle tha?00:00
krotscheckHence me teaching the API that it should send any and all HTTP requests with text/html accepts headers to a different domain.00:00
krotscheckAnd then just write the API url to the changed resource into the email.00:01
greghaynesyea, totally makes sense now00:01
greghaynesand yep, thats an issue ;)00:01
krotscheckAll the little prerequisites that one never thinks of when someone says: I need email!00:02
greghaynesyea, the app I worked on was monolithic so this also wasnt an issue00:02
greghaynesI guess another email question - are we going to actually be doing the sending or is this just smtp to a relay thatll do the sending?00:10
greghaynesit ends up being an issue for things like dkim which kind of suck to do in python00:10
greghaynesbut help a lot to not be considered a spammer00:11
greghaynes(might be an -infra questoin)00:11
krotscheckgreghaynes: Honestly, i think we have to use sendmail and make someone else send it. Reason is that some clouds actively sending email.00:19
* krotscheck glares at HP00:19
krotschecksorry00:19
krotschecks/actively/actively block/00:19
greghaynesyea, thats actually a good idea00:21
greghaynesotherwise you end up having to do all sorts of domain specific config in your app for what type of headers you want to put in the messages00:21
greghaynesand making that someone elses problem is awesome00:21
krotscheckOk, so you hit the API at, say, /v1/projects00:25
krotscheckMiddleware catches that you want HTML, so it does a 303 See Other00:25
krotscheckAnd it sends you to…. configured_url/?somevariablename=/v1/projects00:26
krotscheckSo that the JS client can parse it.00:26
krotscheckBut what is that variable nam?00:26
krotscheckActually00:30
greghayneswait, theres a 1:1 mapping from api endpoints to ui entrypoints?00:30
krotscheckgreghaynes: Not quite, but we’re pretty close00:32
krotscheckAPI starts (I believe) at /api/v100:32
krotscheckUI starts at #!/00:32
krotscheckAnd there’s some resources that are just not represented.00:33
krotscheckBut overall, yeah, I think that was kindof the idea.00:33
krotscheckI think the UI uses singular resources, but that can be changed.00:33
* krotscheck is seriously thinking about making the UI represent the api structure as closely as possible where posisble.00:34
greghayneshrm, if you can, seems hard00:34
krotscheckAt the very least, the GET url’s to see specific resources should be the same.00:34
krotscheckWell, for exampel:00:34
krotscheckhttps://storyboard.openstack.org/#!/project_group/5500:34
krotscheckIn the API, that’s /api/v1/project_groups/5500:34
krotscheckI’m ok with stripping out everything before the resource name, and then making the UI adhere to a similar url structure.00:35
greghaynesyea, if youre able to have mappings like that its awesome00:36
greghayneswhich you might totally be able to in a ticket tracking system, its pretty data driven00:36
krotscheckExactly00:39
*** Piet has joined #storyboard00:43
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Redirect Browsers from API to Client  https://review.openstack.org/15555101:03
krotscheckgreghaynes: ^^01:04
greghayneskrotscheck: So interesting issue, it seems were not catching IntegrityError's as DBReferenceError's01:05
greghaynesand this is surfacing when I switch to pymysql for some reason01:06
krotscheck…wha?01:06
greghaynesoh joy, and this is in oslo.db AFAICT01:06
greghaynesyea, im kind of mind=blpwn01:07
greghaynesbest guess is pymysql and mysql-python raise different exceptions for foreign key errors01:07
greghaynesoh my, I just saw what is actually going in in oslo.db for this01:22
greghaynessome things cannot be unseen01:22
greghayneskrotscheck: https://review.openstack.org/15557401:54
* greghaynes needs a drink after that one01:54
krotscheckNo way01:55
krotscheckWhat?01:55
greghaynesyep01:55
krotscheckWHAT IS THAT THING01:55
greghayneslike I said, some things cannot be unseen01:55
openstackgerritgreghaynes proposed openstack-infra/storyboard: Switch from mysql-python to PyMySQL  https://review.openstack.org/15233902:18
greghaynesnow to try out this cross-repo dependency thing :)02:19
*** coolsvap_ is now known as coolsvap06:18
*** mrmartin has joined #storyboard06:48
*** alexismonville has joined #storyboard06:50
*** yolanda_ has joined #storyboard06:57
*** jtomasek has joined #storyboard07:15
*** alexismonville has quit IRC07:29
*** alexismonville has joined #storyboard07:32
*** alexismonville has quit IRC07:54
*** jcoufal has joined #storyboard08:09
*** mrmartin has quit IRC08:29
*** CTtpollard has joined #storyboard08:37
*** openstackgerrit has quit IRC08:42
*** openstackgerrit has joined #storyboard08:42
*** yolanda_ has quit IRC08:48
*** yolanda has quit IRC08:48
*** yolanda has joined #storyboard08:48
*** yolanda_ has joined #storyboard08:48
*** CTtpollard has quit IRC09:02
*** MaxV has joined #storyboard09:09
*** CTtpollard has joined #storyboard09:17
*** tpollard_ has joined #storyboard09:17
*** CTtpollard has quit IRC09:21
*** tpollard_ has quit IRC09:23
*** CTtpollard has joined #storyboard09:23
*** mrmartin has joined #storyboard09:38
*** yolanda_ has quit IRC11:30
*** yolanda has quit IRC11:30
*** yolanda_ has joined #storyboard11:31
*** yolanda has joined #storyboard11:31
*** alexismonville has joined #storyboard12:55
*** jcoufal_ has joined #storyboard13:30
*** jcoufal has quit IRC13:33
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Fix tests to use correct base classes  https://review.openstack.org/15575014:10
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Session per request  https://review.openstack.org/15575114:10
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added branches to storyboard  https://review.openstack.org/15044714:14
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added milestones  https://review.openstack.org/15250014:20
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added new paginate query  https://review.openstack.org/15323114:24
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Delete all user tokens method  https://review.openstack.org/15575914:39
*** jcoufal_ has quit IRC14:57
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Delete all user tokens method  https://review.openstack.org/15575915:29
*** Piet has quit IRC15:33
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Fix owner_id rejection  https://review.openstack.org/15578715:41
*** coolsvap is now known as coolsvap_15:43
*** jedimike has joined #storyboard15:43
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Fix comments put method  https://review.openstack.org/15579015:44
*** MaxV has quit IRC16:30
*** jcoufal has joined #storyboard16:46
*** jcoufal has quit IRC16:51
*** yolanda_ has quit IRC16:55
*** CTtpollard has quit IRC17:03
openstackgerritMerged openstack-infra/storyboard: Fix owner_id rejection  https://review.openstack.org/15578717:08
*** CTtpollard has joined #storyboard17:58
openstackgerritMerged openstack-infra/storyboard: Added new paginate query  https://review.openstack.org/15323117:59
*** krotscheck has quit IRC18:00
*** krotscheck has joined #storyboard18:00
*** alexismonville has quit IRC18:01
krotscheckIt’s patches like this that make me really happy: https://review.openstack.org/#/c/155751/18:03
krotscheck(Even though I -1’d it)18:03
openstackgerritMerged openstack-infra/storyboard: Fix tests to use correct base classes  https://review.openstack.org/15575018:03
openstackgerritgreghaynes proposed openstack-infra/storyboard: Switch from mysql-python to PyMySQL  https://review.openstack.org/15233918:16
* krotscheck should be getting better with reviews from here on out.18:17
krotscheckI have a better search that shows me what I need to look at.18:17
greghaynesheh, its the cycle of using gerrit18:17
greghaynesyou think you found a way to manage your reviews list18:17
greghaynesthen you want to add a different project to your review list18:17
greghaynesanyhow, the oslo.db fix is merged, so ^ should pass py27 now18:18
krotscheckOh good :)18:19
krotscheckWhich means it’ll show on my review list :)18:19
* krotscheck filters out anything that doesn’t pass jenkins18:19
CTtpollardcool18:21
CTtpollardthat's a good filter ;)18:24
* greghaynes wonders why not use the pecan TransactionHook for https://review.openstack.org/#/c/155751/1/storyboard/api/middleware/session_hook.py18:27
greghaynessince really thats what we want to be wrapping, not sessions18:27
*** Piet has joined #storyboard18:30
*** CTtpollard has quit IRC18:31
greghaynesaw crap, oslo.db fix is merged but need to ask them for a release18:34
greghaynesthis also sucks becuase our requirements are essentially oslo.db>=this_new_version18:37
greghayneswhich isnt going to fly with global-reqs18:37
greghaynessweet, so they say release will be on monday \O/18:43
greghayneskrotscheck: Something about the api redirect deal, thats going to make debugging the API annoying18:52
krotscheckgreghaynes: Propose it!18:52
krotscheckgreghaynes: Isn’t that why we hve unit tests?18:53
krotscheckgreghaynes: I mean functional tests?18:53
krotscheckOr do you mean hitting it directly with your browser?18:53
greghaynesyes, but its still fun to hit it with your browser at times18:53
krotscheckgreghaynes: I ususally end up using https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm18:54
greghaynesyea, that is a thing18:54
krotscheckgreghaynes: I get why though.18:54
greghayneskrotscheck: oh, so the request for things for GSoC is going out, someone working on storyboard might not be a bad GSoC deal18:58
krotscheckGSoC?18:58
krotscheckOh!18:58
krotscheckLinky?18:58
greghayneshttp://lists.openstack.org/pipermail/openstack-dev/2015-February/056850.html18:59
greghaynesIve been a mentor 3 or so times so I wouldnt mind proposing something19:00
krotscheckYeah, I had an intern last year that resulted in some neat work done.19:00
krotscheckWOuldn’t mind doing that again.19:00
krotscheckDunno what project in storyboard would fit well though, any thoughts?19:00
*** Piet has quit IRC19:01
greghaynesheh, that is exactly the info I am lacking19:01
greghaynesgiven that ive just been messing around with it for a few weeks ;)19:01
krotscheckCool, let’s put that on monday’s agenda for some brainstorming :)19:01
greghaynesSGTM19:01
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Fix comments put method  https://review.openstack.org/15579019:07
greghayneskrotscheck: For this redirect thing, since we have a default_client_url in the API config, is there an reason we dont just build urls that are default_client_url/#!/api_path directly?19:15
greghaynesbuild urls like that in the emails, that is19:16
krotscheckgreghaynes: That seems like too obvious a solution.19:18
greghaynes:p19:18
krotscheckgreghaynes: But yeah.19:18
krotscheckgreghaynes: Way too simple and obvious.19:18
krotscheckHrm, creating project gorups in the UI client doesn’t seem to work anymore.19:31
*** yolanda has quit IRC19:47
*** yolanda has joined #storyboard19:49
yolandakrotscheck , what happens? i approved a change before19:53
krotscheckyolanda: Nothing- it hangs in some kind of an infinite promise loop.19:53
krotscheckI’ll take a look as soon as I’m done rooting around in our routes.19:54
yolandai don't seem to have perms for that in adin19:54
yolandaadmin19:54
yolandadoes it happen locally?19:54
krotscheckyolanda: Yeah, in my local19:56
krotscheckAs I said, I’ll look into it :)19:56
yolandaok, understood :)20:09
yolandano computer for today20:10
*** jcoufal has joined #storyboard20:22
krotscheckOh god I’m about to do something that makes me feel dirty20:45
*** Piet has joined #storyboard22:08
*** jcoufal has quit IRC22:29
*** alexismonville has joined #storyboard22:32
*** mrmartin has quit IRC22:33
*** alexismonville has quit IRC22:45
openstackgerritgreghaynes proposed openstack-infra/storyboard: Separate out py3 requirements and remove email  https://review.openstack.org/15507822:55
openstackgerritgreghaynes proposed openstack-infra/storyboard: Switch from mysql-python to PyMySQL  https://review.openstack.org/15233923:14
openstackgerritgreghaynes proposed openstack-infra/storyboard: Reorder py27 test to happen after py3 tests  https://review.openstack.org/15516123:33
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible httpclient  https://review.openstack.org/15513923:34
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible unicode types  https://review.openstack.org/15514023:37
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible urllib  https://review.openstack.org/15515023:38
*** jedimike has quit IRC23:38
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Notification hook checks for old entity.  https://review.openstack.org/15592023:38
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use python3 compatible urllib  https://review.openstack.org/15515023:49
openstackgerritgreghaynes proposed openstack-infra/storyboard: Use Python 3 compatible configparser  https://review.openstack.org/15592223:49
greghaynesok, were getting close23:49
greghaynesnow just on to runtime errors23:49

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