Skip to content

adding the ability to edit usernames#696

Merged
engelgabriel merged 5 commits into
RocketChat:masterfrom
soonahn:editable-usernames
Sep 6, 2015
Merged

adding the ability to edit usernames#696
engelgabriel merged 5 commits into
RocketChat:masterfrom
soonahn:editable-usernames

Conversation

@soonahn

@soonahn soonahn commented Sep 5, 2015

Copy link
Copy Markdown
Contributor

Addresses #695

@soonahn

soonahn commented Sep 5, 2015

Copy link
Copy Markdown
Contributor Author

I also removed a bunch of redspace near where I was working. Long empty lines make me cringe to see, can't help but remove.

@geekgonecrazy

Copy link
Copy Markdown
Contributor

Just a little UI request. Maybe order Username / Password / Language ?

@soonahn

soonahn commented Sep 5, 2015

Copy link
Copy Markdown
Contributor Author

Sure thing

@soonahn

soonahn commented Sep 5, 2015

Copy link
Copy Markdown
Contributor Author

Added the username as a placeholder.

@geekgonecrazy

Copy link
Copy Markdown
Contributor

Looks great! Thank you!

@engelgabriel

Copy link
Copy Markdown
Member

Guys, update the username is not that simple. You need to use the method. There are a lot of checking and references that need o be updated together, not just the users collection.

@engelgabriel

Copy link
Copy Markdown
Member

Need to call /packages/rocketchat-lib/server/methods/setUsername.coffee

@soonahn

soonahn commented Sep 5, 2015

Copy link
Copy Markdown
Contributor Author

Setting the username properly. Hopefully good enough!

@soonahn

soonahn commented Sep 5, 2015

Copy link
Copy Markdown
Contributor Author

@engelgabriel updated, anything else missing?

@geekgonecrazy

Copy link
Copy Markdown
Contributor

@soonahn Sorry for the confusion. I thought I had mentioned the use of Meteor.call 'setUsername' method when we initially talked.

Tested this out. (this time with actual messages to make sure those are still changed) Sorry oversight last time. :)

LGTM i'll leave this for @engelgabriel though. :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why TAPi18next.t('project:Username_invalid', username)?
The translation should not be done on the server side, as the client may be using a different language.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still new to Meteor, unsure which pieces fit where. I assumed the client data got passed down and translated then passed back up to the server.

Sorry! I'll read the docs better next time.

engelgabriel added a commit that referenced this pull request Sep 6, 2015
adding the ability to edit usernames
@engelgabriel engelgabriel merged commit 2c87ad8 into RocketChat:master Sep 6, 2015
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.

3 participants