Settings > Items > Material types is no longer visible

Description

Settings > Items > Material types (see: UIIT-36) is now missing from the Settings page.
The material type is relevant when we CRUD item date via link from the Instance Detail page (alpha).

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2
  • 14 Dec 2017, 10:55 AM
  • 13 Dec 2017, 06:24 PM

Checklist

hide

TestRail: Results

Activity

Show:

Cate Boerema January 4, 2018 at 1:23 PM

I think this was fixed. Cannot repro.

Mike Taylor December 14, 2017 at 9:11 PM

For what it's worth, I do not see this problem in my local development copy of Stripes – more's the pity, as if I did then we'd know more about what was causing it. As things stand, I think the multiple-copies hypothesis is likely right: if you go to the browser's development tools, switch to the Sources tab, then hit M-o and search for Paneset.js, there seem to be tenWarning copies.

Mike Taylor December 14, 2017 at 9:09 PM

The logging is fine. When I go to Settings > Items, it shows:

-- (perm) checking perm 'settings.checkout.enabled': true -- (perm) checking perm 'settings.circulation.enabled': true -- (perm) checking perm 'settings.developer.enabled': true -- (perm) checking perm 'settings.items.enabled': true -- (perm) checking perm 'settings.organization.enabled': true -- (perm) checking perm 'settings.users.enabled': true -- (perm) checking perm 'ui-items.settings.loan-types': true -- (perm) checking perm 'ui-items.settings.material-types': true -- (perm) checking perm 'ui-items.settings.loan-types': true -- (perm) checking perm 'ui-items.settings.material-types': true

Which is exactly what we'd expect to see when opening first the settings, then the Items area within that. But immediately after, I get this additional warning on the console. which I think is far more likely to be relevant:

Warning: Failed context type: Invalid context `paneset` of type `t` supplied to `t`, expected instance of `t`. in t (created by t) in t (created by n) in n (created by Connect(n)) [...]

etc.

Unfortunately, this message is obfuscated by the minification that makes the guilty type t. But I've seen such things before. I suspect the root cause is that we have two copies of stripes-components in there: some component is expecting to be passed a <Paneset> from one copy, and gets on from the other copy.

Jakub Skoczen December 14, 2017 at 10:55 AM

Doesn't look like perm issue, unless the logging is buggy.

Cate Boerema December 14, 2017 at 9:17 AM

Is this not caused by UIU-352? Seems related, but that issue is In Review and this problem is still apparent.

Cannot Reproduce

Details

Assignee

Reporter

Labels

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created December 13, 2017 at 4:35 PM
Updated January 4, 2018 at 1:23 PM
Resolved January 4, 2018 at 1:23 PM
TestRail: Cases
TestRail: Runs

Flag notifications