Project

General

Profile

Feature #6241

cuny.is short URLs for groups

Added by Boone Gorges about 1 year ago. Updated about 9 hours ago.

Status:
Testing Required
Priority name:
High
Assignee:
Category name:
cuny.is
Target version:
Start date:
2016-10-13
Due date:
% Done:

0%


Description

Splitting off from #3064.

Groups should have cuny.is URLs, just like users do. Here's my suggested setup:

1. The default format of the URL will be cuny.is/group-{group_slug}. See https://redmine.gc.cuny.edu/issues/3064#note-5 and follow-up conversation.
2. Groups will automatically receive a default slug. I think the way this currently works for users is that the plugin shows the slug on the user profile, and if it doesn't find one in the database, it requests one on the spot. This means we don't need a routine to backfill URLs.
3. Short URL will be displayed somewhere in the group header, I guess? Ideas welcome.
4. There'll be a place in the group Manage section where admins can request a different URL. Most of this can be borrowed from the User interface.

Screenshot_2017-09-27_15-03-28.png View (61.9 KB) Boone Gorges, 2017-09-27 04:30 PM

Screenshot_2017-09-27_15-03-11.png View (45 KB) Boone Gorges, 2017-09-27 04:30 PM


Related issues

Related to CUNY Academic Commons - Design/UX #3064: Add Information on Custom Domains to Group Creation Process Rejected 2014-02-21

History

#1 Updated by Boone Gorges about 1 year ago

  • Related to Design/UX #3064: Add Information on Custom Domains to Group Creation Process added

#2 Updated by Matt Gold about 1 year ago

thanks, Boone -- this sounds good

#3 Updated by Boone Gorges 6 months ago

  • Target version changed from 1.11 to 1.12

I started working on this, but hit some snags that will make it tough to have tested and done for 1.11.

#4 Updated by Boone Gorges about 1 month ago

  • Priority name changed from Normal to High

#5 Updated by Boone Gorges 20 days ago

First pass at this functionality is in https://github.com/cuny-academic-commons/cac/commit/b6922f1b933b2a4e6559e479d23b1ffc9750d690 and https://github.com/cuny-academic-commons/cac/commit/635e5e75d9dfa7c2074a12bfa28fce93b299adf0

It works like this:
- When a group is loaded and no shorturl is present, a routine runs in the background (at the end of the pageload) to fetch one called 'group-{group_slug}'. This is generally complete by the next pageload.
- When present, the "Quick Link" appears in the header. See attached screenshot, which is from a group of which I'm also a member and which also has social media profile fields. It looks a bit less crowded when both of these things don't obtain. The "Quick Link" terminology is borrowed from user profiles.
- On the primary group Manage panel, there's an interface for changing the short URL. Like in the case of users, there's some ajax that checks for availabilty on keyup (with a one-second delay).

See screenshots. Let me know if anyone wants to test this before our more general release testing.

#6 Updated by Stephen Real about 18 hours ago

What is the expected behavior when I click the CUNY.IS displayed at the top of my Group Page? On the test system it takes me to My Commons page.

#7 Updated by Boone Gorges about 18 hours ago

It should go to the group page. Please give me the URL of the site you're testing with so I can have a look.

#9 Updated by Boone Gorges about 9 hours ago

Thanks, Steve!

It appears that cuny.is is also mirrored to the dev environment! It didn't used to be, which is why I didn't warn about it. To your /etc/hosts line that points the Commons URLs to LDV1, add cuny.is. So:

146.96.128.253 commons.gc.cuny.edu cuny.is 

Also available in: Atom PDF