/srv/irclogs.ubuntu.com/2017/11/16/#launchpad-dev.txt

=== frankban|afk is now known as frankban
Pegasus_RPGHello. I'm thinking about hacking on Launchpad to add the ability to edit comments. Does Launchpad.net run on the trunk version or on some stable milestone?16:24
cjwatsonvery close to tip16:26
cjwatsonif we've just done a deployment, then it runs exactly on the tip of lp:launchpad16:27
Pegasus_RPGCool. The wiki says to talk about it in here before starting to hack. Are there any pitfalls regarding this issue? https://bugs.launchpad.net/launchpad/+bug/80895 and probably https://bugs.launchpad.net/launchpad/+bug/668267 as well16:29
mupBug #80895: comments on bugs/answers/merge proposals/etc cannot be edited <canonical-losa-lp> <feature> <lp-answers> <lp-bugs> <Launchpad itself:Triaged> <https://launchpad.net/bugs/80895>16:29
mupBug #668267: No way to remove nuclear launch codes from comments on bugs, answers, merge proposals. <canonical-losa-lp> <dhrb> <lp-bugs> <Launchpad itself:Triaged> <https://launchpad.net/bugs/668267>16:29
cjwatsonhave you thought about the social issues?  e.g. what's to stop somebody engaged in an argument on a bug from editing a comment further up and gaslighting people by claiming they never said something?16:30
Pegasus_RPGI was thinking just to allow the author to edit their own comments16:31
Pegasus_RPG(There are many times I wish I could do that...)16:31
cjwatsonOK, that's too broad and won't fly on its own.  Matthew's suggestions in #80895 are one possibility, but it does need care and thought16:31
mupBug #80895: comments on bugs/answers/merge proposals/etc cannot be edited <canonical-losa-lp> <feature> <lp-answers> <lp-bugs> <Launchpad itself:Triaged> <https://launchpad.net/bugs/80895>16:31
cjwatson(i.e. time-limited)16:32
cjwatsonConsider also the approach exemplified in https://www.dreamwidth.org/support/faqbrowse?faqid=47 : "You can edit your own comments on any journal, as long as the comments have not yet been replied to. You can't edit other people's comments posted on your entries, or edit comments after they've been replied to"16:32
Pegasus_RPGGood point. That sounds fair.16:33
Pegasus_RPG(That's how phpBB works too)16:33
cjwatsonThere's also the possibility of leaving the original comment around for inspection, but off to the side, like what happens if you edit a bug description16:33
cjwatsonThat doesn't address the "accidentally posted your house address in a comment" issue, but does address the typo issue16:33
Pegasus_RPGThe admin hide ability that's already there addresses that though, right?16:34
cjwatsonYes, and people can in fact hide their own comments entirely too16:34
cjwatsonThough I think possibly only on bugs (I can't recall about questions)16:35
cjwatsonAll of bugs, questions, and merge proposals are distressingly separate here16:35
Pegasus_RPGSo that case (sensitive info) is covered. I just want to have the ability to edit my own comments because I tend to have additional thoughts or notice typos after I post.16:36
cjwatsonPartially covered, because only bugs (or possibly only bugs and questions016:36
Pegasus_RPGyeah that's a problem too16:36
Pegasus_RPG(Why are the three mechanisms separate code-wise?(16:36
cjwatsonThis is quite a big project.  I'd suggest trying to identify smaller pieces that you can tackle in smaller units16:36
Pegasus_RPGSure. I would start just on the bugs since that's what we use the most.16:37
cjwatsonAim for each change to come in at 800 lines max16:37
cjwatsonPartly because somewhat different requirements; partly because they were initially built by different subteams16:37
Pegasus_RPG...and nobody is interested in a giant refactor I'm sure. :)16:38
cjwatsonThey're not totally separate, but certainly not as well-factored as they could be16:38
Pegasus_RPGFunnily enough, I haven't yet found out what language LP is written in. I'm assuming Python?16:39
cjwatsonYes16:39
cjwatsonthree quarters of a million lines of it16:39
cjwatsonNot to scare you. :-)16:39
Pegasus_RPGNah, Mixxx is pretty big as well, though it's C++. (We use Python for the Scons build system though.)16:40
cjwatson(Some dependencies have bits of C and such for performance, but it's almost entirely Python, built on the Zope stack.)16:40
Pegasus_RPGIs LP still actively developed? I noticed last-changed dates on some wiki pages like the roadmap are years ago.16:41
cjwatsonI apologise in advance for the extremely slow bootstrap process.  It'll get better once we've finished switching to git, but I'm waiting for our sysadmins to find time to get to my buildbot upgrade ticket before we can make further progress on that ...16:41
cjwatsonYou can look at http://bazaar.launchpad.net/+branch/launchpad/changes to see commit dates, which are somewhat more accurate16:41
Pegasus_RPGYeah... bazaar's slowness on LP is the reason we no longer host our code there16:42
Pegasus_RPG(That and git's merge wizardry)16:42
cjwatsonLP had its staffing heavily cut a few years back, and it's certainly a much smaller team than it was, but there are still a couple of us working on it.16:42
cjwatson(And several major features that have been developed since that cut)16:43
Pegasus_RPGOkay that's good to know. It has its strong points over other code-hosting/collaboration sites which is why we still use it16:43
Pegasus_RPGBut we do indeed miss the integration of bugs and code/branches16:44
cjwatsonRight, that was what first sold me on LP as an Ubuntu developer ten years ago or so :)16:45
* Pegasus_RPG wonders if other sites expose enough info to be able to have LP yank the needed info over their APIs...16:45
cjwatsonWe do import a bunch of stuff.16:45
cjwatsonNot anything like merge proposals, though.16:46
Pegasus_RPGYeah... the biggest reason we use the other site we do is the ease of doing merge proposals, discussions, comments, etc.16:46
Pegasus_RPGIt would at least be great if LP could monitor the APIs and auto-link a bug to someone's merge proposal on the other site.16:47
Pegasus_RPGBut one thing at a time. :)16:47
Pegasus_RPGI assume there are plans to have LP work as seamless with Git as it does with Bazaar?16:48
cjwatsonPegasus_RPG: It almost does today.  Just a few remaining bits of parity and some tidying up of the merge proposal UI.16:49
Pegasus_RPGoh sweet16:49
cjwatsonI think the only missing features are translations integration, useful subscriptions, and RSS feeds.16:50
Pegasus_RPGOn that train of thought, I told LP to import our trunk from the other site, and it did, along with the branches, but there's no facility to specify in a series that the code for that series is in one of those already-imported branches. Should I file a bug on this?16:51
cjwatsonFor Bazaar or Git?16:51
Pegasus_RPGGit16:51
Pegasus_RPG"If the code is already in a Bazaar branch registered with Launchpad link the branch to this series. "   I need that but for Git16:51
cjwatsonThe association with Git branches is somewhat deliberately weaker than with Bazaar.16:52
cjwatsonMainly because Git branches are more ephemeral in database terms, and often in practice too.16:52
cjwatsonWhy specifically do you need a hard database-level association (as opposed to e.g. writing something in the series description)?16:52
Pegasus_RPGHow so? We treat our git branches pretty much like we did Bazaar ones16:52
Pegasus_RPGwe make them for stable release series as well as bug fixes16:52
cjwatsonLP doesn't get to intervene when git branches are deleted in the same way that it does when bzr branches are deleted16:53
cjwatsonSo having a hard association with a series is problematic16:53
Pegasus_RPGOh I guess I don't. It would just make it more convenient to see the link on the series page in the same place.16:53
cjwatsonhttps://bugs.launchpad.net/launchpad/+bug/158016716:54
mupBug #1580167: Hide the "Code for this series" UI in projects that are configured to use git <confusing-ui> <git> <lp-code> <ui> <Launchpad itself:Triaged> <https://launchpad.net/bugs/1580167>16:54
cjwatson(That said, we might need to tackle this if we do translations integration)16:54
Pegasus_RPG(BTW, mup is including the > in the URL, making it not directly clickable.)16:55
cjwatsonI'm not sure I have any idea who runs mup; I /ignore it :-)16:56
Pegasus_RPG(or it's my IRC client...)16:57
Pegasus_RPGTesting: <https://bugs.launchpad.net/launchpad/+bug/1580167>16:57
mupBug #1580167: Hide the "Code for this series" UI in projects that are configured to use git <confusing-ui> <git> <lp-code> <ui> <Launchpad itself:Triaged> <https://launchpad.net/bugs/1580167>16:57
Pegasus_RPGyep, my client, sorry16:57
cjwatsonThe <URL> convention is reasonably old, although it's always been disputed16:58
cjwatsonIf we did a series link for git, I think we'd have to do the same kind of thing we do for MPs, where you can have a link but the link is allowed to go away.16:58
cjwatsoni.e. stored as repository + a text column for the branch; the link changes style when it stops referring to anything; and deleting the entire repository checks and either prevents deletion or breaks the link16:59
Pegasus_RPGSound good to me17:00
Pegasus_RPGWhen one imports a Git tree so it can be reached at lp:project, is it made to look like a bazaar tree to LP or does it fully understand Git at this point? (e.g. if I did bzr branch/checkout lp:project, would that work?)17:01
cjwatsonIt's native.17:01
cjwatsonNo bzr/git translation in either direction is involved.17:01
Pegasus_RPGok good17:01
Pegasus_RPGso that command would fail17:01
cjwatsonYes17:01
cjwatsonlp:turnip (historical reasons ...) is the slightly specialised git server; it uses git send-pack/receive-pack for most of the hard work, but has some translation layers on top.17:02
cjwatsone.g. so that we don't have to move storage around when its logical location in the LP taxonomy changes17:02
Pegasus_RPGokay checkout of lp:launchpad done17:06
Pegasus_RPGerr branch17:06
cjwatsonYou're going from https://dev.launchpad.net/Running/LXD ?17:06
cjwatson(If not, I strongly recommend doing so)17:06
Pegasus_RPGuh no, https://dev.launchpad.net/Getting17:08
Pegasus_RPGoh crap, thanks for the warning17:08
* cjwatson edits that a bit17:10
cjwatsonYou can do the Running/LXD bit and then run utilities/rocketfuel-setup inside the container in the branch you now have checked out (possibly moving it into the right place first; you can have it be somewhere other than that page says, but you need to adjust ~/.rocketfuel-env.sh if so, so depends how strongly you feel about your homedir layout)17:13
=== frankban is now known as frankban|afk
Pegasus_RPGI first need to upgrade my kernel, heh17:52
Pegasus_RPGDoes anyone know if there is an OAuth API for LP/Ubuntu One so that we could have people use their LP credentials to access our wiki for example? Searching the Web only refers to the now-defunct one.ubuntu.com service.19:20
Pegasus_RPGSimilarly, can people use other OAuth ID providers (e.g. Facebook) to log in to Launchpad?19:21
cjwatsonOther services can authenticate against login.ubuntu.com, which is the same as login.launchpad.net (just a different frontend hostname).19:24
cjwatsonHowever, it is not possible to use other providers to sign in to Launchpad.19:24
cjwatsonlogin.ubuntu.com is an OpenID provider.19:25
cjwatsonhttps://help.launchpad.net/YourAccount/OpenID19:25
Pegasus_RPGOpenID 2.0 or OpenID Connect?19:27
Pegasus_RPGlooks like 2.019:27
Pegasus_RPGUnfortunately that is falling out of favor and OpenID Connect (based on OAuth) is taking its place19:32

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