Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Line OEE calculation changes for line summary

Goal:

  • Two linesummary queries currently just use the line machine's oee. It needs to be changed so that when the requests are made, it will use line oee calculations instead.

  • in the returned data of api/linesummary/currentshift?areaid=2 also return total and scrap of the line.

Queries:

  • api/linesummary/prevshifts

  • api/linesummary/currentshift

Expected Output:

  • oee of each shift data should use line calculation instead of line machine's oee

  • oee of currentshift output should use line calculation instead of line machine's oee

  • **Note as per standard JSON output values of 0 will not be outputted (this is also true for nulls)

Expected Output of scrap:

Code Block
currentShift: {
  shiftName: “Day”,
  oee: 0.77,
  startDate: “20200220T070000.000“,
  endDate: “20200220T190000.000“,
  scrap: 1337,
  total: 9001
}

...

New Settings Options for LineSummary view

Goal:

  • Adding the following UI settings to the linesummary view

  • Apply layout data or not to the doughnut component

  • Hide Goal gauge

  • Goal targets

  • Shift statistics from shiftpace view (Uptime, Remaining, Elapsed, and Production)

Approach:

  • Mock up can be found in the epic's spec.

  • Layout View option will lead to following behaviours

    • GRID: do not pass the layout data to doughnut component even if received from backend

    • Layout: same as current

    • Hide: skip rendering the doughnut component completely

  • Hide Goal: just a boolean setting to skip rendering in the gauge. Leave empty space if hidden.

  • Goal targets will be applied to the SummaryGauge component, which currently receives it's default goal target values from the store. Strip the default target values out of the store, and merge the target values from the setting / splat with the data from getCurrentShiftSummary() in the render function to create a new "dataset" prop object. This will leave the child component (SummaryGauge) untouched.

  • Copy and Pasta SHIFT STATISTICS sections of the code from shiftpace view. Once the settings are done, passing the values to the children components will be done automatically due to splat passing that's already implemented.

Risk:

  • when the doughnut is not rendered in, create an empty space equivalent to the space that the component would have taken. Follow up cards will be made to deal with the spacing.

  • Use "Hide Goal" (same as other views) instead of "Hide OEE" (as stated in the spec) for consistency that can be dealt with translation function. Same goes to "Goal Target" instead of "OEE Target"

  • dataset prop of SummaryGauge still require a percent value for the targets (which is omitted for this view). Include a default value of 1.

  • Enabling extra data from SHIFT STATISTICS will make doughnut display even smaller text than before. This will be dealt with in the future.

...

Important Note on Scrap Edit

Note

Customers in Groups 1 and 2 are using the updated Scrap Edit dialogue box.

Customers in Group 3 are still toggled on the OLD scrap edit dialogue box.

However, IAC servers in Group 3 ARE on the new Scrap Edit dialogue box.