Bug #15496


[Workbench] Group membership doesn't work on User admin page

Added by Lucas Di Pentima almost 5 years ago. Updated over 4 years ago.

Assigned To:
Target version:
Story points:
Release relationship:


When clicking user → group or group → user checkboxes, no request is being made to the server. On the Javascript console there's an error that can provide some clue:

0: "Error: no data-permission-uuid established here." 
1: input#group_uuids_
length: 2
__proto__: Array(0)

Subtasks 1 (0 open1 closed)

Task #15498: Review 15496-wb1-group-membership-adminResolved07/26/2019Actions
Actions #1

Updated by Lucas Di Pentima almost 5 years ago

Comparing versions 1.3.3 against 1.4 or master, seems that rails' check_box_tag() template function is ignoring attributes with values being nil, in this case when a checkbox is rendered unchecked, its data-permission-uuid attribute should have "null" as its value, but it isn't there and the javascript click handler returns with the observed error message.

Actions #2

Updated by Lucas Di Pentima almost 5 years ago

Updates at 431f22982 - branch 15496-wb1-group-membership-admin
Test run:

Sets up a default 'x' value on data-permission-uuid instead of relying on rails' tag helper that from rails 5.0 seems to ignore attributes with falsy values.
As we have been having flakyness with the wb1's integration test suite, didn't think it's a good time investment to write a test for this as we're phasing workbench1, but I can do it if necessary.

Actions #3

Updated by Lucas Di Pentima almost 5 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Tom Morris almost 5 years ago

  • Release set to 26
Actions #5

Updated by Ward Vandewege over 4 years ago

  • Release changed from 26 to 27

This was missed on the 1.4.1 release, the commit 431f22982dfee8f4d1c9590b3bce8d36709d5dd9 was not picked onto the 1.4-dev branch prior to the 1.4.1 release.


Also available in: Atom PDF