-
Notifications
You must be signed in to change notification settings - Fork 48
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
Error adding user to group #1187
Comments
This should have been resolved with #839, but I can now confirm that I am seeing the buggy behavior in AWS, docker-compose, and local deployments when |
Trying to replicate this in my hyku tenant at https://{xxx}.demo.hydrainabox.org/ Steps to replicate:
It seems like the |
AFAICT, this only fails in |
Confirmed that everything behaves as expect in dev-env. Using firebug inspector, the div markup details are slightly different in prod vs. dev, i.e.
<div class="panel-body">
<form class="simple_form form-inline pull-left js-group-user-search"
action="/users?locale=en"
accept-charset="UTF-8" method="get">
<form class="simple_form form-inline pull-left js-group-user-add"
action="/admin/groups/1/users/add?locale=en"
accept-charset="UTF-8" method="post">
</div>
<div class="panel-body">
<form class="simple_form form-inline pull-left js-group-user-search"
action="/users?locale=en"
accept-charset="UTF-8" method="get">
<form class="simple_form form-inline pull-left js-group-user-add"
action="/admin/groups/1/users/add?locale=en"
accept-charset="UTF-8" method="post" style="display: none;">
</div> So the only difference in this markup is that |
Files involved in this form include: $ git grep -l 'js-group-user-add'
app/assets/javascripts/hyku/groups/add_member.js
app/views/admin/groups/users.html.erb
spec/features/admin_dashboard_spec.rb
spec/views/admin/groups/users.html.erb_spec.rb The JS code is in https://github.com/samvera-labs/hyku/blob/master/app/assets/javascripts/hyku/groups/add_member.js#L2 |
Struggled to get a prod-env running on my laptop to debug this problem. Documented my solution in the wiki at https://github.com/samvera-labs/hyku/wiki/Hyku-Development-Guide#production-debugging-on-laptop and I can now replicate this issue on my laptop. TIP: The chrome developer tools can pretty-print the compiled application.js file and then allow a find to locate the relevant JS function (using a find for |
This might be a red-herring, but the chrome JS console reports an error in the compiled application.js file:
I don't know what impact this is having on the performance of the JS script(s). |
I'm pretty certain that's a red herring. |
There's a JS error in popovers: function() {
$("a[data-toggle=popover]").popover({ // this call to .popover is not a function
html: !0
}).click(function() {
return !1
})
}, This is called from Blacklight.onLoad(function() {
Hyrax.initialize()
}) The JS stacktrace in the chrome console is a bit cryptic in the compressed JS file, i.e.
This JS from |
@darrenleeweber that should be from bootstrap popovers: http://getbootstrap.com/javascript/#popovers That may be missing from the javascript manifest. |
And this should be loaded here: https://github.com/samvera/hyrax/blob/master/app/assets/javascripts/hyrax.js#L16-L17 |
Clueless about how to solve this exactly, because it appears the compressed application.js file does contain some
I have to throw back this issue because I don’t know how to debug and fix it. The JS code in production is obscure, difficult to debug and I haven't found any way to get more information about how the JS versions are packaged by the asset pipeline. I recommend that hyrax/hyku try to adopt new JS packaging options, see
|
…und in ScholarSphere Fixes samvera#1187
Attempting to add a user to a group is resulting in an error.
Steps to replicate:
The error displayed on the UI was
You may have mistyped the address or the page may have moved.
The page where the Add button was clicked: http://testtenant.pilot.hykudirect.org/admin/groups/1/users
The page it sent me to after Add button was clicked: http://testtenant.pilot.hykudirect.org/admin/groups/1/users/add?locale=en.
It doesn't look like Honeybadger captured this issue.
According to discussion on standup call on 6/1, the user ID field should not be displayed in the UI. The process of adding a user to a group should be:
The text was updated successfully, but these errors were encountered: