Re: [Bug 379393] Re: add checkbox submission reference
Abel Deuring [2009-09-04 15:07 -]: > HWDB-Submission: submission-key > I opened bug 424382 for the Launchpad side. Thanks! Added Apport task and subscribed. > > Ah, and adding the actual key is already done by /usr/share/apport > > /general-hooks/checkbox.py, so there's nothing to do in Apport right > > now. I'll reopen this if/when LP extends the +storeblob API accordingly. > > Not sure what this means. Do we already have they submission keys > somewhere in the data sent by Apport to +storeblob? I meant that apport bugs already have the submission reference in the description, so if someone wants to, he can fetch it from LP manually. -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 379393] Re: add checkbox submission reference
On 03.09.2009 20:09, Martin Pitt wrote: > Sorry, it just occurred to me that in the general case we can't link the > hwdb submission key, we can just add the key value to the description > field. This is because Apport's job ends with opening a browser window > to file a bug, and never gets back the ID. > > So either developers need to grab the key and fetch the corresponding > hwdb object manually, or LP needs to be extended to accept a checkbox > submission key in the +storeblob area (in the MIME headers, similar to > the Private:, Subscribers:, and Tags: fields). The latter would > obviously be preferrable, but needs further changes in LP. > > Abel, what do you think? > > For now I'll just add the reference key to the description. > I think adding a header like HWDB-Submission: submission-key is fine. (Actually, a user might have run checkbox more than once on a machine, so we should also allow HWDB-Submission: submission-key, submission-key... ) I opened bug 424382 for the Launchpad side. > Ah, and adding the actual key is already done by /usr/share/apport > /general-hooks/checkbox.py, so there's nothing to do in Apport right > now. I'll reopen this if/when LP extends the +storeblob API accordingly. Not sure what this means. Do we already have they submission keys somewhere in the data sent by Apport to +storeblob? -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
Ah, and adding the actual key is already done by /usr/share/apport /general-hooks/checkbox.py, so there's nothing to do in Apport right now. I'll reopen this if/when LP extends the +storeblob API accordingly. Thanks all! ** Changed in: apport (Ubuntu) Status: In Progress => Invalid -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
Sorry, it just occurred to me that in the general case we can't link the hwdb submission key, we can just add the key value to the description field. This is because Apport's job ends with opening a browser window to file a bug, and never gets back the ID. So either developers need to grab the key and fetch the corresponding hwdb object manually, or LP needs to be extended to accept a checkbox submission key in the +storeblob area (in the MIME headers, similar to the Private:, Subscribers:, and Tags: fields). The latter would obviously be preferrable, but needs further changes in LP. Abel, what do you think? For now I'll just add the reference key to the description. -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
** Changed in: apport (Ubuntu) Importance: Undecided => Wishlist ** Changed in: apport (Ubuntu) Status: Incomplete => In Progress ** Changed in: apport (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
Martin, With the new version of Checkbox, two files are written to $XDG_CACHE_HOME/checkbox - submission and system. These are plaintext files containing the respective IDs generated during the last run of checkbox. If they're not there, Checkbox has never been run. -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
So how do I get the submission reference nowadays? ** Changed in: apport (Ubuntu) Status: Triaged => Incomplete -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
** Changed in: checkbox (Ubuntu) Status: Triaged => Fix Released -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
** Changed in: checkbox (Ubuntu) Milestone: None => karmic-alpha-3 ** Changed in: checkbox (Ubuntu) Assignee: (unassigned) => Dave Murphy (schwuk) -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
Opening checkbox task. Once checkbox stores the submission key somewhere, please tell me here, then I'll add this in apport. ** Changed in: checkbox (Ubuntu) Importance: Undecided => Medium ** Changed in: checkbox (Ubuntu) Status: New => Triaged -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 379393] Re: add checkbox submission reference
Abel writes: 8< Finally, Launchpad is able to link bugs and hardware profiles via the LP webservice API. If bug is a launchpadlib object representing a bug, and if hwsubmission is the launchpadlib representation of a hardware report in Launchpad, call bug.linkHWSubmission(hwsubmission) to link the bag und the hardware report. You can create the hwsubmission object by calling hwsubmission = lp.load('https://api.edge.launchpad.net/beta/+hwdb/+submission/%s' % submission_key) where submission_key is the unique ID provided by checkbox in the field "field.submission_key" when it uploads the hardware report via https://launchpad.net/+hwdb/+submit . So, apport can now create these links between bugs and and hardware reports -- if it knows the submission_key. IIRC the problem remains that checkbox does not store at present submission_key on the user's machine. - 8< ** Changed in: apport (Ubuntu) Status: Incomplete => Triaged ** Also affects: checkbox (Ubuntu) Importance: Undecided Status: New -- add checkbox submission reference https://bugs.launchpad.net/bugs/379393 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs