-
Notifications
You must be signed in to change notification settings - Fork 76
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
Edit site description directly from /sites/<id>
#2701
Edit site description directly from /sites/<id>
#2701
Conversation
@williamjallen, functionally it seems pretty solid but I have a few questions
|
Any user can claim any site, so tying the description editing to claiming a site (basically, subscribing to notifications and having your name shown in the maintainers list) does not really prevent anyone from doing anything malicious. I think the best way to control this is to control the users who have access to a given CDash system. In the future, it might make sense to have "verified" users who can do things like setting the site description as well as "unverified" users who have read-only access.
The description field is arbitrarily limited to 255 characters in the database. Since the description is set by users while the system information is set at submission time, it doesn't really make sense to link these two things together. As such, I opened #2672 to track splitting these two things apart. I plan to remove the character limit when that happens. Additionally, I plan to add information about the user who made the change to partially address the issues you brought up in your first point. I like the idea of putting a brief message alerting users about the current character limit though.
Hmm, I'm not convinced that preserving whitespace is desirable here. While the idea of drawing ASCII figures is nice, I'm doubtful that many people will want to do it. If we preserve whitespace, the wrapping behavior will have to change to instead add scrollbars if the description field is too small. I think this is meant for a brief description or maybe links to associated resources. Given the small width of the history column, I don't think putting preformatted text there makes sense. |
942cfbb
to
bb2c5fd
Compare
bb2c5fd
to
3b61d58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. I like the max character addition as I much prefer to be stuck typing rather than losing data on save. LGTM!
This PR follows #2680 and moves the "edit site description" functionality to
/sites/<id>
, finishing the last piece necessary to remove the legacy site management page.Before editing:

While editing:

After saving (no page reload):
