Project

General

Profile

Actions

Feature #6241

closed

cuny.is short URLs for groups

Added by Boone Gorges over 7 years ago. Updated over 6 years ago.

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

0%

Estimated time:
Deployment actions:

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.


Files


Related issues

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

Actions
Related to CUNY Academic Commons - Feature #8835: Extend cuny.is shortlinks to sitesNewBoone Gorges2017-10-20

Actions
Actions #1

Updated by Boone Gorges over 7 years ago

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

Updated by Matt Gold over 7 years ago

thanks, Boone -- this sounds good

Actions #3

Updated by Boone Gorges almost 7 years 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.

Actions #4

Updated by Boone Gorges over 6 years ago

  • Priority name changed from Normal to High
Actions #5

Updated by Boone Gorges over 6 years 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.

Actions #6

Updated by Stephen Real over 6 years 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.

Actions #7

Updated by Boone Gorges over 6 years 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.

Actions #9

Updated by Boone Gorges over 6 years 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 
Actions #10

Updated by Boone Gorges over 6 years ago

  • Status changed from Testing Required to Resolved
Actions #11

Updated by Boone Gorges about 5 years ago

  • Related to Feature #8835: Extend cuny.is shortlinks to sites added
Actions

Also available in: Atom PDF