unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* debbugs-gnu-bugs shows unanswered bugs as handled
@ 2016-06-04  4:10 Tino Calancha
  2016-06-04  8:25 ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Tino Calancha @ 2016-06-04  4:10 UTC (permalink / raw)
  To: michael.albinus, larsi; +Cc: emacs-devel


My version of debbugs is: 0.9.5

I)

debbugs-gnu-bugs may show a bug with face debbugs-gnu-handled
even though such bug has not being answered yet.

Current implementation assumes a bug as new (not answered yet)
whenever attributes 'date and 'log_modified satisfies
predicate '=.

But for some new bugs 'date and 'log_modified may differ in 1 second.
For instance, the bugs:
23686,23685,23682,23679,23659,23651,23645,23639,23629,23619,23597,23590

***
The patch (see below) solve this issue relaxing the condition to
'log_modified - 'date < 3.


II)

Another issue with the predicate to assign face 'debbugs-gnu-new
is that it may consider as answered a bug where only the OP sent info.

For instance, let's suppose one user, FOO, send a bug report; some minutes
later, FOO send another e-mail (to same bug) adding extra information.

Current implementation shows that bug with face 'debbugs-gnu-handled.

That may cause the Emacs maintainers to think that someone is already
taking care on that issue.
It would be better if such bugs would not get 'debbugs-gnu-handled
face until some Emacs maintainer have already answered it.

Examples of this are:
23638,23630,23621,23617,23602,23574,23593

***
I don't see easy way to solve this with current implementation.

Could be added a new attribute 'ncommunicators' to the status of a bug?

The value of this attribute could be defined as:
(length (delete-dups (from-list)))

where from-list is a list with the FROM field of all the e-mails
on that bug.

Then, `debbugs-get-status' would have such attribute set to 1 by
default; once the bug receive an answer from a different e-mail than
the OP then 'ncommunicators' would change to 2, and so on.

Tino


--- /tmp/ediff2583b8i	2016-06-04 12:39:37.169388859 +0900
+++ /home/calancha/.emacs.d/elpa/debbugs-0.9.5/debbugs-gnu.el	2016-06-03 19:40:12.644524320 +0900
@@ -668,8 +668,8 @@
  		'debbugs-gnu-done)
  	       ((member "pending" (cdr (assq 'keywords status)))
  		'debbugs-gnu-pending)
-	       ((< (abs (- (cdr (assq 'date status))
-                       (cdr (assq 'log_modified status)))) 3)
+	       ((= (cdr (assq 'date status))
+		   (cdr (assq 'log_modified status)))
  		'debbugs-gnu-new)
  	       ((< (- (float-time)
  		      (cdr (assq 'log_modified status)))



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-06-11 17:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-04  4:10 debbugs-gnu-bugs shows unanswered bugs as handled Tino Calancha
2016-06-04  8:25 ` Michael Albinus
2016-06-05 14:50   ` Tino Calancha
2016-06-05 15:29     ` Michael Albinus
2016-06-08 13:29       ` Tino Calancha
2016-06-11 17:56         ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).