Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4959

Warn user about delete/undelete transition usage

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: Life Cycle

      Description

      Context

      Since NXP-25761, we deprecated deleted lifecycle state.
      When a Nuxeo instance uses the new trashed boolean, it is no longer possible to follow delete/undelete transition.

      Things are handled correctly in 10.3 but in 10.2 we can end up with both documents in deleted state and documents using the trash service, which is bad.

      Improvement

      We want to warn user about usage of these transitions and lifecycle state when he's using a 10.2 instance (properly handled since 10.3 + deprecated but problematic in 10.2).
      As this is true for new instance or migrated instance, we may want to display it in such cases if possible.

      Acceptance criteria

      In 10.2 when a lifecycle contains at least one of these:

      • the deleted state
      • the delete transition
      • the undelete transition

      a warning is displayed on the feature:

      If you migrated to the new trash service, deleted state and corresponding transitions should not be used in 10.2. See [how to update your configuration](https://doc.nuxeo.com/studio/how-to-migrate-trash-configuration in a new page) to prevent errors at runtime.

      In 10.3+ in the same conditions the following message is displayed:

      Deleted state and corresponding transitions are deprecated since 10.3 / LTS 2019. We recommend [updating your configuration](https://doc.nuxeo.com/studio/how-to-migrate-trash-configuration in a new page) to prevent warnings at runtime if you upgraded to the new trash service.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d