{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/8d2495ececc02f79f0bcc39a33d1656c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8d2495ececc02f79f0bcc39a33d1656c","url":"https://api.github.com/users/kevinansfield","login":"kevinansfield","id":415},"updated_at":"2011-10-30T06:00:50Z","labels":[{"name":"Bug","color":"e10c02","url":"https://api.github.com/repos/gregbell/active_admin/labels/Bug"}],"assignee":null,"comments":2,"closed_at":"2011-10-13T08:56:39Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/477","body":"If a menu item has a parent set, it's priority seems to be ignored.","html_url":"https://github.com/gregbell/active_admin/issues/477","title":"Menu priority with parents","number":477,"id":1644726,"created_at":"2011-09-14T15:44:44Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/6456baebc3c25d772bf564169b5034c5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6456baebc3c25d772bf564169b5034c5","url":"https://api.github.com/users/eLod","login":"eLod","id":286779},"updated_at":"2011-10-30T06:00:50Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/comments/2568441","body":"The problem is with the parent's priority (and for the fact with it's display_if_block also) when the subitem is registered beforehand, eg:\r\n\r\n```ruby\r\nmenu \"Sub\", :parent => \"Main\"\r\nmenu \"Main\", :priority => 10, :if => :foo\r\n```\r\n\r\nwill ignore main's priority and if block, because `ActiveAdmin::Namespace#register_with_menu` just updates the url if the `MenuItem` already exists, updating priority & display_if_block is missing.","id":2568441,"created_at":"2011-10-30T06:00:50Z"}}