This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 160462 - After logout all My Issues nodes should show zero
Summary: After logout all My Issues nodes should show zero
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Team Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-17 13:44 UTC by Jaromir Uhrik
Modified: 2009-05-27 13:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-03-17 13:44:02 UTC
Product Version: NetBeans IDE Dev (Build 090317)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)

Steps to reproduce:
-log in to kenai
-look at the Issues node of some project (your own one that contains some issues in My Issues node)
-logout from kenai
-->> The My Issues node still contains some numbers that are not zero. Since the user is now not logged in to kenai the
zero values should be shown in My Issues node. The situation should be the same as when user opens the project while she
is logged out.
Comment 1 Tomas Stupka 2009-03-20 09:30:51 UTC
not sure if zero should be the shown value in such a case - zero means zero and that means that there are no issues in
the query and not that the user isn't logged in. 

putting ondra on cc. as the more interesting question is what should be shown at all if a user is logged out. 

for now i see this more like an dashboard issue - bugtracking returns the correct value about the issues in a query - it
doesn't matter if the user is logged in or not, the issues are there. 
Comment 2 Jan Becicka 2009-03-20 10:37:52 UTC
If user logs out, My Issues should disappear from dashboard. This can be implemented with current api in QueryAccessor,
which should not return My Issues node in list of QueryHandles imo.

Comment 3 Ondrej Langr 2009-03-20 10:51:09 UTC
Exactly as jbecicka says. For dashboard appearance when the user is logged out see Kenai Project UI specification.
Comment 4 Tomas Stupka 2009-03-20 11:37:34 UTC
1.) the way honza suggests there would be an "Issues" node with no query nodes and the "find/report Issue" nodes disabled. 

2.) looking in the spec - there is a screenshot for the case when the user isn't logged in yet. Am i right that that is
the same for the case when the user logs out? Because there is no "Issues" node at all ...

so what is it we want? or did i miss something in the spec?
Comment 5 Stanislav Aubrecht 2009-03-20 11:41:50 UTC
makes sense to me to show and enable 'find issue' and even maybe 'new issue' nodes even when user is logged out
(that is if find/new issue functionality doesn't need user's credentials to work)
Comment 6 Ondrej Langr 2009-03-20 11:45:20 UTC
My understanding was that when a user is logged out, they may log-in as someone else next time. They're not logged in,
so they don't have information about Kenai projects at all. Further, I know we are able to display some information
about the issues as they are present locally, but other things, including CI, messaging, and versioning would probably
not be working at all, right? So by keeping the Issues node while logged-out, we would introduce a semi-logged-in state.

So I tend to vote for hiding everything when users are logged out. But maybe this would be better to discuss in-person? 
Comment 7 Stanislav Aubrecht 2009-03-24 14:44:02 UTC
when user logs out his/her member projects are discarded and loaded again, including query information. so QueryAccessor
implementation must return and empty list of queries when user isn't logged in.
Comment 8 Tomas Stupka 2009-03-26 14:58:46 UTC
fixed

changeset   : 123600:6bea58e3c89b
author      : Tomas Stupka <tstupka@netbeans.org>
date        : Thu Mar 26 14:58:24 CET 2009
Comment 9 Quality Engineering 2009-03-28 20:38:32 UTC
Integrated into 'main-golden', will be available in build *200903281400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6bea58e3c89b
User: Tomas Stupka <tstupka@netbeans.org>
Log: #160462 - After logout all My Issues nodes should show zero
Comment 10 Petr Dvorak 2009-05-27 13:35:40 UTC
Verified, "My Issues" are not present in the Kenai dashboard when user logs out.

Product Version: NetBeans IDE 6.7 RC1 (Build 200905270001)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.28-11-generic running on i386; UTF-8; en_US (nb)