#2565 Tool ordering broken for user profiles

v1.0.0
closed
sf-2 (994)
User
nobody
2015-08-20
2011-08-04
No

If you install the "Mysql Database" tool on a user-project, then /u/username redirects to it, but it should redirect to /u/username/profile. This happens even when the tool ordinal values make sense (see below). Perhaps we need some special handling for "profile" in the first-tool selection function (iirc, we have special handling for "home"):

> db.config.find({project_id:ObjectId("4e3ad6409c10402481000005")})
{ "_id" : ObjectId("4e3ad6409c10402481000011"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "acl" : [ ], "version" : null, "discussion_id" : ObjectId("4e3ad6409c10402481000012"), "options" : { "ordinal" : 0, "mount_point" : "profile", "mount_label" : "Profile" }, "tool_name" : "profile" }
{ "_id" : ObjectId("4e3ad6409c10402481000013"), "version" : null, "discussion_id" : ObjectId("4e3ad6409c10402481000014"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "options" : { "ordinal" : 1, "mount_point" : "admin", "mount_label" : "Admin" }, "tool_name" : "admin", "acl" : [ ] }
{ "_id" : ObjectId("4e3ad6409c10402481000015"), "version" : null, "discussion_id" : ObjectId("4e3ad6409c10402481000016"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "options" : { "ordinal" : 2, "mount_point" : "search", "mount_label" : "Search" }, "tool_name" : "search", "acl" : [ ] }
{ "_id" : ObjectId("4e3ad6519c10402482000011"), "project_id" : ObjectId("4e3ad6409c10402481000005"), "acl" : [
    {
        "access" : "ALLOW",
        "permission" : "read",
        "role_id" : ObjectId("4e3ad6409c1040248100000b")
    },
    {
        "access" : "ALLOW",
        "permission" : "configure",
        "role_id" : ObjectId("4e3ad6409c10402481000007")
    },
    {
        "access" : "ALLOW",
        "permission" : "admin",
        "role_id" : ObjectId("4e3ad6409c10402481000007")
    }
], "version" : null, "discussion_id" : ObjectId("4e3ad6519c10402482000014"), "options" : { "ordinal" : 15, "mount_point" : "sfx-mysql", "mount_label" : "MySQL" }, "tool_name" : "mysql" }

Discussion

  • Jenny Steele - 2011-08-10
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele - 2011-08-10

    Fix is on allura js/2565. To test, go to your user project and add a project. If you go to a url like "/u/test-user" you will get redirected to the profile page, not the new tool.

     
  • Jenny Steele - 2011-08-10
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Tim Van Steenburgh
    • size: --> 2
    • milestone: aug-19 --> aug-12
     
  • Looks good, merged to dev.

     
    • status: code-review --> closed
    • assigned_to: Tim Van Steenburgh --> Jenny Steele
     

Log in to post a comment.