/srv/irclogs.ubuntu.com/2013/10/07/#juju-gui.txt

=== gary_poster|away is now known as gary_poster
gary_poster...longer saucy upgrade than usual, and I still need to find something to remove...12:45
gary_posterfrom the hard drive 12:45
gary_posterneed to restart yet again13:10
=== gary_poster is now known as gary_poster|away
rick_h_benji: any idea if there's a way to sync/ignore u'key': u'value' and 'key': 'value' in the charmworld tests for an assertEqual?13:12
benjirick_h_: I would have thought the unicode/str difference wouldn't cause a problem since u'foo' == 'foo'13:13
rick_h_benji: nvm, it was noise amongst the real issue I had. 13:13
rick_h_one line is diff but 50 are shown as ? diff13:14
benjiyeah, the diffs are generated from the repr, so you get a lot of noise;  those differs really should be improved13:14
rick_h_benji: review if you get any time please? https://code.launchpad.net/~rharding/charmworld/bundle-metadata2/+merge/189406 13:18
benjirick_h_: sure13:19
rick_h_thanks!13:20
=== gary_poster|away is now known as gary_poster
benjirick_h_: I'm done with https://code.launchpad.net/~rharding/charmworld/bundle-metadata2/+merge/189406; looks good.13:57
hatchmorning13:57
benjigood morning13:57
rick_h_thanks benji! appreciate making through it13:57
hatchhow was your weekend?13:57
rick_h_hatch: your little village made the sports illustrated news :)13:58
hatchyeah? Well we are awesome...so duh!13:58
hatchlink?13:58
hatch:P13:59
rick_h_benji: ooh thanks. Good catch on the extra test. It misbehaved14:23
benjicool14:24
frankbangary_poster: shelltoolbox does not seem to be in precise14:28
rick_h_encouragement for https://pypi.python.org/pypi?%3Aaction=search&term=shelltoolbox&submit=search to get fixed?14:28
frankbangary_poster: it's in universe starting from quantal -> https://launchpad.net/ubuntu/+source/python-shelltoolbox14:30
frankbangary_poster: so one option is to include the shelltoolbox file in the charm (as we did for charm tools)14:31
gary_posterfrankban, +114:32
frankbangary_poster: cool thanks14:33
hatchpretty soon our charm will be 100MB with all the includes :D14:33
frankbanbrace yourself: huge branch is coming :-(14:33
rick_h_data centers have fast networks :P14:33
frankbanhatch: a 600 lines python files will not make the difference14:34
hatchfrankban: maybe that 600th line is what breaks the camels back14:35
hatchtakes the whole center down14:35
frankbanhatch: so let's do it!14:35
hatchlol14:35
rick_h_abentley: ping, around? CI is failing with failed ssh connections? 14:39
rick_h_abentley: pm'd url14:39
abentleyrick_h_: Yes, around.14:40
abentleyrick_h_: Looking.14:40
hatchMy internet must have had a rough weekend14:53
gary_posterMakyo, hey.  We have a service deployment layout issue on comingsoon.  To dupe, deploy mediawiki with DnD, then deploy mysql with DnD, then click the build relation button on mysql to connect with mediawiki.  I see a link going from nowhere to mediawiki, and when I click on mysql, it jumps to the relationship's location14:53
hatchI think I've been reset to Dialup14:53
gary_posterMakyo, could you take a look please?14:53
MakyoSure14:53
gary_posterthank you14:54
MakyoAlright, I see where it is.  Will get in a sec.14:57
gary_posterawesome thanks14:58
hatchnote to self: if you call a 'reject' promise handler it sets the promise to rejected internally15:17
hatchweird!15:17
hatchmorning bcsaller15:23
* benji watches rick_h_ vs. Jenkins cage match.15:28
hatchoh awesome - is it on PPV?15:29
rick_h_benji: it was a 10 round knock-out!15:29
benji:15:29
hatchrick_h_: so you lost?15:30
hatch:P15:30
benjioops, I forgot my mouth15:30
benji:)15:30
rick_h_hah, well the old rule of "if at first you branch doesn't land...hit retry over and over"15:30
benjiI'm glad I'm not the only one that fights with CI bots.15:30
hatchrick_h_: so is the ssh connection issue fixed?15:32
rick_h_hatch: so he added a delay that will hopefuly make it happen less? but this is only on the charmworld lander bits. I don't think this effects the gui stuff (but could be wrong)15:32
hatchpooeey15:33
rick_h_hatch: so heads up, my branch hit staging http://staging.jujucharms.com/api/3/bundle/~bac/wiki/3/wiki now will return the list of files (does it have an icon or not, where is the readme, etc) and the charm details for each charm in the bundle15:39
rick_h_hatch: so this should unblock anything else needed for the bundle view from the charmworld end except the icons on the token which is my next branch. 15:39
rick_h_hatch: so look for the charm_metadata and files keys. There's logic for locating the readme and such in the charm code. 15:39
* rick_h_ adds a card to update the api docs15:40
hatchkewlio15:41
frankbangary_poster: filed bug 1236427 : the kanban does not let me add cards15:41
_mup_Bug #1236427: Scale up input stops working after units are added/removed <juju-gui:Triaged> <https://launchpad.net/bugs/1236427>15:41
hatchgary_poster: here is the rework of your branch https://codereview.appspot.com/14454049/ I think we were both on the same page :)15:44
Makyojujugui call in 1015:50
gary_posterjujugui call in 10?  Did I make it?15:50
rick_h_heh, almost15:51
gary_posterhatch I'm reviewing your branch fwiw15:51
hatchchained promises are so hard to read :/15:53
hatchthere has to be a better way!15:54
rick_h_but but promises are like unicorns flying out of your butt!15:54
rick_h_magical!15:54
frankbanalso filed bug 1236435 15:54
hatchlol15:54
_mup_Bug #1236435: The unit detail view does not disappear whe the unit is removed <juju-gui:Triaged> <https://launchpad.net/bugs/1236435>15:54
rick_h_didn't we have a bug for that frankban?15:55
hatchrick_h_: nope, s/unit/service15:55
hatchthat's what the bug was for15:55
rick_h_hatch: oh, my bad15:55
frankbanrick_h_: it si possible, I did not find one15:55
rick_h_hatch: at least I knew it sounded familiar15:56
hatchhaha yeah - when you said that I had to take a second look :)15:56
frankbanoh, ok15:56
gary_posterjujugui call in 215:58
hatchfrankban: so does your branch speed up the charm install a bit?15:58
frankbanhatch: I suppose it does15:59
hatchnice :)15:59
rick_h_hatch: got a sec?16:30
hatchyup16:32
hatchgary_poster: after a discussion with rick_h_ I'm going to refactor the bundle detail view code to make it easier to test16:56
gary_postercool hatch16:57
gary_posterfrankban, "Wow!  Great tests, and very nice improvement.  Code LGTM.  I will check with Rick as to which of us will QA."17:01
frankbangary_poster: great thanks!17:02
gary_posterrick_h_, are you doing frankban's QA, or shall I?  Happy to do it if you have not started17:02
rick_h_gary_poster: qa running right now17:02
gary_posterawesome rick_h_ thanks17:02
frankbangary_poster, rick_h_: if you are qaing using juju-core trunk, remember to boostrap with --debug17:02
rick_h_just took a timeout while it was loading when I saw something about a fakebackend and got confused and bugged hatch 17:02
gary_posterfrankban, had a few trivials, but tests were really awesome17:02
rick_h_frankban: oh, didn't do --debug 17:02
frankbanrick_h_: yeah, sorry, I had to mention it in the qa instructions. that's a new juju-core thing17:03
rick_h_ok, do you know what version? is that just trunk? /me is on 1.1517:03
rick_h_so not the release that went out end of last week17:04
gary_posterhatch, looks like CI is showing real IE bugs now :-/17:04
frankbanrick_h_: yeah so you need it I think, there was an email in juju explaining the new debug options17:04
gary_posterI will investigate17:04
rick_h_frankban: k, thanks for the heads up17:04
hatchgary_poster: nice catch17:07
hatchlooks like it was Makyo's branch?17:07
MakyoPerhaps the one that's being proposed right now will fix.17:07
* Makyo fingercrosses.17:08
hatchgreat17:08
hatchit might not have been your branch but that's as far back as I can see right now on sauce labs for some reason17:09
MakyoSpeaking of... https://codereview.appspot.com/14499043 jujugui / gary_poster (since you know how to dupe)17:10
gary_posterMakyo, ack on it17:10
rick_h_frankban: qa ok. I ended up just ssh'ing into the machine to verify vs watching the debug logs17:15
rick_h_frankban: if that's not suffecient or anything let me know and I'll destroy/rebootstrap and go through it again17:16
gary_posterMakyo, code looks good, but one issue so far: I reverted your changes to service.js and ran the test suite and the new test you added still passed.  The test doesn't actually test the regression, it seems?  Trying qa now.17:21
Makyogary_poster, oh, hm, will check, then.17:22
gary_posterthanks17:22
gary_posterMakyo, qa is good, though17:25
benjijuju-gui: I have a charmworld review up: https://code.launchpad.net/~benji/charmworld/check-out-and-update-specific-revisions/+merge/18967217:25
rick_h_benji: will look at it in once lunch comes off the stove 17:27
gary_posterbenji, if you don't get a bite from a more qualified reviewer, ping me.  Branch seems straightforward enough on the face of it17:27
gary_posteroh, you got a bite :-(17:27
gary_poster:-) I mean17:28
rick_h_wait what...me jumps the hook :P17:28
gary_posterlol17:28
rick_h_"the big one that got away" 17:28
gary_posteryou are more qualified17:28
rick_h_or I'll just look at it in a sec17:28
rick_h_:)17:28
gary_poster:-) thanks17:28
* gary_poster continues to download win 8.1...17:28
frankbanrick_h_: your QA is fine, thank you!17:36
rick_h_benji: feedback inbound17:51
benjicool17:51
hatchrick_h_: refactored version https://codereview.appspot.com/14454050/ review plz18:14
rick_h_hatch: looking18:15
rick_h_hatch: back at ya18:21
rick_h_benji: so is there a known 'if you run tests this way it'll empty your main db' use around?18:25
rick_h_benji: somehow in getting my last branch up for review I seemed to have emptied mongo db and need to reingest now to test out the next branch18:25
hatchrick_h_: thanks, replied, fixed, submitting18:25
rick_h_hatch: cool thanks. All good, I guess I have a mental block that promise == async and I try to avoid unavoidable async for testing if possible. 18:27
rick_h_hatch: but the way it's wired it wont' really be async in use so the promise is ok to leave there18:27
hatchyeah - I love chaining promises18:30
* rick_h_ hates chains :PO18:30
hatchalthough I really wish I didn't have to call .bind()18:30
rick_h_:P that is18:30
abentleybac, benji or orangesquad: Could you please review https://code.launchpad.net/~abentley/charmworld/apt-add-repository/+merge/189683 ?18:34
jcsackettabentley: looking.18:40
jcsackettabentley: looks good to me.18:41
abentleyjcsackett: thanks.  The trouble with testing for flaws in "make sysdeps" is... you find bugs in "make sysdeps".  This will allow me to remove a workaround.18:43
jcsackettabentley: yeah, it seems wise to me. the base lxc i clone for development already has python-software-properties in it, so this didn't bug me, but it's definitely good to have it in place.18:47
abentleyjcsackett: Oh, doh!  I forgot --yes.18:48
jcsackettoh, sure. we can't have make require user input.18:48
jcsacketti always forget --yes is even a flag.18:48
gary_posterMakyo, duping deployment layout in a bug is a pain?19:03
Makyogary_poster, I don't know what this test is even doing :P  19:04
gary_posterMakyo, :-/19:05
MakyoWith the old code, it should be winding up in new_services, and it does in the browser, but not in the test.19:05
MakyoTrying a whole new delta for now.19:05
gary_posterk19:06
rick_h_benji: last one for the day if you've got the bandwidth. Smaller/easier one. https://code.launchpad.net/~rharding/charmworld/bundle-metadata3/+merge/18969119:13
MakyoGah, testing the wrong thing, should have it in a few.19:13
benjirick_h_: yeah, I can take a look19:14
rick_h_benji: added quick QA note19:14
benjik19:14
rick_h_gary_poster: from here I'm going to pick up the bundle icon urls/helpers so that we've got pretty icons as the next step is making a pretty demo workable. 19:25
rick_h_gary_poster: any other first step you had preferred first?19:25
gary_posterrick_h_, perfect, thanks19:25
rick_h_k, cool19:25
hatchMakyo: did your branch land? CI is still failing19:47
hatchso just curious19:47
Makyohatch, not yet.19:47
hatchoh ok np19:47
Makyolbox WHY ARE YOU FAILING19:47
hatchmohohahaha19:48
=== hatch is now known as lbox
lboxNO PASS FOR YOU19:48
* Makyo kicks lbox 19:48
=== lbox is now known as hatch
hatchlol19:48
Makyogary_poster, quick +1 on the test change? https://codereview.appspot.com/14499043/diff/5001/test/test_environment_view.js19:54
benjirick_h_: I forgot to mention it in the review, but QA looked good.19:55
rick_h_benji: cool, thanks for the review19:55
rick_h_ok, landing that. Unblocks almost all of the bundle details and bundle token now for the Gui. I'm outta here. 19:58
hatchugh WidgetParent/Child is such a horrible designe19:59
hatchdesign even19:59
gary_posterMakyo, +1, thanks!20:00
gary_posterthanks rick_h_ 20:01
rick_h_hatch: only real issue is it's pretty invisible unless you know it's there. 20:06
hatchyeah that's what I mean - there is no way to 'follow' the code20:06
rick_h_only used it in once place color me curious why it's rubbing you wrong. 20:06
hatchI was raised to hate it20:07
hatchit's not my fault20:07
rick_h_lol20:07
hatchblame society20:07
hatchhaha20:07
rick_h_ok, I'll send you a sympathy card later for it :P20:08
hatchlol20:08
hatchrick_h_: FYI BrowserSearchView is not a view20:16
hatch:P20:16
gary_posterdeployment (sandbox?) actually successfully shows deployment 1 time out of 4 for me :-(20:17
hatchrick_h_:  FYI so kidding btw20:17
gary_posterhatch if you are curious, only one test failure in IE and looks fairly benign.  looking a bit more20:25
hatchok thanks20:25
hatchgary_poster: Makyo said his branch might fix the failure20:25
hatchjust FYI20:25
gary_posterhatch, running with that branch.  I think he might have fixed failures, because the only one I see is in test_models.js20:26
gary_poster(actually running with trunk: he landed)20:26
MakyoMight maybe could perhaps inshallah..20:26
MakyoI'll start up IEVM20:27
hatchohh ok ok20:27
rick_h_hatch: :P well you guys all get fits when I say the word "widget" :P20:32
hatchWIDGET!!!!!!!!!!!!20:33
* rick_h_ waits for the irc channel to explode20:34
rick_h_we'll need to get a new one20:34
gary_posterheh20:35
hatchgary_poster: those relation errors in the new topo code...is someone working on them? I'm just worried they are causing cascading failures20:35
gary_posterhatch, this is what bcsaller is working on.  they are happening because the position annotations are not there20:36
hatchohh ok cool cool20:36
bcsallerhatch: if the positions are set it does work fine20:36
hatchoh ok cool, so it's benji's fault20:37
hatch:P20:37
* hatch keeps pushing the blame20:37
gary_posterhatch, heh, no, he tried to set the annotations but they are not being kept20:37
hatchohh fine!20:37
hatch:)20:37
hatchclicking on a bundle works now here20:38
hatchpretty cool20:38
hatchbut really need to implement the bundle caching20:38
gary_posterheh, hatch, Makyo the one test is failing because my vm's system clock thinks that we are in May :-P20:40
MakyoMay, October, they're like the same thing.20:41
gary_posterso CI is hosed but IE, at least on my vm, is AOK20:41
gary_poster:-)20:41
hatchlol bad Makyo bad Makyo writing a test which relies on a Date object :P20:41
MakyoI did NO SUCH THING.20:41
gary_posterhatch, it is a charm test from ages ago :-P020:41
* Makyo whew <.<20:41
gary_posterheh20:41
hatchlol - actually, in a past life I wrote a test which relied on a date...the only time it failed was when we brought on an international developer who coudln't get the tests to pass on her machine lol20:42
hatchinternational being - cross the date line20:43
rick_h_hatch: you mean huw. He got bit by that. Couldn't land because the date was off for AU 20:43
rick_h_too many timezones away20:43
hatchcrap I've done it twice?20:43
hatchoh bpy20:43
hatchboy20:43
hatchoh wait20:44
hatchno I fixed huw's failure20:44
hatchI caused the other one20:44
hatchlol20:44
hatchrick_h_: when is your EOD?20:45
rick_h_hatch: 45min ago20:45
rick_h_just checking something now that I'm back from day care20:45
rick_h_hatch: why, what's up?20:46
hatchjust proposing the 'bundle token click' branch20:46
hatchwould like to get it landed20:46
hatchit's a super trivial diff20:46
rick_h_hatch: k, ping when it's up and I'll try to peek between stuff20:46
rick_h_hatch: yea, should be tiny 20:46
hatchwill do thx20:46
hatchrick_h_: sorry chunk missmatch https://codereview.appspot.com/14518043/20:52
hatchbut diff is really small :)20:52
hatchgary_poster: I'll work on bundle icons now?20:52
gary_posterhatch looking20:53
gary_posterhatch I think that is blocked on Rick's work20:53
hatchhis landed AIUI20:53
hatchI'll check the api20:53
gary_posterhatch, one landed today, but his active card is what you need ("charmworld can redirect from charm ids or branches to icons and support default bundle icon")20:54
hatchohh right yes20:54
hatchalright then I'm open to whatever20:54
gary_posterhatch, suggest "hook up and style tabs on detail view"20:55
gary_posterhatch that then opens up README and source tab tasks after that20:55
gary_posterhatch, you can push tab styling to Huw, of course; just needs to be done20:55
hatchsounds like a plan20:55
gary_posterbcsaller, when you get through your current mystery, another to explore is that dragging a bundle token to deploy works one out of 4 times for me--and sometimes it has worked in the fakebackend but not in the gui itself.  I'm duping on comingsoon20:57
gary_posteryou drag once and nothing happens, then drag again and fakebackend complains that service already exists20:57
hatchwhen I do the DD it locks up myu machine firing off google analytics calls20:58
hatchlocks the tab that is20:58
gary_posteroh nice20:58
gary_posterhatch reviewing your branch...20:58
hatchcool thanks,20:58
hatchit's very trivial20:58
gary_posterall tthe more reason to ship it :-)20:59
hatchconsider it shipping!21:01
hatchoh I love it when the utilities ppl do a meter reading and your next bill is lower21:05
rick_h_hatch: so that's the charm icons in a bundle21:10
rick_h_that's unblocked21:10
rick_h_the bundle icon itself is blocked on next branch21:10
rick_h_and catching up the readme/tabview stuff is unblocked so coolio21:13
gary_posterrick_h_, oh, there's the API to get an icon from alp branch now?21:20
gary_posteralp == an lp21:20
rick_h_gary_poster: no, but the icons on the charm token for the charms inside can be done now21:20
rick_h_the little ones on the bottom of the token21:20
gary_posteroh cool, I misunderstood what we needed then21:20
gary_postergreat21:20
rick_h_the bundle icon work is now on deck21:20
gary_postergotcha21:21
rick_h_that should be the last thing related to UX from charmworld (other than related bundles?) 21:21
gary_posterrick_h_, fwiw we can hold off on bundle icon.  we don't need that to be successful.  If you haen't started, I suggest starting icon hookup in token and details.  I worry that we will need to show what charms are recommended21:33
gary_postersorry, thought that was what we were doing21:34
gary_posterif you have started, np21:34
gary_posterfinish it :-)21:34
gary_posterrick_h_, "I worry that we will need to show what charms are recommended" : in the charmworld output21:40
rick_h_gary_poster: yea, was going to do them at the same time. I realize now why it's confusing21:51
rick_h_one is 'charm icon given bundle data' and the other is the 'bundle icon itself'21:51
rick_h_gary_poster: so the full charm details (including recommended) is available in the interesting/search results view and the only tiny icons to show in a bundle token will be recommended charms21:52
rick_h_so I'm not sure what the ""I worry that we will need to show what charms are recommended" is?21:52
huwshimiMorning22:06
rick_h_morning huwshimi 22:06
hatchmorning huwshimi22:30
rick_h_I always want to ask huwshimi "so how's Tues looking? I want to plan ahead for tomorrow"22:34
hatchI do all the time22:35
hatchhe is probably getting irritated22:35
hatch:)22:35
hatchrick_h_: still around?22:41
rick_h_hatch: yes22:42
huwshimirick_h_, hatch: It is a beautiful spring morning22:42
hatchok real quick...22:42
rick_h_heh, lovely fall blustery day. 22:43
hatchin _dispatchTabEvents() you(or someone) use the tab contents to decide what to do next....why didn't you/others use the label content instead?22:43
hatchit seems way less fragile22:43
rick_h_hatch: because the labels don't change if you've already loaded the content22:43
rick_h_hatch: but the content will change22:43
rick_h_hatch: so it's a build in "don't load this twice" mechanism22:44
rick_h_hatch: and not dependant on sync'ing some state tracked somewhere. 22:44
hatchohh, hmm22:44
hatchI always wondered why there was that flash of text22:44
hatchheh22:44
hatchcan I fix it to use a state tracker?22:44
hatchmainly to get rid of that flash of text22:44
rick_h_Off the top of my head not sure, I'd have to look. Which tab is this that flashes? 22:45
hatchfeatures, readme, and....22:45
rick_h_ah, it's because the spinner doesn't properly lay over it. I guess I've jut not realized it. 22:46
rick_h_hatch: I think a shorter path would be to make it hidden by default and then show on load? but then there's the spinner to deal with. It was always meant ot be fixed so the spinner was sized better and overlays things so you'd not see it22:46
rick_h_hatch: but whatever floats your boat/you can get working. 22:46
rick_h_hatch: the general idea was that it was built in dupe detection and I think we needed some content in there by default for the spinner to glom onto 22:47
hatchok I'll investigate22:47
hatchthanks22:47
hatchI figured there had to be a logical reason22:47
hatchheh22:47
rick_h_yea, I think we never fixed it because we always thought the spinner/activity thing would fix it22:47
rick_h_but never got around to that22:47
hatchwish there was a built in load-on-visible method in tabview22:48
rick_h_man, now that you point that out it's so awful /me is ashamed. 22:48
hatchso many of these yui modules seem to have been left to rot22:48
hatchlol22:49
rick_h_hatch: well we do use our own tabview widget that doesn't do much but extend the YUI one. 22:49
rick_h_hatch: so there's a place to hack something in to use22:49
hatchoh yeah for sure - but I don't want to deal with that now hah22:49
rick_h_hatch: but then again we've got plans to animate/slider things so I'd not worry too much about it atm since it'll change22:49
hatchahh right right22:49
rick_h_hatch: so honestly, I'd leave it be for now and move forward and chalk it all up to UX cleanup already planned 22:49
hatchahh I love that promise code22:50
hatchit just makes that render method so clean to read :)22:50
rick_h_I think all tabs go through the dispatchTabEvents call so there is a single place to track state. Originally we didn't have that and I think tracking if a tab was loaded or not was a pita22:51
rick_h_even tabs that don't need to do anything, just show22:51
hatchright22:52
hatchanother irritant with tabview - the id's22:52
hatchseriously...22:52
hatchit 'requires' ids22:52
hatchoy22:52
hatchI know it's for progressive enhancement22:53
hatchbut....22:53
hatchc'mon22:53
* hatch is having a bad day I guess lol22:53
rick_h_yea, I mean it's not all our fault :P22:53
hatchhaha yeah I know22:53
hatchI added a note to remove the reference to the id22:53
hatchthen I was like....oh...right22:53
rick_h_heh, nope22:54
rick_h_which actually messes us up with the tabs on both inspector/not22:54
rick_h_which we really need to make sure only one shows at a time anyway22:54
hatchyeah true true22:55
hatchso itunes is supposed to download my podcasts to my NAS - but if it can't connect, it downloads them to my local drive :/22:56
rick_h_hatch: what about setting the content to "" right after we do the check, then launch the remote call22:56
hatchoh i've already changed it to trigger off of the label22:56
rick_h_at least the flicker will be really really short and maybe not noticeable since we won't wait to remove the default text until it comes back22:56
rick_h_heh22:56
rick_h_and it won't load twice?22:57
hatchnope because of the state object22:57
rick_h_ok, cool then. I'm out22:58
hatchhave a good one22:58
hatchI'll propose and you can review it in the morning22:58
hatchrick_h_: if you return - trying to load the README file but the endpoing "/api/3/charm/~benji/wiki/5/wiki/file/README" is 404ing23:33
hatchrick_h_: ignore that - I am an idiot23:35
* benji senses a severe lack of file extensions in the force.23:41
hatchI wish the charm/bundle models had a 'type' attribute23:43
hatchwould really clean up a lot of this code haha23:43
hatchis there a reason why we don't?23:43
hatchwell I'm adding one now23:44
rick_h_hatch: no, it should be added23:54
hatchkewl - it's added23:54
rick_h_hatch: that way they can share the rest of hte logic together. The only thing that's diff is the id23:54
rick_h_benji: yea, the lack of extensions bugs me, but it's supported23:54
hatchrick_h_: so i've added the tabview and readme but I need to write tests now so it won't be done today as it's already 1h past EOD23:55
benjihatch: wouldn't a type check work?23:55
rick_h_so there's logic to lowercase the list of files, and search for anything that starts with 'readme' and work with it23:55
rick_h_benji: yea, that too since they're diff models 23:55
rick_h_hatch: all good, will peek when you're ready23:55
hatchI don't want to rely on some crude 'does this attribute' exist check23:56
hatchso they now have an entityType attribute23:56
hatchwhich is either 'charm' or 'bundle'23:56
rick_h_hatch: well if you do that make sure you're checking the doctype in the api23:56
rick_h_hatch: because that's the supplier of the info23:56
hatchit doesn't matter23:56
rick_h_hatch: and should be sync'd 23:56
hatchIf you're creating a Charm Y.Model instance, it's a charm23:56
rick_h_right, but it should. if charmworld changes it, the gui should just roll with it23:56
hatchif you're creating a Bundle Y.Model isntance, it's a bundle23:56
hatchor are you implying that we are merging the two models?23:57
rick_h_hatch: meh, true I guess. and the doctype is outside the data passed to create a new model instance :/23:57
rick_h_hatch: well, what I mean is that http://staging.jujucharms.com/api/3/search?text=wiki supplies a doctype23:57
rick_h_hatch: and a lot of code (locating the readme) can be matched between the two23:58
rick_h_hatch: but I'm just speaking out loud, not out of something we need atm so ignore me. 23:58
rick_h_I guess wherever json -> models it should be listening to the doctype23:59
rick_h_to create the right instance, and we could really have a model list that's either a charm or a bundle23:59
rick_h_I've not looked at how that's been done so I can't speak to it atm. 23:59

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