[SE-5328] get_rotations_users throwing IndexError: list index out of range
Story
"As a sprint planning manager, I want to be able to complete the current sprint and start the next sprint, so that my cell gets the benefits of all the automation these steps perform."
Full description
Falcon's attempt to complete Sprint 265 resulted in 2 errors, both occurring at the same place in the code:
sprintcraft.dashboard.tasks.create_role_issues_task({'key': 'FAL', 'name': 'Falcon', 'board_id': 45}, 605, 267)
sprintcraft.dashboard.tasks.trigger_new_sprint_webhooks_task('Falcon', 'FAL.266 (2022-02-08)', 266, 45)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 405, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 697, in __protected_call__
return self.run(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py", line 197, in _inner
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/_compat.py", line 54, in reraise
raise value
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/celery.py", line 192, in _inner
return f(*args, **kwargs)
File "/app/sprintcraft/dashboard/tasks.py", line 133, in create_role_issues_task
rotations = get_rotations_users(str(sprint_number), cell['name'])
File "/app/sprintcraft/dashboard/libs/google.py", line 163, in get_rotations_users
if column[row]: # type: ignore
IndexError: list index out of range
Completion criteria
- Altered code or guidelines for completing the rotation spreadsheet which avoids this error.
Documentation updates & improvements criteria
- If procedures need to change, please document the required steps.
Edited by Piotr Surowiec