Tuesday, 2018-03-27

*** fatema__ has quit IRC00:00
*** jamesmcarthur has joined #storyboard00:02
*** jamesmcarthur has quit IRC00:07
EmilienMdiablo_rojo: hey, do you know how can I change the email used by storyboard?00:21
EmilienMis it in launchpad?00:21
diablo_rojoEmilienM, thats actually a really good question lol01:03
EmilienMdiablo_rojo: I changed in launchpad and I keep getting emails in my old email01:03
EmilienMdiablo_rojo: is that something you can change in the database directly? I'm not sure01:03
diablo_rojoI think the email that exists when we do the import is what gets put into the db01:04
EmilienMbut then is it updated?01:05
diablo_rojoI would think the next time we import a project you have touched it would be updated.01:05
EmilienMok01:05
diablo_rojoBut I would have to look through the code to be sure.01:06
EmilienMdo you think it would be possible to update it via mysql in the meantime?01:06
diablo_rojoWe shouuld be able to add something to the sb gui to edit your notficiation email and it updates the db.01:06
diablo_rojoEmilienM, yeah I would think that would work01:06
EmilienMI'll pm you my old and new email01:06
EmilienMyeah the option in UI would be awesome01:07
diablo_rojoShould be able to edit it while youre logged in- just add an update email button in the email settings that allows you to fill in a field and then send that to the db to replace what exiss.01:12
diablo_rojo*exists01:12
persiaActually, that's probably a bug.  I expect the correct behaviour is to update the email address on every authentication or something.02:23
persiaI think the assumption behind the current behaviour is that the email address used at Ubuntu One is long-lived.  Given the number of orgs that want to get credit for having their domain in commits, that's probably a risky assumption.02:24
*** dmsimard|cave is now known as dmsimard02:29
*** lodowa has joined #storyboard02:50
*** udesale has joined #storyboard03:55
*** lodowa has quit IRC04:27
*** mridu has quit IRC05:13
*** jtomasek has joined #storyboard07:15
*** tosky has joined #storyboard07:54
*** udesale_ has joined #storyboard10:03
*** udesale__ has joined #storyboard10:05
aspiersSubject: Task "<script>alert(1);</script>" was created.10:07
aspiersHopefully that was done by some benign pen-tester, not a potential attacker?10:07
*** udesale has quit IRC10:07
*** udesale_ has quit IRC10:08
*** tosky__ has joined #storyboard10:25
*** tosky is now known as Guest7254810:25
*** tosky__ is now known as tosky10:25
persiaaspiers: If new, I suspect a potential attacker.  There was some pentesting of Storyboard back in 2014, after which it was determined that the data wasn't trusted anywhere.  The changes in markdown parsing might be a reason to repeat the exercise, but I haven't heard of anyone doing so.10:48
aspierspersia: https://storyboard.openstack.org/#!/story/210:51
*** udesale__ has quit IRC10:51
aspierscreated by "Mohamed"10:51
aspiersfungi, diablo_rojo: ^^^10:52
persiaThat's someone pentesting, but a new pentester, and not someone who gave warning.10:57
persiaOn the other hand, it proves the protections put in place previously work :)10:57
aspiersdoes it?11:10
aspiersIt proves Javascript was passed intact via email. Not sure it says anything about the web UI11:10
*** openstackgerrit has quit IRC11:33
*** dtantsur|afk is now known as dtantsur11:34
dtantsurfungi, SotK, I'm totally okay with GET only. but I think the really safe approach will be just to disallow sending the cookies, so that all such requests are not authenticated. Is it possible with CORS?11:35
*** udesale has joined #storyboard11:47
persiadtantsur: We should audit to make sure we're clean REST and GET safe anyway.12:10
dtantsurwell /<resource>/search is not quite REST, but otherwise looks okay ;)12:11
*** fatema__ has joined #storyboard12:24
*** fatema__ has quit IRC12:56
persiaAh, hrm.  We've been discussing merging search and browse in other contexts, maybe that route should change to be under stories/ somehow.12:59
persiaOr, rather, /#!/story/... : there is some potential for DoS, but I think that it doesn't make a difference for raw API vs, JS integration, and I think the user can't do anything special with that endpoint because of authentication.13:00
persiaOr maybe it should be done unauthenticated, as authenticated view of private stories is exploitable.13:01
persia(and maybe my prior imagination of everyone building their own dashboards and reports doesn't work properly in a world of javascript browser security, and a reporting interface belongs in storyboard proper, rather than in a tools repo)13:02
dtantsurheh13:04
*** fatema__ has joined #storyboard13:18
*** jamesmcarthur has joined #storyboard13:46
*** openstackgerrit has joined #storyboard14:09
openstackgerritMerged openstack-infra/storyboard master: Finish fixing account duplication on import  https://review.openstack.org/55595714:09
dtantsurmy very first attempt to create a story has failed :( first with a database deadlock, then 400: POST /api/v1/stories/2001745: Invalid input for field/attribute story. Value: '2001745'. unable to convert to Story14:18
SotKsecond part suggests the story was created successfully in the first failure, probably its the bug that others have reported iirc where some tasks fail to be created14:20
dtantsurSotK: yep, it was. only the first task was not created14:31
*** fatema__ has quit IRC14:32
*** fatema__ has joined #storyboard14:34
fatema__Hey, I have met an error while solving the issue14:34
fatema__now that 'resolved' replaces merged succefully in the ui14:34
fatema__but gives me an error IMHO it is related to the database "500: PUT /api/v1/tasks/2: (DataError) (1265, u"Data truncated for column 'status' at row 1") u'UPDATE tasks SET updated_at=%(updated_at)s, status=%(status)s WHERE tasks.id = %(tasks_id)s' {'tasks_id': 2,14:34
fatema__'updated_at': datetime.datetime(2018, 3, 27, 13, 4, 51, 518813), 'status': u'resolved'} "14:34
*** fatema__ has quit IRC14:35
*** fatema__ has joined #storyboard14:35
*** fatema__ has joined #storyboard14:38
*** fatema__ has quit IRC14:40
*** fatema__ has joined #storyboard14:41
*** fatema__ has joined #storyboard14:41
fatema__Hey, I have met an error while solving the issue,  now that 'resolved' replaces merged succefully in the ui14:41
fatema__but gives me an error IMHO it is related to the database "500: PUT /api/v1/tasks/2: (DataError) (1265, u"Data truncated for column 'status' at row 1") u'UPDATE tasks SET updated_at=%(updated_at)s, status=%(status)s WHERE tasks.id = %(tasks_id)s' {'tasks_id': 2,'updated_at': datetime.datetime(2018, 3, 27, 13, 4, 51, 518813), 'status': u'resolved'} "14:41
*** fatema__ has quit IRC14:44
SotKlooking at https://review.openstack.org/#/c/556648, I suspect the issue is because you modified the first database migration rather than creating a new one, so your database will still expect merged rather than resolved in the enum for that column (unless this database was created after making the patch)15:00
dtantsurdo we have some documentation on which tags to use in git commit messages with storyboard? I noticed people using Story: and Task: together with only Story: being highlighted. is it correct?15:28
SotKdtantsur: its correct, the documentation is in https://docs.openstack.org/infra/manual/developers.html#development-workflow15:42
dtantsuroh, makes sense :) thanks!15:42
fatema_Hey, as I'm going through the proposal I'd need to discuss the time plan with a mentor16:30
fatema_as the project idea includes "storyboard-webclient : Implement per-user theming " is what caught my eye but I don't see it divided into tasks to be put in a time plan !16:39
*** fatema__ has joined #storyboard16:40
*** udesale has quit IRC16:41
*** fatema__ has quit IRC16:47
*** jamesmcarthur has quit IRC17:25
fungidiablo_rojo: EmilienM: SotK: mordred: i figured out the missing link. needed to _also_ update the character set for the connection. see https://review.openstack.org/555787 for the remainder. when combined with https://review.openstack.org/556626 we can import tripleo-ui and any other projects with 4-byte codepoints in their lp bug content now (tested and works on storyboard-dev)17:35
EmilienMwoot17:36
fungithe tripleo-ui test import is still underway, but it at least got past the lp bug with the problem content17:40
mordredfungi: hrm. that's going to be slightly run to roll out17:41
mordreds/run/fun/17:41
fungiwhyso?17:41
mordredfungi: actually - yeah, nevermind. we can land the storyboard change, then land the puppet change and then restart storyboard api17:42
fungiand which part? the alembic migration or the config change?17:42
fungiright, that was what i figured would happen17:42
fungiit's the order i ended up doing those bits on storyboard-dev anyway17:42
mordredfungi: I agree with your figuring, having taken a few extra minutes to get there17:42
fungii suspect landing them in either order will work as long as nobody tries to shove a 4-byte character into sb ni between the two17:43
*** jamesmcarthur has joined #storyboard17:49
*** diablo_rojo has quit IRC18:08
fungiokay, the tripleo-ui import on storyboard-dev completed successfully, so we should be all set once 555787 and 556626 merge18:09
fungithough i wonder whether i should also adjust 556626 to set the overall database character set encoding in that migration so that any new tables which are created also inherit utf8mb4. i'll add that now18:11
*** diablo_rojo has joined #storyboard18:13
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: For utf8mb4 shorten teams.name and users.email  https://review.openstack.org/55662618:14
fungithere we go ^18:14
*** jamesmcarthur has quit IRC18:17
*** dtantsur is now known as dtantsur|afk18:25
*** jamesmcarthur has joined #storyboard18:33
*** jamesmcarthur has quit IRC19:13
*** jamesmcarthur has joined #storyboard19:14
*** jamesmcarthur has quit IRC19:14
*** jamesmcarthur has joined #storyboard19:14
*** fatema__ has joined #storyboard19:16
*** diablo_rojo has quit IRC19:49
*** jtomasek has quit IRC19:52
openstackgerritKendall Nelson proposed openstack-infra/storyboard-webclient master: Add details to Search  https://review.openstack.org/55702419:55
*** diablo_rojo has joined #storyboard20:04
*** jamesmca_ has joined #storyboard20:20
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: For utf8mb4 shorten teams.name and users.email  https://review.openstack.org/55662620:21
fungidiablo_rojo: ^ that was the typo20:21
fungimea culpa20:21
fungii ran it correctly in mysqlclient but transcribed it incorrectly into the migration patch. hooray for testing i guess20:21
*** jamesmcarthur has quit IRC20:24
*** tosky has quit IRC20:25
*** tosky has joined #storyboard20:30
fatema__I am trying to commit and git review gives me "To ssh://FatemaKhalid@review.openstack.org:29418/openstack-infra/storyboard.git20:31
fatema__ ! [remote rejected] HEAD -> refs/publish/master/bug/6142 ([918ae9d] missing Change-Id in commit message footer) error: failed to push some refs to 'ssh://FatemaKhalid@review.openstack.org:29418/openstack-infra/storyboard.git'"20:31
fungifatema__: you probably hadn't initially done a `git review -s` after cloning the repo, so git review hadn't yet retrieved the commit hook which adds change-id footers for you20:33
fungifatema__: do a `git commit --amend` and you should hopefully see one appear at the end of your commit message now20:33
fungithen save/exit the commit message editor and try to git review again20:34
fatema__this line opens text editor20:34
fungiyes, git commit normally opens an editor so you can create or modify a commit message20:35
fatema__ok and what modification should I do20:35
fatema__?20:35
fungiyou shouldn't need to make any modification now if it shows a Change-Id line at the end of your commit message20:36
fungijust save and exit20:36
fatema__ok20:38
fungithe first time you run git review in a fresh clone of any repository, it'll retrieve a git commit hook which then inserts a change-id footer into any commit message you create or modify after that point. this is why our contributor workflow documentation recommends running `git review -s` initially after cloning20:39
*** jamesmca_ has quit IRC20:41
*** jamesmcarthur has joined #storyboard21:04
*** lodowa has joined #storyboard21:04
*** jamesmcarthur has quit IRC21:09
*** lodowa has quit IRC21:25
*** lodowa has joined #storyboard21:32
*** lodowa has quit IRC21:34
*** lodowa has joined #storyboard21:45
openstackgerritFatema Khalid Sherif proposed openstack-infra/storyboard master: Partial-Bug: # 6142  https://review.openstack.org/55707021:47
persiafatema__: If you keep the "Change-Id" footer in your commit message, pushing a new revision of a change will appear as part of the ongoing discussion of that change.22:36
fatema__so now I made a different PR ?22:38
fatema__ok then I'll keep this in mind of course22:49
fatema__persia, Who should I discuss the timeplan with ?22:49
persiaI'm not sure: I would hope that the interface for the effort has some indication of who is mentoring you.22:50
persiaMaybe diablo_rojo knows?22:51
fatema__Actually yes it says that diablo_rojo and SotK23:02
diablo_rojoHello fatema__ :) Yeah I am the main mentor with SotK backing me up (and fungi too it seems)23:05
fatema__ok then23:05
*** lodowa has quit IRC23:06
fatema__firstly I'd like to know about the time plan23:06
fatema__as the tasks aren't really specific so how should they be put in the time plan ?23:07
diablo_rojofatema__, I'm not actually sure what time plan you are referring to23:15
diablo_rojoWe can pick some out and put them in order if you want and then its kind of working at your own/ the community's pace.23:15
diablo_rojoWhether you get through the whole list we pick or not will depend a lot on the speed the community gets things merged- sometimes its quicker than others.23:16
fatema__diablo_rojo,  ok then I mean that this should be specified in the application23:18
fatema__also, what are the chances that my application gets accepted ?23:18
persiaAs someone not involved in the process, I can confirm that you're welcome to work on storyboard whether the application is accepted or not.  I suspect that for most of the named mentors, this is the first time for them to use the process as well, so it might take some time to get a real answer.23:20
persiaI've seen traffic from three people who were interested, and two (including yourself) appear to have set up an environment, to give some guidance as to the level of expressed interest.23:21
* persia may have missed some traffic, of course23:21
diablo_rojofatema__, so far very good from what I can tell- you would be the first applicant for this openstack project (this being working on the task tracker storyboard). Not sure how many there are for others, but I thiiiink it is one intern per project.23:21
diablo_rojofatema__, persia is correct, even if you don't get accepted, you are still welcome to work on storyboard and build up your resume on your own- I would even offer a letter of reference down the road. We just wouldn't be able to compensate you with anything but appreciation :)23:22
diablo_rojoAlso yes, this is my first time being a mentor for outreachy so I don't know the process all that well yet.23:23
fatema__diablo_rojo, if I recall correctly you are setting three outlines but didn't mention number of interns needed23:24
fungimy first time mentoring for outreachy, i drafted this spec for the intern: http://specs.openstack.org/openstack-infra/infra-specs/specs/code-search.html23:25
fungii made sure the work items section was detailed23:25
persiafatema__: Likely subject to verification by a large number of folk who may not be reachable at this hour, but I strongly suspect that if OpenStack has three outlines submitted for interns, there is backing funding for three interns (one for each).  I could be mistaken.23:25
*** tosky has quit IRC23:25
diablo_rojofatema__, Ah yes, its three different repositories you could work in depending on what you are more interested in. Its the storyboard repo, the webcline and the python-storyboardclient (cli).23:26
persiafungi: Excellent suggestion: having the "timeplan" discussion result in a spec is likely to provide good documentation for everyone along the way.23:26
fungithe end result of that internship was the service which now runs at http://codesearch.openstack.org/ so it was definitely both a successful and useful endeavor23:26
diablo_rojoI think I only asked for a single intern.23:26
diablo_rojoIn my defense we only decided to see if we could get accepted the day applications were due :) And so I only had a few hours to write the application and submit.23:27
fatema__diablo_rojo, one intern to work on the three repos ?23:27
fatema__diablo_rojo, so to get things clear Outreachy have to approve me then the mentors have to approve my application !23:29
fatema__Also is there other applicants ?23:30
fatema__persia, Actually that's a very nice plan, detailed and organized. It'd be great to prepare one23:35
diablo_rojofatema__, yeah, our application to have intern(s) had to be approved and then interns apply. One intern to work on whatever repo(s) interest them. The work we need done spans all three repos, but if you don't like UI and know javascript, I wouldn't expect you to work on the webclient repo. There is plenty of work to be done in the other two.23:35
persiafatema__: If you have an idea of what to do, maybe start drafting one?  If not, then maybe diablo_rojo or SotK can suggest something.23:35
diablo_rojopersia, start drafting what?23:36
persiadiablo_rojo: A spec, similar to the one fungi linked23:36
diablo_rojoAh.23:37
fatema__the thing to be discussed is as I guess if it'll be a set of small bugs or more of feature like the one fungi sent23:37
diablo_rojofatema__, I think that depends on what you are most interested in. Do you want more small tasks or something larger?23:38
fungiyep, if it's going to be a collection of bugs then maybe we just outline the tasks for them in their respective stories in as much detail as you can manage so they can be shoehorned into a timeplan23:38
diablo_rojoWe have both :)23:39
fatema__fungi, this seems like a good idea but I guess working on collection of different bugs timeplan would be hard to estimate the time required for each23:41
diablo_rojofatema__, true.23:41
fatema__As you are the developers with more experience in the code I would wish for your recommendation about the features that could fit in three months including testing23:43
*** jamesmcarthur has joined #storyboard23:43
diablo_rojofatema__, you prefer not working on UI correct?23:44
fatema__It's fine by me, I have worked with CSS ,JS before23:45
persiafatema__: The testing isn't the slow bit: the slow bit is that some of us are fairly opinionated about how things should work (and a lot of the features haven't been sufficiently bikeshedded).  You have demonstrated a willingness to engage in discussion, which I suspect will serve you well in causing change.23:45
fatema__for me it depends more on the project scope23:47
diablo_rojoOh cool. Opens things up a bit more then.23:47
*** jamesmcarthur has quit IRC23:47
diablo_rojoSo here are a few things that could each individually be done inside three months. https://storyboard.openstack.org/#!/story/2001746 https://storyboard.openstack.org/#!/story/2001677 https://storyboard.openstack.org/#!/story/200147623:47
diablo_rojofatema__, I think you could get one done of any of those for sure, potentially even two.23:48
diablo_rojoI don't think this one would be too difficult either https://storyboard.openstack.org/#!/story/200163423:49
fatema__diablo_rojo, I'll go through them, Thank you ^^23:54
persiaI think 2001746, 20011677,  and 2001634 should be relatively easy (although one has to learn a fair bit about the relevant technologies to implement them), and are good choices.  2001677 is part of a larger set of navigation issues related to browsing and searching, and could probably consume the rest of teh time.23:55
persiaErr, 2001746, 2001634, and 2001476 are the easier ones, rather.23:56
diablo_rojoNo problem fatema__ :)23:57
persiaNote that 2001634 probably wants to be integrated with the wider bots refactoring effort underway: it would be nice to have a storyboard plugin somewhere, which could be consumed more widely (as not everyone wants to use openstack bots), but that's an implementation detail.23:58

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