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

Make @Deploy @Repeatable and handle it

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.1
    • Component/s: Runtime, Tests
    • Tags:
    • Upgrade notes:
      Hide

      Usage of @Deploy has been made easier.

      Before

      @Deploy(

      { "org.nuxeo.runtime.metrics", "org.nuxeo.ecm.platform.audit.api", "org.nuxeo.ecm.core.persistence", "org.nuxeo.ecm.platform.audit", "org.nuxeo.ecm.platform.uidgen.core", "org.nuxeo.elasticsearch.core" }

      )

      After

      @Deploy("org.nuxeo.runtime.metrics")
      @Deploy("org.nuxeo.ecm.platform.audit.api")
      @Deploy("org.nuxeo.ecm.core.persistence")
      @Deploy("org.nuxeo.ecm.platform.audit")
      @Deploy("org.nuxeo.ecm.platform.uidgen.core")
      @Deploy("org.nuxeo.elasticsearch.core")

      Show
      Usage of @Deploy has been made easier. Before @Deploy( { "org.nuxeo.runtime.metrics", "org.nuxeo.ecm.platform.audit.api", "org.nuxeo.ecm.core.persistence", "org.nuxeo.ecm.platform.audit", "org.nuxeo.ecm.platform.uidgen.core", "org.nuxeo.elasticsearch.core" } ) After @Deploy("org.nuxeo.runtime.metrics") @Deploy("org.nuxeo.ecm.platform.audit.api") @Deploy("org.nuxeo.ecm.core.persistence") @Deploy("org.nuxeo.ecm.platform.audit") @Deploy("org.nuxeo.ecm.platform.uidgen.core") @Deploy("org.nuxeo.elasticsearch.core")
    • Story Points:
      1

      Description

      Allow to use multiple @Deploy("blabla"), @Deploy("blibli") meaning the same as @Deploy({"blabla", "blibli"})

      This syntax sugar is preliminary of depreciation of @LocalDeploy and removal of its usage.

      For instance, currently we have: (note: sometimes we had comment to break line after each deploy value)

      @Deploy({ "org.nuxeo.runtime.metrics", "org.nuxeo.ecm.platform.audit.api", "org.nuxeo.ecm.core.persistence",
              "org.nuxeo.ecm.platform.audit", "org.nuxeo.ecm.platform.uidgen.core", "org.nuxeo.elasticsearch.core" })
      public void testMethod() {}
      

      After we'll have:

      @Deploy("org.nuxeo.runtime.metrics")
      @Deploy("org.nuxeo.ecm.platform.audit.api")
      @Deploy("org.nuxeo.ecm.core.persistence")
      @Deploy("org.nuxeo.ecm.platform.audit")
      @Deploy("org.nuxeo.ecm.platform.uidgen.core")
      @Deploy("org.nuxeo.elasticsearch.core")
      public void testMethod() {}
      

      Which makes the thing a bit clearer.

      Note: former usage is still available.

        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 - 1 hour Original Estimate - 1 hour
                  1h
                  Remaining:
                  Time Spent - 1 day Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 1 day Remaining Estimate - 1 hour
                  1d

                    PagerDuty

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