Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Regarding Bug 7953: msg#00052

bug-tracking.mantis.devel

Subject: Re: Regarding Bug 7953

On 10/20/07, Victor Boctor <vboctor-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx>
wrote:
> Hi Daryn,
>
> I don't have the code handy now, but I agree with you that moving such
> logic to bugnote_add() is a better approach. The logic should be as
> follows:
>
> bugnote_add()
> - if note is empty and time is empty, return.
> - if time is not empty, set note type to time tracking, otherwise, use
> notetype passed in.
> - process as usual.
>
> This way all places that call bugnote_add() can call it without having
> to check whether it will end up being a productive call or whether it
> will end up being a normal note or a time tracking note.
>
> Again, this is all based on memory, so my response may not be
> accurate, but it should convey the approach that I have in mind.
> Basically, I would love to reduce the logic in the script pages and
> have the APIs provide all such business logic. This also provides
> benefit to webservice API that are built directly on top of the core
> API, otherwise, we will have to replicate the logic there as well.

I agree on the general concept that the logic in pages should be moved
to the underlying API as much as possible.

In this case, I think the main problem is that bugnote_add() should be
used to add, you know... a bugnote (and nothing else).

You should also have a look at a past discussion about time tracking
and bugnotes "types" in general:

http://thread.gmane.org/gmane.comp.bug-tracking.mantis.devel/1312

where I made a proposal that could help (despite I'm sure if you could
analyze the overall design issue, a even better solution could be more
obvious)

thanks for your help

Gianluca

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation