Friday, 2016-05-06

*** anteaya has quit IRC02:04
betherlyo/ morning all!07:35
*** openstackstatus has quit IRC07:38
*** openstackstatus has joined #storyboard07:40
*** ChanServ sets mode: +v openstackstatus07:40
SotKmorning betherley!09:05
Zaramorning!09:24
*** fay_ has joined #storyboard09:37
betherlyo/ Zara SotK :D10:18
betherlyZara: how are you feeling?10:18
Zarabetherly: better than yesterday, still really sleepy. there's building work right next to my flat so I got woken up early. how are you?10:21
betherlyZara: ugh that is super annoying! im ok. still super tired. looking forward to doing as little as physically possible this weekend lol10:23
Zara:)10:24
*** jtomasek has quit IRC10:59
francoblancoAfternoon all! o/ just wanted to say that I've got a bit of free time today before I catch a flight, so if anyone wants to send some urgent but beginner friendly-ish reviews my way I'd be happy to try and do them :)11:13
*** fay_ has quit IRC11:25
Zarahi! :) I'm not sure about 'urgent', but probably best to look at smallish ones here https://review.openstack.org/#/q/project:openstack-infra/storyboard and https://review.openstack.org/#/q/project:openstack-infra/storyboard-webclient11:30
francoblancoOK cool, thanks Zara I'll take a look whilst I'm heading to the airport. Hope you're feeling a bit better today btw11:41
Zarathanks11:43
*** jseutter has joined #storyboard12:55
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add a table for story permissions  https://review.openstack.org/31095113:44
Zara\o/13:45
Zarathanks13:46
Zaraahahaha, I'm guessing you just accessed my test instance13:48
Zarasince I started it up after the migration and my logs were full of 'adam coldrick'13:48
Zarawas a bit unexpected13:48
SotK:D13:48
Zarachecking nothing is on fire...13:48
Zaraat some point I should really fix the users search stuff in my db13:49
* Zara notes that the preferences page should make it more obvious to the user that their preferences have been updated13:51
Zara(atm it gives them a message, but they have to scroll down so far to save preferences that the message isn't visible when clicking 'save')13:51
Zaraso it can seem like the page doesn't react13:52
Zaraso probably a shortterm answer is to rearrange things so less scrolling13:52
Zaraokay, db migration causes 500 error for me when I make a new story13:56
Zara'500: POST /api/v1/stories: (InternalError) (1364, u"Field 'private' doesn't have a default value") 'INSERT INTO stories (created_at, updated_at, creator_id, story_type_id, title, description, is_bug) VALUES (%s, %s, %s, %s, %s, %s, %s)' (datetime.datetime(2016, 5, 6, 13, 55, 50, 78631), None, 1, 1, 'newstory', 'dskfjldsfds', 1) '13:56
*** jtomasek has joined #storyboard13:59
ZaraSotK ^14:00
ZaraI can paste more context if useful, but it seemed like the sort of thing that might provoke an 'Ohhh, I forgot the thing!'14:05
* SotK is fixing it14:06
Zara\o/14:09
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Allow the creation of private stories  https://review.openstack.org/31095214:14
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Add a table for story permissions  https://review.openstack.org/31095114:14
Zara:)14:14
Zaraso, given I've already updated my db to version 57 for this, how do I migrate to the newer version of the patch?14:15
ZaraI've probably done this before but forgotten :/14:15
-openstackstatus- NOTICE: Zuul is currently recovering from a large number of changes, it will take a few hours until your job is processed. Please have patience and enjoy a great weekend!14:16
Zarawhat a friendly status message! \o/14:17
SotKdowngrade to 056 and re-upgrade should be fine14:17
Zaraiirc last time my downgrade set on fire, okay14:17
SotKshouldn't be too bad this time, the change is minimal14:17
* Zara crosses fingers14:19
Zaraseems fine so far, though I just swapped 'upgrade 057' for 'downgrade 056' in the command I was using, so I hope that's right14:19
SotKsounds right14:20
Zaramy page is ful of errors14:20
SotK\o/14:20
* Zara tries restarting all the things14:20
betherlyyay for restarts14:21
Zara:)14:21
Zaraokay, seems fine now14:21
* Zara prepares to re-upgrade14:21
Zaraseems to work now \o/14:28
SotKexcellent14:28
Zaranow I'm so confused, since it looks like I took the wrong patch the second time? but it worked? wah?14:31
SotKo.O14:32
ZaraI thought I'd gone from 3 to 4, but then the commands look like I went from 2 to 3 (which is just the commit message so no way was that intended...)14:34
* Zara downgrades and upgrades *again* to be careful14:35
Zaraargh14:35
Zarait works, anyway... so yay?14:39
Zara I'm not sure what happened there14:39
Zarabut I got an error, then didn't get it, apparently on the same patch, after a later patch was submitted. such mystery.14:39
Zaraand now everything seems to work on the new patch anyway14:40
Zaraseems it just needed me to restart all the things or something, is my best guess14:40
SotKI guess so14:40
SotKweird14:40
Zara¯\_(ツ)_/¯14:41
Zarasorry for asking you to fix something that probably wasn't broken but also was...14:42
Zarawere you able to reproduce it for the fix?14:42
SotKI didn't try :)14:45
Zara>_>14:45
Zaramystery forever!14:45
-openstackstatus- NOTICE: Zuul has been restarted. As a results, we only preserved patches in the gate queue. Be sure to recheck your patches in gerrit if needed.14:47
betherlyhey so weird question perhaps...15:10
betherlytrying to address a more minor ux thing on my long storyboard to do list...15:10
betherlytrying to find the code for the form for adding a task to a story15:11
Zaraheya15:11
betherlyive found a src link to /inline/task_edit_form.html but as yet i cannot find that actually existing anywhere - mystery15:11
ZaraI think it's in the same file15:11
betherlyor potentially i am having a friday breakdown. either way...can anyone help :D15:12
Zarasince I was confused by that too15:12
Zarathe /inline means it should be elsewhere in the file15:12
betherlyah15:12
Zarayeah, line 366 I think15:13
betherlyfound iiiiit15:13
Zara\o/15:13
betherlyi gave up looking too early. thank you!15:14
betherly:D15:14
Zaranp, I got totally baffled by it a while back15:14
Zarayou'd think the word 'inline' would be a clue but it just didn't click15:14
SotK`git grep "/inline/task_edit_form.html"` :P15:15
Zarawell I just found a bug so no :P for you15:15
SotKwhat is the bug? :(15:16
Zaranot sure which file yet, but 500: PUT /api/v1/worklists/23/items/50: story_get() got an unexpected keyword argument 'current_use'15:16
Zarawhen moving a card from one lane to another15:16
Zaramy guess is maybe a typo somewhere which should be 'current_user'15:17
Zara(in the api patch I'm reviewing now, but guessing you've guessed that..)15:18
SotKwat15:18
Zaraaha, line 24515:18
Zaraworklists.py15:18
Zarahttps://review.openstack.org/#/c/310952/8/storyboard/api/v1/worklists.py15:18
ZaraI sent a comment so it was easier to spot15:19
SotKaha, its moving a story not a task, I must have not done that in all my random card moving15:20
Zaraah, it's repeated elsewhere in that file, guessing you pasted your old code15:21
* Zara posts it up15:22
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Allow the creation of private stories  https://review.openstack.org/31095215:23
Zara:D couldn't spot 'use=' anywhere else so hopefully we've caught all of those15:25
*** jtomasek has quit IRC15:33
betherlyis there any reason that form fields have been appended with things like input-inline ?15:34
betherlycurrently the only purpose i can see in that is that when '-inline' is removed it adds another class that manages the styling of the form field15:34
betherlysame with project-typeahead and user-typeahead fields15:34
betherlythe classes can be added manually without the appended field name and that would allow placeholders to work on those fields to make the form clearer for users15:35
ZaraI think it's used to apply the input_inline.js directive (in src/app/util/directive). where I've done it, I've done it to be consistent with what was there before. but I think the placeholders used to work, so mysteries abound15:37
SotKproject-typeahead and user-typeahead are directives from the same directory too, which exist so that there is a reusable "input box which finds projects/users"15:38
SotK(I think that is why anyhow)15:38
Zarathat's my assumption so I hope you're right xD15:38
betherlyhmm ok so best to leave those alone15:40
betherlytime to find another way around that issue then...15:41
* betherly thought she had found an easy friday afternoon quick fix15:41
betherlyfacepalm15:41
Zarathat may still be the place to look to work out why placeholders don't work in them.15:42
Zarabut no idea really =D15:42
Zaraanyway, I can't break these privacy patches now15:42
ZaraI'm sure there's a way15:42
Zarabut I probably won't find it until I test with ui ones too15:42
ZaraI've looked at the code, but there's a lot and it's similar-looking, so this is definitely one of those times where I have to rely more on testing behaviour, and then look at the code when things go wrong. :/15:43
betherlyi kinda wish i had storyboard set up locally on my mac rather than my vm at moments like these15:45
Zaraoh, jenkins is flagging up an unused var here (idArray) https://review.openstack.org/#/c/312663/15:46
Zaraso that probably needs taking out15:46
Zarahow come it's easier if it's set up locally, ooi? (mine's always been on a vm so curious)15:54
Zaraooh, fancy privacy icon15:55
ZaraI can't decide whether or not I like it being the same colour as the error messages15:56
Zarathe banner, that is15:56
SotKI don't think it should be a different colour15:56
Zarayeah, I don't see a better way, just the first thing I thought when it popped up was that I'd had an error creating the story15:57
SotKand then you read what the red text said, as intended :D15:57
Zara:P I wonder if it'd happen in reverse after a while15:58
betherlyZara: i think just because im used to being on the mac and navigating there. other than storyboard i only use the vms for running devstack and ironic in the background and i do everything front end related on my mac15:58
betherlyeven all my d3 experimentation has been on the mac just because im used to my tools there15:58
betherlyso when i switch over to full dev on my vm its just confusing switching between mac and vm and tools and ugh15:58
ZaraSotK: I'm also wondering whether the banner should scroll with the user (in case a story task list or description is long, and a user tabs elsewhere then comes back)-- or whether that would be thoroughly irritating. but I'm happy to try it like this and see what happens.15:59
persiabetherly: you should be able to do all the SB front-end stuff locally on the Mac, with only the API server and DB in the VM, but you would have to tweak the test deployment stuff.16:00
* SotK decided that would be a pain in the neck on mobile devices16:00
Zaraokay, I can see us having one rule for mobile, one for desktop-- but I'm all for waiting to see if it's actually a problem for anyone16:00
betherlypersia: ye i know there is probably a way to do it but with the amount on my to do list i dont want to break things completely in the process and have to take time out to make it work. but then the time wasted getting frustrated on the vm is probably much the same as that i would use to set it up so...16:01
persiaHeh16:02
SotKZara: its also much more work to get a fixed one to play nicely :)16:02
Zarabetherly: it'd be cool if you were able to use your regular tools, since something you bring to the project is knowledge of what tools are out there, but I agree you could lose hours fiddling around with it. I wonder how much of the same stuff you could get on your VM?16:03
betherlyZara: to be honest i just have to switch between and thats fine, its just a bit of getting used to it and i need to suck it up and use my vm more rather than avoid it lol16:05
ZaraSotK: yeah, great fun :D. I just know a buncha people hilighted the banner as important, and most people tend to have a task-tracker open in the background while they do other stuff, so won't be giving it their full attention, plus stories can get long. so it's on my 'possible future fix' list rather than my 'lol no way are we fixing that, YOU'RE WRONG' list.16:06
Zaraand I'm now glad to be aware of the mobile worry-- even if I forget it almost immediately, which seems to happen to me ;_'16:07
Zara;_;16:07
Zarasee I can't even remember how to type semicolons16:08
Zarabetherly: as long as you're comfortable-ish, then sounds fine! :D16:08
Zaraokay, so something I notice about the banner is that it seems to be a feature of the story detail page, rather than something that comes up for any private resource16:10
Zaraso the code will have to be duplicated16:10
Zarathat seems a bit strange to me (obviously the text will change but the 'red thing at top of the screen' seems pretty constant)16:11
SotKI don't see any value in generalizing it more, its just a single <div> that contains text16:12
*** dabukalam has quit IRC16:25
*** dabukalam has joined #storyboard16:25
*** SotK has quit IRC16:28
*** SotK has joined #storyboard16:28
ZaraSotK: my thought is that if the style changes in the future, we'll have to change it in multiple places. but also okay with leaving that for later if we come back to it.16:34
Zaraand have noticed the caching has the same effect on the banner as the description (that is, if you edit story, then click 'private', then cancel, the banner will continue to display until the page is refreshed, which could be misleading)16:35
Zarapreviously it was just a bit confusing but that might actually pose a security risk16:35
SotKits not caching, its that the story object is edited in place in the browser and not refreshed on cancel16:36
SotKWe should fix it in a separate patch, it doesn't belong in the same patch as making things private IMO16:37
Zaraagree, just mentioning it so I don't forget it (or why it's relevant)16:37
ZaraI may still forget it but gotta try :P16:37
Zara(and gotcha re: not-caching.)16:38
*** jtomasek has joined #storyboard17:21
Zaraui patches seem fine. some weirdness with one of my boards, but that persists on master. :/17:49
Zara(stories aren't showing up in the thing that searches and lists stories automatically.17:50
ZaraI think the db and api permissions patches just need +1s since they've been reworked, that is: https://review.openstack.org/#/c/310951/ and https://review.openstack.org/#/c/310952/17:55
*** yarkot1 has quit IRC17:57
*** yarkot1 has joined #storyboard18:07
*** jseutter has quit IRC18:32
*** jjardon_ has joined #storyboard19:45
*** jjardon has quit IRC19:48
*** jjardon_ is now known as jjardon19:48
*** jseutter has joined #storyboard20:11
*** openstackgerrit has quit IRC20:32
*** openstackgerrit has joined #storyboard20:33
*** jseutter has quit IRC21:37

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