click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-11460
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Allison Bloodworth
Votes: 0
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Sakai

Correct Customize Tabs to match new site navigation functionality

Created: 10-Sep-2007 17:01   Updated: 27-Oct-2009 13:39
Component/s: Preferences
Affects Version/s: 2.4.1
Fix Version/s: 2.5.0, 2.6.0

Time Tracking:
Not Specified

File Attachments: 1. Text File SAK-11460-final.patch (18 kB)
2. Text File SAK-11460.trunk.patch (12 kB)
3. Text File SAK-11460_2-5-x.patch (0.6 kB)
4. Text File userPrefsTool_2.5.x-patch.txt (19 kB)

Issue Links:
Relate
 

2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
When using the SAK-10448 DHTML Tab Navigation enhancement, Customize Tabs in the Preferences tool no longer works properly. Users are asked to put their sites in one of two categories/list-boxes: "Sites not visible in Tabs" or "Sites visible in Tabs." Users are able to order all the "Sites visible in Tabs" in this list box. Without the enhancement, this allows the users to not only determine the order of the tab navigation at the top of the screen, but also the order of the sites in the 'More' drop-down box. However, with the enhancement, this ordering has no effect for any sites beyond the 3-5 which are represented in tab navigation at the top of the screen, as all the sites in the pop-up box/div of list of sites are ordered automatically, based on category.

Those of us in the Fluid Project working on a more comprehensive fix for this problem for the next release (Allison Bloodworth, UC Berkeley & Shaw-Han Liem, University of Toronto, designers, developers to be determined) propose to add some new wording on the Customize Tabs page to explain the current state of the functionality, only for users who have specifically configured Sakai to use the 10448 navigation enhancement, as a temporary fix for the 2.5 release.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Peter A. Knoop added a comment - 16-Nov-2007 09:45
[Bulk Comment] This issue is still unresolved, but has a Fix Version set. The Fix Version(s) are being removed. Please use the Target Version field to indicate for which version(s) of Sakai you plan to address the issue.

Joseph Scheuhammer added a comment - 11-Dec-2007 14:11
Attaching patch file with changes to the user-prefs-tool (inside the "user " project) modifying the "Customize Tabs" preferences for the DHTML Tab Navigation enhancement.

When this enhancement is enabled, "Customize Tabs" works one way. When it is disabled, "Customize Tabs" reverts to its current implementation.



Joseph Scheuhammer added a comment - 11-Dec-2007 15:21
Found a code smell in the previous patch file. Removed same, and added this new one.

Joseph Scheuhammer added a comment - 12-Dec-2007 09:06
Fixed another bug. Deleted the patch file and replaced it with the one that fixes this bug.

Joseph Scheuhammer added a comment - 12-Dec-2007 12:07
A patch file is attached that fixes this issue. Can someone with commit access review and commit it, please?

Thanks.

Stephen Marquard added a comment - 12-Dec-2007 13:15
As far as I can see there are no svn commits for this yet, so it shouldn't be marked resolved.

Megan May added a comment - 12-Dec-2007 13:59
Joseph, these changes need to be checked into trunk before they are merged into 2.5.x. Can you please do this?

Joseph Scheuhammer added a comment - 12-Dec-2007 16:04
Megan, the short answer is: "no".

My understanding was that we were to make a patch for the 2.5.x branch, and then later address this issue in trunk. The "customize tabs" code in trunk is substantially different from that in the branch; it's unlikely that this patch would work with the trunk code. Also, I don't have commit access.

Colin Clark advised me to attach the patch file, and send an email to sakai-dev asking that someone with commit access to please review and commit this patch. I've posted such a request -- look for the email with subject "Patch for SAK-11460 -- can someone commit?". That email also explains why I changed the status to "resolved" and the assignee to "2.5.x Branch Manager".

What is the correct procedure for getting this patch into 2.5.0-rc1?

Ian Boston added a comment - 13-Dec-2007 06:15
This is a potential patch for trunk, BUT,

I am not certain that I know exactly what I am doing here so someone needs to check the patch over before I am prepared to commit.


Things to check.

Once applied: does the css still make sense.
Is the Faces config file correct.

Ian Boston added a comment - 13-Dec-2007 06:16
Please could someone check the trunk patch, and give me the go-ahead to apply it. It is not the same as the 2.5 patch.

Thanks

Anastasia Cheetham added a comment - 13-Dec-2007 08:56
Ian, I'm not sure what this patch is? Is it intended to be applied *to* the trunk, or to merge trunk changes into the 2.5 branch, or other? (I'm not clear on the process of getting patches into the 2.5.0-rc1 release, so if anyone could clarify this, I would appreciate it!)

Your patch does not seem to include the new files: tab-dhtml-moresites.jsp and useDHTMLMore.css. These files are required by the other changes that are included in your patch.

(I've been working on this with Joseph, who is not in the office today, so he's passed the baton to me.)


Anastasia Cheetham added a comment - 13-Dec-2007 12:12
Ian, I tried the patch you provided, but it was missing the jsp and css files.

I've recreated the patch to be applied to trunk. It's been tested, and should work: SAK-11460-final.patch

Joseph Scheuhammer added a comment - 14-Dec-2007 13:18
Ian, as Anastasia said in the last comment, she has attached the final patch for this JIRA. She has also emailed you regarding same, asking you to commit it to trunk on our behalf (since we do not have commit privileges). We are concerned that we might miss the deadline for the 2.5.0 rc1 branch (Mon Dec 17), so I am assigning you to this JIRA. Sorry if this is too unorthodox; not really sure what we should do.

Ian Boston added a comment - 14-Dec-2007 14:14
Patch applied to trunk,
please check on Nightly and then assign to the 25 branch manager.

I would also suggest you ask directly for this to be included in 2.5rc1

Joseph Scheuhammer added a comment - 14-Dec-2007 20:57
Ian, thank you very much for your help in committing our changes to trunk.

I have checked out trunk, looked for our code changes, and it's all there. We've built, deployed, and tested various configurations with nothing untoward.

Assigning the issue to the 2.5.x Branch Manager. Note that, as Ian says, this is to be included in 2.5rc1 -- the "Target Versions".

Stephen Marquard added a comment - 19-Dec-2007 06:37
The merge into 2-5-x (r39399) has broken the 2-5-x build:

http://nightly2.sakaiproject.org/logs/sakai-rel/build-2007-12-19-01:00:01.log.txt

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[363,21] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[364,31] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[368,16] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[370,21] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[371,24] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[371,39] cannot find symbol
symbol : variable DEFAULT_TAB_COUNT
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[373,23] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[383,24] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[383,39] cannot find symbol
symbol : variable DEFAULT_TAB_COUNT
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[385,24] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[387,38] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[387,71] cannot find symbol
symbol : variable DEFAULT_TAB_COUNT
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[388,24] cannot find symbol
symbol : variable prefTabCount
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[686,16] cannot find symbol
symbol : variable DEFAULT_TAB_COUNT
location: class org.sakaiproject.user.tool.UserPrefsTool

/home/tomcat3/sakai/user/user-tool-prefs/tool/src/java/org/sakaiproject/user/tool/UserPrefsTool.java:[686,97] cannot find symbol
symbol : variable DEFAULT_TAB_COUNT
location: class org.sakaiproject.user.tool.UserPrefsTool


Anastasia Cheetham added a comment - 19-Dec-2007 08:14
Could someone clarify exactly which rev of which branch/trunk of the code we should be investigating?

Stephen's comment above references r39399 explicitly, but the log file he specifies indicates the code was updated to r39477. I checked out branches/sakai_2-5-x, and it's currently at r39488 ("last changed rev: 38214").

The logs indicated that a couple of variables are missing, and I think the patch should be simple, but I need to know which version of the code to generate the patch for.

Megan May added a comment - 19-Dec-2007 08:17
it's for the 2.5.x branch

Anastasia Cheetham added a comment - 19-Dec-2007 08:20
Can I just work with the latest rev of that branch, and produce a patch for that? (i.e. can I ignore questions of which rev failed, which revs were merged to which, etc?)

Anastasia Cheetham added a comment - 19-Dec-2007 10:04
I've attached a patch that works with r39488 of sakai/branches/sakai_2-5-x. The file is called SAK-11460_2-5-x.patch

Anastasia Cheetham added a comment - 19-Dec-2007 10:05
Stephen, I've attached a patch file (SAK-11460_2-5-x.patch) that will fix problem. If you could commit it, that would be great!

Stephen Marquard added a comment - 19-Dec-2007 11:42
Committed patch r39496 - it looks good in 2-5-x now with and without the dhtml more tabs switched on.

Peter A. Knoop added a comment - 23-Dec-2007 09:59
Just for clarification, does a version of the 2.5.x patch (r39496) need to be applied to trunk as well, or was this only a problem in 2.5.x?

Stephen Marquard added a comment - 24-Dec-2007 00:35
AFAIK it was just a problem in 2-5-x (some missing variable definitions).

Joseph Scheuhammer added a comment - 07-Jan-2008 09:29
Re: Peter's question about applying this change to trunk: the changes were incorporated into trunk -- see my comments above on Dec 14/07 (http://jira.sakaiproject.org/jira/browse/SAK-11460#action_57166). The missing variable defintions issue did not occur on trunk.

Peter A. Knoop added a comment - 05-Feb-2008 11:47
Verified.

Megan May added a comment - 03-Oct-2008 10:20
Changing all issues assigned to Sakai QA that are closed to unassigned.