Ticket #10753 (closed enhancement: wontfix)

Opened 5 months ago

Last modified 5 months ago

Show a TracError when 'Remove selected accounts' is submitted with no checkboxes selected

Reported by: rjollos Assigned to: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: web-UI
Cc: Trac Release:

Description (Last modified by rjollos)

Following the common convention in Trac, show a TracError when Remove selected accounts is submitted with no checkboxes selected. Following the commit of the patch in #10745, this will only be useful when JavaScript is disabled, since the patch implements the behavior that the buttons are disabled until at least one checkbox is selected.

Originally mentioned in #10745.

Attachments

t10753-r12507-1.patch (1.8 kB) - added by rjollos on 01/04/13 19:18:12.
Patch against r12507 of the trunk.

Change History

01/04/13 15:50:56 changed by rjollos

  • description changed.

01/04/13 19:18:12 changed by rjollos

  • attachment t10753-r12507-1.patch added.

Patch against r12507 of the trunk.

01/04/13 19:24:25 changed by rjollos

The code is patterned after admin.py in the Trac core. I considered having the text read No user(s) selected., but didn't want to make things too odd for translators.

(in reply to: ↑ description ; follow-up: ↓ 4 ) 01/04/13 20:31:14 changed by hasienda

  • keywords set to web-UI.

Replying to rjollos:

Following the common convention in Trac, show a TracError when Remove selected accounts is submitted with no checkboxes selected.

Hm, I think, this assertion is not quite right. At least Trac is inconsistently handling similar situations. Push 'Apply Changes' on the same panel - nothing happens. Same for the plugin admin panel. Doesn't feel similar enough? How about 'Remove selected items' in permission admin panel? While it certainly looks like a similar situation, with no selection on POST it does just nothing.

I always felt, not to jump at the user with an error in such non-fatal situations, was more of a feature. If it's possible to POST without selection, it should be treated rather gracefully, no? Different situation, if you disabled the button, and someone still manages to go around it and still POST without selection.

Although I would agree to add a warning on inappropriate actions. What do you think?

(in reply to: ↑ 3 ) 01/04/13 20:37:58 changed by rjollos

Replying to hasienda:

Hm, I think, this assertion is not quite right. At least Trac is inconsistently handling similar situations. Push 'Apply Changes' on the same panel - nothing happens. Same for the plugin admin panel. Doesn't feel similar enough? How about 'Remove selected items' in permission admin panel? While it certainly looks like a similar situation, with no selection on POST it does just nothing.

Good points.

I always felt, not to jump at the user with an error in such non-fatal situations, was more of a feature. If it's possible to POST without selection, it should be treated rather gracefully, no? Different situation, if you disabled the button, and someone still manages to go around it and still POST without selection. Although I would agree to add a warning on inappropriate actions. What do you think?

After reading what you've had to say on the issue, I tend to think #10745 is enough, and maybe there is nothing that needs to be done for this ticket.

01/04/13 20:54:48 changed by hasienda

If you continue to feel so tomorrow, I'd welcome you're closing this ticket yourself. And your hint on #10745 is certainly another good reason for doing so.

01/06/13 17:05:34 changed by rjollos

  • status changed from new to closed.
  • resolution set to wontfix.

The positive reinforcement of a successful change provided by #10684 is further reason for closing this. Also, I don't like landing on a TracError page and having to click the back button.

Now that we've discussed, I'd almost rather favor changes to the Trac core for pages such as Admin > Components so that a TracError is not raised. There too though, that change would be less important following the addition of some JavaScript (t:#10994).


Add/Change #10753 (Show a TracError when 'Remove selected accounts' is submitted with no checkboxes selected)




Change Properties
Action