xgeekshq / split

SPLIT - Retrospectives at scale
MIT License
43 stars 10 forks source link

[BUG]: Cron Job adds sub-team #1462

Closed CatiaAntunes96 closed 1 year ago

CatiaAntunes96 commented 1 year ago

Description

When you create a split board with the xgeeks team, a schedule is created automatically. In this schedule, the maximum number of users is stored, which will allow the calculation of the number of sub-teams to be created in the next cron job. However, at this point, we are storing a rounded integer. This rounding means that the result of the calculations performed in BE, give an incorrect number of teams to be created. To prevent this from happening, we should store a float number with 2 decimal places and only round the number on the final calculation of the number of teams.

Steps to reproduce

Expected result

When the cron job runs, it should create a retro with 4 sub-teams.

Actual result

It's creating 5 sub-teams