42atomys/stud42

fix: incorrect freePlacesPerCluster on Vienna campus

Closed this issue · 2 comments

42lan commented

Describe the bug

The number of freePlacesPerCluster is incorrect on Vienna campus.

I suppose that occupiedWorkspace does not return a correct value, hence the negative number of freePlacesPerCluster.

Screenshot from 2023-04-05 09-42-03

To Reproduce

  1. Open s42.app
  2. Select a Vienna cluster

Expected behavior

The expected behavior is the correct evaluation of freePlacesPerCluster().

Relevant log output

No response

Version of software

v0.22.3

Environment

Live (https://s42.app)

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

@42lan Hi, thanks for your report !
Effectively the count is broken due to a backend issue with webhooks received in the past. I put this issue for the next minor release, if I have time to fix that before release :)

Manual operation are done on each campus to fix invalid locations, a long-term fix in on the way!