Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1638

Error on resizing panes

    XMLWordPrintable

    Details

    • Template:
    • Development Team:
      Bienenvolk

      Description

      Update from Slack: https://folio-project.slack.com/archives/C210UCHQ9/p1619077086375300

      Mikita Siadykh Today at 8:38 AM
      **

      Hi everyone
      part of our modules that use PersistedPaneset are broken (including bugfest env) because of release of  @rehooks/local-storage that was done yesterday
      https://github.com/rehooks/local-storage/issues/77
      I've created PR to lock the version https://github.com/folio-org/platform-complete/pull/1219 should fix the issue on hosted-envs

      Overview:

      Some actions in Agreements and Licenses cause a "TypeError". I think this maybe related to pane resizing

      Steps to Reproduce:

      1. Login to https://bugfest-iris.folio.ebsco.com/
      2. Navigate to Agreements and resize the search and sort filter pane - See ERROR

      Other actions also cause error, but I suspect that underneath there might still be a relation to pane resizing

      1. Export the agreement - agreement exports but error shown
      2. OR try to open Tags panel - error shown

      Error is like:

      Error: TypeError: Failed to construct 'CustomEvent': Please use the 'new' operator, this DOM object constructor cannot be called as a function.at new t (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:358:1039563)
      at t.writeStorage (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:358:1039912)
      at Object.onResize (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:358:176898)
      at i.<anonymous> (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:371:508381)
      at fo (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:387:48554)
      at oc (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:387:83585)
      at ps (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:387:101246)
      at t.unstable_runWithPriority (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:395:3844)
      at Ua (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:387:45024)
      at ds (https://bugfest-iris.folio.ebsco.com/20210421-173521/bundle.6e8d03c8d6ba235ee75f.js:387:97718)
      
      in i
      in WithPaneset(i)
      in ForwardRef
      in Ro
      in o
      in withRouter(o)
      in div
      in t
      in t
      in HotKeys-t
      in i
      in jt
      in i
      in i
      in WithConnect(i)
      in S
      in s
      in WithStripes(s)
      in t
      in Y
      in t
      in div
      in Suspense
      in div
      in t
      in t
      in HotKeys-t
      in i
      in t
      in t
      in HotKeys-t
      in i
      in u
      in t
      in h
      in i
      in WithStripes(i)
      in i
      in Dt
      in div
      in o
      in t
      in t
      in main
      in Ba
      in i
      in div
      in hn
      in c
      in WithModules(c)
      in withRouter(WithModules(c))
      in t
      in f
      in t
      in t
      in HotKeys-t
      in t
      in h
      in i
      in WithStripes(i)
      in i
      in injectIntl(i)
      in i
      in IntlProvider
      in l
      in s
      in i
      in c
      in WithModules(c)
      in S
      in i

      Additional Information:

      Also in Licenses e.g.

      Other actions also cause error, but I suspect that underneath there might still be a relation to pane resizing e.g. try to open Tags panel - error shown

      Also causes test failures in CI for ui-agreements and ui-licenses (as originally reported in ERM-1639)

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases