Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-97665 [Performance] View process velocity
  3. LPS-99038

[BUG] For the time unit calculation, the velocity filter should consider week as 7 days, month as 30 days and year as 365 days instead of dynamically calculate the time unit

Details

    Description

      Summary:
      Velocity filter result should be the count of all instances completed in a given period divided by a given time unit instead of dynamically calculate the time unit

      Steps to reproduce:

      1. Set the server date to Jul 27, 2019.
      2. Associate Single Approver workflow process to a Web Content
      3. Complete 3 Web content instances
      4. Go to Control Panel > Workflow > Metrics > Single Approver > Performance
      5. On Completion Velocity, set the filters to Last 90 Days > Inst/Month
      6. Observe the result is 0.75 instead of 1.

      Actual result: When the timeframe involves months with less than 30 days, the whole month is considered in the count, but it shouldn't. In this scenario above, it considered 90 days as having 4 months. 

      This scenario is observed in inst/week, inst/month and inst/year velocity options

      Expected result: For the time unit calculation, the velocity filter should consider week as 7 days, month as 30 days and year as 365 days instead of dynamically calculate the time unit. In the example above, we would have (3 instances / 90 days) * 30 (month) = 1.

      Environment:
      Liferay DXP master-private http://192.168.109.41:7300/
      Commit: 7727b8b9ecebdc46e0b8258826ac15cc619d462d
      Updated on: Mon Jul 29 10:39:33 2019 -0700 

      Attachments

        Activity

          People

            brian.chan Brian Chan
            dennys.barros.1 Dennys Barros.1 (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 9 weeks, 2 days ago

              Packages

                Version Package