darcs

Issue 1711 roundup: add mbox support for patch objects

Title roundup: add mbox support for patch objects
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List Serware, darcs-devel, dmitry.kurochkin, kowey, twb
Assigned To twb
Topics BugTracker

Created on 2009-12-04.07:23:02 by twb, last changed 2009-12-20.08:17:17 by twb.

Messages
msg9523 (view) Author: twb Date: 2009-12-04.07:22:59
In the roundup repo, extensions/messages_as_mbox.py is hard-coded in a
few places to assume "issue" objects.  It should be changed to support
both issue and patch objects.

I've tentatively assigned this to kowey, since AFAIK he did the
original work on the patch objects.  I tried to sort it out myself,
but I had some trouble creating example patch objects in
roundup-demo's web UI.

When submitting the form at

    http://127.0.0.1:8080/demo/patch?@template=item

I got the error

    Error: 'No key (username) value "darcs-users" for "user"'

So I logged out and tried to create an account "darcs-users" by
browsing to

    http://127.0.0.1:8080/demo/user?@template=register

I got the error

    You do not have permission to register the user class.
msg9524 (view) Author: twb Date: 2009-12-04.08:03:04
Trent W. Buck wrote:
> When submitting the form at
>
>     http://127.0.0.1:8080/demo/patch?@template=item
>
> I got the error
>
>     Error: 'No key (username) value "darcs-users" for "user"'

I managed to create darcs-users:

    $ sqlite3 db/db
    SQLite version 3.6.20
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> select * from _user;
    20081228063645.663|1|roundup-admin@localhost||20081228063645.663|1||{SHA}d033e22ae348aeb5660fc2140aec35850c4da997|||Admin||admin||1|0
    20081228063645.667|1|||20081228063645.667|1|||||Anonymous||anonymous||2|0
    20081228063646.278|1|||20081228063646.278|1||{SHA}89e495e7941cf9e40e6980d14a16bf023ccd4c91||Demo User|User||demo||3|0
    20081228081637.278|2|trentbuck@gmail.com||20081228081637.272|2||{SHA}50604061dcf3dedb39d15164ca9c0a4cb9935d06||Trent W. Buck|User||twb||4|0
    20090126014949.342|2|al@nic.mil||20090126014949.269|2||{SHA}2f9ee2b336682012cb445da6f3a0a52c68caf471|||User||al||5|0
    20090126015158.509|2|bo@nic.mil||20090126015158.467|2||{SHA}dc45fe023482b3b890b5e574e53c1d051f45b1ef|||User||bo||6|0
    sqlite> INSERT INTO "_user" VALUES('20091228081637.278',2,'darcs-users@darcs.net',NULL,'20091228081637.272',2,NULL,'{SHA}50604061dcf3dedb39d15164ca9c0a4cb9935d06',NULL,'Darcs User mailing list','User',NULL,'darcs-users',NULL,7,0);
    sqlite> .quit
    $

Now I get an error I can't interpret (when creating a patch):

    Error: 'No key (username) value "patches" for "user"'

When I try to create a patch object via the web UI

    http://bugs.darcs.net/patch?@template=item

I also get an error: "Username required".
msg9525 (view) Author: kowey Date: 2009-12-04.11:58:04
On Fri, Dec 04, 2009 at 08:03:09 +0000, Trent W. Buck wrote:
>     Error: 'No key (username) value "patches" for "user"'

You also need to create a user called 'patches' (ie. patches@darcs.net)
This user is systematically deleted from the nosy list.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
msg9592 (view) Author: kowey Date: 2009-12-11.11:30:48
Hi Trent, Sorry to send this back.  Did you have better luck after creating the
'patches' user?
History
Date User Action Args
2009-12-04 07:23:02twbcreate
2009-12-04 08:03:09twbsetmessages: + msg9524
2009-12-04 11:58:06koweysetmessages: + msg9525
2009-12-11 11:30:52koweysetstatus: unknown -> waiting-for
priority: feature
nosy: + Serware
messages: + msg9592
topic: + BugTracker
assignedto: kowey -> twb
2009-12-20 08:17:17twbsetstatus: waiting-for -> resolved