Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30940

Fix moment import and rollup build in retention addon

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ADDONS_2021
    • Component/s: Retention
    • Release Notes Summary:
      Retain action now works as expected
    • Sprint:
      nxplatform #58
    • Story Points:
      3

      Description

      In the retention addon for 2021, moment is no properly loaded resulting in errors in the browser console such as:

      main.bundle.js:12648 Uncaught TypeError: u is not a function
          at h._computeMinDate (nuxeo-retention.bundle.js?ts=1647506065869:234:814)
          at V (main.bundle.js:12648:74402)
          at Function._evaluateBinding (main.bundle.js:12648:88771)
          at Object.Y [as fn] (main.bundle.js:12648:72641)
          at M (main.bundle.js:12648:69847)
          at r (main.bundle.js:12648:81749)
          at h._runEffectsForTemplate (main.bundle.js:12648:81904)
          at h._propagatePropertyChanges (main.bundle.js:12648:81651)
          at h._propertiesChanged (main.bundle.js:12648:81181)
          at h._flushProperties (main.bundle.js:12648:62594)
      

      Steps to reproduce:

      • Create an event based rule
      • Attach this rule to a document
      • See the document is under indeterminate retention
      • But the nuxeo-retain-button is not available because of the produce error

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.