Skip to content

Remove ACC from Weekly Report #14

@slominskir

Description

@slominskir

The metric Accelerator Configuration Change (ACC) was removed from the experimenter timesheets in BTM (JeffersonLab/btm#28), so we need to update Presenter to no longer include ACC in it's calculation of Experimenter's perspective of Accelerator Availability. What is occurring is Presenter attempts to include ACC, and it no longer exists in the data provided by BTM, so the arithmetic result is NaN, and then the slide fails to save due to database constraints enforcing an actual number. Observe the problem in the following annotated screenshot:

Image

The code in question is here (notice array key 'acc-seconds' use, which no longer exists):

accAvail = ((data['abu-seconds'] + data['banu-seconds']) / (hall_sched_seconds - data['acc-seconds']) * 100).toFixed(1);

The Presenter app requests data from BTM, and that JSON data no longer includes acc-seconds. Example request: https://ace.jlab.org/btm/rest/week-summary?week-start=2025-08-13T07

Reported by: moser

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions