Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use names not IDs in follower flash messages #241

Merged
merged 9 commits into from
Feb 22, 2013

Conversation

tobes
Copy link
Contributor

@tobes tobes commented Feb 18, 2013

If you click twice quickly on a Follow/Unfollow button then when the page loads you'll get a message like:

Screenshot from 2012-12-20 16:44:49

It should say the object's display name not id

@seanh
Copy link
Contributor Author

seanh commented Dec 20, 2012

You can also produce these follower flash messages by using the URLs for following/unfollowing things, instead of the js buttons, e.g. http://pdeu.staging.ckanhosted.com/group/follow/59df2658-0024-4016-9e2d-6d537bd933fd or http://pdeu.staging.ckanhosted.com/group/unfollow/59df2658-0024-4016-9e2d-6d537bd933fd

@ghost ghost assigned seanh Feb 19, 2013
Sean Hammond added 3 commits February 22, 2013 12:17
Use user display names and group and package titles, not IDs, in "You
are now following..." and "You are no longer following..." flash
messages.
To make them consistent with the "You are now following..." and "You are
no longer following..." messages, just say e.g. "You are now following
{name}" not "You are now following dataset {name}".
@seanh
Copy link
Contributor Author

seanh commented Feb 22, 2013

@tobes I saw that the successful follow/unfollow flash messages were using IDs too so fixed those as well. Tests passed for me. I'll merge this even though it now contains a couple of my own commits, if you think that's ok?

@tobes
Copy link
Contributor

tobes commented Feb 22, 2013

@seanh your commits look ok, even if the amount of work behind the scenes to get a datasets name is obscene- that's a different issue

@seanh seanh merged commit ff56eb7 into master Feb 22, 2013
@tobes tobes deleted the 241-better-following-errors branch February 22, 2013 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants