* New PR ID needed after inserting through GNATSD ..
@ 2004-02-24 11:21 Imran Shafqat
2004-02-24 16:52 ` Mike Hoolehan
0 siblings, 1 reply; 7+ messages in thread
From: Imran Shafqat @ 2004-02-24 11:21 UTC (permalink / raw)
To: help-gnats
[-- Attachment #1.1: Type: text/plain, Size: 392 bytes --]
Dear All,
I am writing GNATSD client in C#.Net. I need to push back the new PRID
generated by GNATS to the client. I have multiple clients that can
simultaneously enter new PRS. Can any one please guide me what is the
best way to return / get the PRID from the GNATS after insertion.
Thanks in advance.
Regards
Imran Shafqat
Software Engineer
Xavor Pakistan
[-- Attachment #1.2: Type: text/html, Size: 2472 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New PR ID needed after inserting through GNATSD ..
2004-02-24 11:21 New PR ID needed after inserting through GNATSD Imran Shafqat
@ 2004-02-24 16:52 ` Mike Hoolehan
2004-02-24 20:28 ` Mel Hatzis
0 siblings, 1 reply; 7+ messages in thread
From: Mike Hoolehan @ 2004-02-24 16:52 UTC (permalink / raw)
To: help-gnats
[-- Attachment #1.1: Type: text/plain, Size: 1258 bytes --]
I maintain a perl module for communication with the gnats daemon. I
originally intended to do the same thing as you for my "submitPR" method
(i.e. return the PR Number of the newly created PR) but instead decided
only to return true/false (depending on success/failure). As far as I
know, since gnatsd doesn't supply the information on PR creation, the
only way to reliably get the PR number of a new PR is to query again for
the exact same criteria.
I left it up to my user to find the PR number of his/her new PR.
Mike
On Tue, 2004-02-24 at 13:16, Imran Shafqat wrote:
> Dear All,
>
> I am writing GNATSD client in C#.Net. I need to push back the new PRID
> generated by GNATS to the client. I have multiple clients that can
> simultaneously enter new PRS. Can any one please guide me what is the
> best way to return / get the PRID from the GNATS after insertion.
>
>
>
> Thanks in advance.
>
>
>
> Regards
>
> Imran Shafqat
>
> Software Engineer
>
> Xavor Pakistan
>
>
>
> ______________________________________________________________________
> _______________________________________________
> Help-gnats mailing list
> Help-gnats@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnats
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New PR ID needed after inserting through GNATSD ..
2004-02-24 16:52 ` Mike Hoolehan
@ 2004-02-24 20:28 ` Mel Hatzis
0 siblings, 0 replies; 7+ messages in thread
From: Mel Hatzis @ 2004-02-24 20:28 UTC (permalink / raw)
To: Mike Hoolehan; +Cc: ishafqat, help-gnats
Actually, the latest version of the GNATS sources has a patch for
returning the new PR number. This is one of the few changes
made after GNATS 4.0 was released. Here's the ChangeLog entry:
2003-08-30 Mel Hatzis <hatzis@juniper.net>, Andrew J. Gray
<andrewg@gnu.org>
* client.c (get_reply): Check for outfp being NULL.
(netSendPRCmd): Add flag to show information received. All
callers changed.
* cmds.c (GNATS_subm): Send PR number for new submission.
* file-pr.c (submit_pr): Return PR number for new submission.
* pr-edit.c (long_options, handleNetworkEdit, main): Add
show_prnum option.
If you opt to try this, be aware that it's a change to the GNATS
client/server interface (if you're using GNATS in network mode),
so you'll need to update the GNATS client binaries in addition
to the server.
-Mel
On 02/24/2004 08:39 AM, Mike Hoolehan submitted:
> I maintain a perl module for communication with the gnats daemon. I
> originally intended to do the same thing as you for my "submitPR" method
> (i.e. return the PR Number of the newly created PR) but instead decided
> only to return true/false (depending on success/failure). As far as I
> know, since gnatsd doesn't supply the information on PR creation, the
> only way to reliably get the PR number of a new PR is to query again for
> the exact same criteria.
>
> I left it up to my user to find the PR number of his/her new PR.
>
> Mike
>
>
> On Tue, 2004-02-24 at 13:16, Imran Shafqat wrote:
>
>>Dear All,
>>
>>I am writing GNATSD client in C#.Net. I need to push back the new PRID
>>generated by GNATS to the client. I have multiple clients that can
>>simultaneously enter new PRS. Can any one please guide me what is the
>>best way to return / get the PRID from the GNATS after insertion.
>>
>>
>>
>>Thanks in advance.
>>
>>
>>
>>Regards
>>
>>Imran Shafqat
>>
>>Software Engineer
>>
>>Xavor Pakistan
>>
>>
>>
>>______________________________________________________________________
>>_______________________________________________
>>Help-gnats mailing list
>>Help-gnats@gnu.org
>>http://mail.gnu.org/mailman/listinfo/help-gnat
>
> s
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Help-gnats mailing list
> Help-gnats@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnats
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New PR ID needed after inserting through GNATSD ..
2004-02-25 14:17 ` Tim Buck
@ 2004-02-25 14:52 ` Yngve Svendsen
0 siblings, 0 replies; 7+ messages in thread
From: Yngve Svendsen @ 2004-02-25 14:52 UTC (permalink / raw)
To: Tim Buck; +Cc: help-gnats, Mel Hatzis
Tim Buck wrote:
>
> On Feb 25, 2004, at 3:02 AM, Mel Hatzis wrote:
>
>> On 02/24/2004 11:01 PM, Imran Shafqat submitted:
>>
>>> Thanks for your reply.
>>> Can you tell how can I use this patch through GNATSD ?
>>
>>
>> You'll need to get the current development version of GNATS
>> from CVS...it contains very few changes from GNATS 4.0 and,
>> IMO, it's just as reliable.
>
>
> Is there support yet in gnatsweb for the returned PR number
> feature?
No, there isn't. I have been meaning to add it for some time, but I
haven't been able to get it done yet. (Patches are of course always
welcome.)
Yngve Svendsen
Gnatsweb maintainer
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New PR ID needed after inserting through GNATSD ..
2004-02-25 8:13 ` Mel Hatzis
@ 2004-02-25 14:17 ` Tim Buck
2004-02-25 14:52 ` Yngve Svendsen
0 siblings, 1 reply; 7+ messages in thread
From: Tim Buck @ 2004-02-25 14:17 UTC (permalink / raw)
To: Mel Hatzis; +Cc: help-gnats
On Feb 25, 2004, at 3:02 AM, Mel Hatzis wrote:
> On 02/24/2004 11:01 PM, Imran Shafqat submitted:
>> Thanks for your reply.
>> Can you tell how can I use this patch through GNATSD ?
>
> You'll need to get the current development version of GNATS
> from CVS...it contains very few changes from GNATS 4.0 and,
> IMO, it's just as reliable.
Is there support yet in gnatsweb for the returned PR number
feature?
Tim Buck * Information Technology Manager * Recognition Research, Inc.
PHONE +1 540 961-6500 * FAX +1 540 961-3568 * EMAIL tbuck@rrinc.com
Our lives are not determined by what happens to us, but by how we react
to what happens.
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New PR ID needed after inserting through GNATSD ..
2004-02-25 7:05 Imran Shafqat
@ 2004-02-25 8:13 ` Mel Hatzis
2004-02-25 14:17 ` Tim Buck
0 siblings, 1 reply; 7+ messages in thread
From: Mel Hatzis @ 2004-02-25 8:13 UTC (permalink / raw)
To: Imran Shafqat; +Cc: help-gnats
On 02/24/2004 11:01 PM, Imran Shafqat submitted:
> Thanks for your reply.
> Can you tell how can I use this patch through GNATSD ?
You'll need to get the current development version of GNATS
from CVS...it contains very few changes from GNATS 4.0 and,
IMO, it's just as reliable.
Follow the instructions for "Getting a Copy of the CVS Repository"
on http://savannah.gnu.org/cvs/?group=gnats if you want to
know how this is done.
will SUBM command
> return new PR number ?
Assuming the SUBM command succeeds and creates, say, PR 1969,
it would return the following:
351-The added PR number is:
350 1969
As for the GNATS client utilities...
- pr-edit will return the new PR number if it is
invoked with a (new) --show-prnum option which
is relevant if the --submit option is also
present
- send-pr will always return something like:
send-pr: problem report 1969 filed
(it now invokes pr-edit with the '--show-prnum' option)
--
Mel Hatzis
>
> Thanks in advance
> Regards
>
> Imran Shafqat
> Software Engineer
> Xavor Pakistan.
>
>
> -----Original Message-----
> From: Mel Hatzis [mailto:hatzis@juniper.net]
> Sent: Wednesday, February 25, 2004 12:09 AM
> To: Mike Hoolehan
> Cc: help-gnats@gnu.org; Imran Shafqat
> Subject: Re: New PR ID needed after inserting through GNATSD ..
>
> Actually, the latest version of the GNATS sources has a patch for
> returning the new PR number. This is one of the few changes
> made after GNATS 4.0 was released. Here's the ChangeLog entry:
>
> 2003-08-30 Mel Hatzis <hatzis@juniper.net>, Andrew J. Gray
> <andrewg@gnu.org>
>
> * client.c (get_reply): Check for outfp being NULL.
> (netSendPRCmd): Add flag to show information received. All
> callers changed.
> * cmds.c (GNATS_subm): Send PR number for new submission.
> * file-pr.c (submit_pr): Return PR number for new submission.
> * pr-edit.c (long_options, handleNetworkEdit, main): Add
> show_prnum option.
>
> If you opt to try this, be aware that it's a change to the GNATS
> client/server interface (if you're using GNATS in network mode),
> so you'll need to update the GNATS client binaries in addition
> to the server.
>
> -Mel
>
> On 02/24/2004 08:39 AM, Mike Hoolehan submitted:
>
>>I maintain a perl module for communication with the gnats daemon. I
>>originally intended to do the same thing as you for my "submitPR"
>
> method
>
>>(i.e. return the PR Number of the newly created PR) but instead
>
> decided
>
>>only to return true/false (depending on success/failure). As far as I
>>know, since gnatsd doesn't supply the information on PR creation, the
>>only way to reliably get the PR number of a new PR is to query again
>
> for
>
>>the exact same criteria.
>>
>>I left it up to my user to find the PR number of his/her new PR.
>>
>>Mike
>>
>>
>>On Tue, 2004-02-24 at 13:16, Imran Shafqat wrote:
>>
>>
>>>Dear All,
>>>
>>>I am writing GNATSD client in C#.Net. I need to push back the new PRID
>>>generated by GNATS to the client. I have multiple clients that can
>>>simultaneously enter new PRS. Can any one please guide me what is the
>>>best way to return / get the PRID from the GNATS after insertion.
>>>
>>>
>>>
>>>Thanks in advance.
>>>
>>>
>>>
>>>Regards
>>>
>>>Imran Shafqat
>>>
>>>Software Engineer
>>>
>>>Xavor Pakistan
>>>
>>>
>>>
>>>______________________________________________________________________
>>>_______________________________________________
>>>Help-gnats mailing list
>>>Help-gnats@gnu.org
>>>http://mail.gnu.org/mailman/listinfo/help-gnat
>>
>>s
>>
>>
>>
>
> ------------------------------------------------------------------------
>
>>_______________________________________________
>>Help-gnats mailing list
>>Help-gnats@gnu.org
>>http://mail.gnu.org/mailman/listinfo/help-gnats
>
>
>
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: New PR ID needed after inserting through GNATSD ..
@ 2004-02-25 7:05 Imran Shafqat
2004-02-25 8:13 ` Mel Hatzis
0 siblings, 1 reply; 7+ messages in thread
From: Imran Shafqat @ 2004-02-25 7:05 UTC (permalink / raw)
To: Mel Hatzis, help-gnats
Thanks for your reply.
Can you tell how can I use this patch through GNATSD ? will SUBM command
return new PR number ?
Thanks in advance
Regards
Imran Shafqat
Software Engineer
Xavor Pakistan.
-----Original Message-----
From: Mel Hatzis [mailto:hatzis@juniper.net]
Sent: Wednesday, February 25, 2004 12:09 AM
To: Mike Hoolehan
Cc: help-gnats@gnu.org; Imran Shafqat
Subject: Re: New PR ID needed after inserting through GNATSD ..
Actually, the latest version of the GNATS sources has a patch for
returning the new PR number. This is one of the few changes
made after GNATS 4.0 was released. Here's the ChangeLog entry:
2003-08-30 Mel Hatzis <hatzis@juniper.net>, Andrew J. Gray
<andrewg@gnu.org>
* client.c (get_reply): Check for outfp being NULL.
(netSendPRCmd): Add flag to show information received. All
callers changed.
* cmds.c (GNATS_subm): Send PR number for new submission.
* file-pr.c (submit_pr): Return PR number for new submission.
* pr-edit.c (long_options, handleNetworkEdit, main): Add
show_prnum option.
If you opt to try this, be aware that it's a change to the GNATS
client/server interface (if you're using GNATS in network mode),
so you'll need to update the GNATS client binaries in addition
to the server.
-Mel
On 02/24/2004 08:39 AM, Mike Hoolehan submitted:
> I maintain a perl module for communication with the gnats daemon. I
> originally intended to do the same thing as you for my "submitPR"
method
> (i.e. return the PR Number of the newly created PR) but instead
decided
> only to return true/false (depending on success/failure). As far as I
> know, since gnatsd doesn't supply the information on PR creation, the
> only way to reliably get the PR number of a new PR is to query again
for
> the exact same criteria.
>
> I left it up to my user to find the PR number of his/her new PR.
>
> Mike
>
>
> On Tue, 2004-02-24 at 13:16, Imran Shafqat wrote:
>
>>Dear All,
>>
>>I am writing GNATSD client in C#.Net. I need to push back the new PRID
>>generated by GNATS to the client. I have multiple clients that can
>>simultaneously enter new PRS. Can any one please guide me what is the
>>best way to return / get the PRID from the GNATS after insertion.
>>
>>
>>
>>Thanks in advance.
>>
>>
>>
>>Regards
>>
>>Imran Shafqat
>>
>>Software Engineer
>>
>>Xavor Pakistan
>>
>>
>>
>>______________________________________________________________________
>>_______________________________________________
>>Help-gnats mailing list
>>Help-gnats@gnu.org
>>http://mail.gnu.org/mailman/listinfo/help-gnat
>
> s
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Help-gnats mailing list
> Help-gnats@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnats
_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnats
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-02-25 14:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-24 11:21 New PR ID needed after inserting through GNATSD Imran Shafqat
2004-02-24 16:52 ` Mike Hoolehan
2004-02-24 20:28 ` Mel Hatzis
2004-02-25 7:05 Imran Shafqat
2004-02-25 8:13 ` Mel Hatzis
2004-02-25 14:17 ` Tim Buck
2004-02-25 14:52 ` Yngve Svendsen
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).