-
Notifications
You must be signed in to change notification settings - Fork 71
🦋 Update Account > Users table #3967
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
Conversation
05d9f63 to
7afa5f5
Compare
|
TL;DR: I'm reverting the sorting feature of this page, it wasn't there in the first place (nobody asked for it) and it turns to be too time-consuming. It can always be added later.
Yes, that's on purpose. The "name" comes from a decorator method that returns "first_name + last_name OR username". Sorting by this method means all records will be loaded into memory and it's not good.
That's how it's supposed to work. In Accounts listing, sorting is not implemented properly (due an early version of me not understanding the differences between The user is not supposed to modify the URL manually. You can also try passing |
b553c9b to
ea77c12
Compare
Well, I have to disagree with this. If Rails protects from "breaking" the DB if the user puts some invalid stuff in the URL - OK, that's something. But I think it's not good. If an incorrect user input results in a 500 error (and a reported exception) - it's bad UX, IMO. The user for example can copy-paste the URL to another tab (and miss or add some characters accidentally in the process), and receiving an Internal Server Error because of this is not nice. |
It's no ideal, it's just a compromise. A user can also tamper with the DOM, remove disabled buttons, submit forms with missing fields, etc. And in most cases it will break the page (because rails or formtastic or whatever framework doesn't take care of that). AFAIK the URL is out of the scope of UX per se, and frontend development don't "have to" take care of that. It's the UI and it's elements what offers and limits the functionality. But I agree with you, it's not good and it shouldn't happen. But it's how rails work and validating url param manually isn't good either. The best solution right now: don't add sorting columns! 😄 |
ea77c12 to
9795577
Compare



THREESCALE-9873: Account Settings > Users > Listing:
Before:

After: