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

            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo » nuxeo-retention » lts-2021 #28
            NXP-30940: add ftest to check retain action is available (guirenard: 912cdf38ee9372b16e82f90728b7f85ede3817b2)
            NXP-30940: add readme (guirenard: a23a7159474490592ea78906c3f71a02995738ba)
            NXP-30940: remove explicit dependency to moment (guirenard: c524bc7c6f9e2fa321f75c9be93737ae6fd6004b)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo » nuxeo-retention » lts-2021 #28 NXP-30940 : add ftest to check retain action is available (guirenard: 912cdf38ee9372b16e82f90728b7f85ede3817b2 ) NXP-30940 : add readme (guirenard: a23a7159474490592ea78906c3f71a02995738ba ) NXP-30940 : remove explicit dependency to moment (guirenard: c524bc7c6f9e2fa321f75c9be93737ae6fd6004b )

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: