Create an Allura Application that stores shortened URLs. The
short_name of the URL is given by the user, and the URL can be made either public or private. We will also need a migration script, which will be created in another ticket, to pull existing URL data from a MySQL database.
Example URL (if installed on
myproject at mount point
url with a URL
Permissions (all should default to Admin):
default_mount_point = 'url'
installable = False(the tool should not show up in the installable list)
hidden = True(the tool should not show up in the navigation bar)
sitemap = 
Adding or editing a URL should create an entry in the project audit log that includes the old and new URLs.
The admin menu for the tool should have an
Add should present a pop-up with inputs for the
short_name, full URL and a checkbox for
Browse should open a separate page which lists the URLs for the app. Users without the
VIEW_PRIVATE permission should be able to view the page, but shouldn't see the private URLs listed. The page should list the following:
Browse pages will need not conflict with user-defined short_names, perhaps by overloading
index via query paramaters (e.g.,
/p/myproject/url with no param is used for browsing, and adding is via the admin controller