Closed Bug 844102 Opened 12 years ago Closed 12 years ago

TBPL does not display errors that occurred during bug starring comment submission

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

Starring bugs using a Vagrant TBPL instance currently fails to add a comment to the bug, even with the correct tbplbot credentials filled out in config.php Similarly, in bug 802104 tbpl-dev wasn't able to submit bug comments, even though no failure message was displayed in the TBPL UI (the root cause there was out of sync credentials in config.php for tbplbot). We should make submitBugzillaComment.php correctly return failure & then AddCommentUI.js::_postOneBug() handle them, displaying an error in the TBPL message bar (similar to failed retrigger requests).
Blocks: 844103
Attached patch Patch v1Splinter Review
Ideally we'd split more of this handling out to somewhere central, but at least this gets us error messages for now :-) [And in the case of bug 844103, revealed that we're hitting the die('Needs CURL!') when using Vagrant]
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Attachment #717209 - Flags: review?(arpad.borsos)
Comment on attachment 717209 [details] [diff] [review] Patch v1 Review of attachment 717209 [details] [diff] [review]: ----------------------------------------------------------------- As long as the `complete` callback is still being fired this looks good.
Attachment #717209 - Flags: review?(arpad.borsos) → review+
Yup, I've just checked and the complete still fires fine. Thank you for the review :-) https://hg.mozilla.org/webtools/tbpl/rev/c476a0079171
Depends on: 844835
In production :-)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Blocks: 844863
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: