Skip to content

View_teams command indexing starts from zero unlike all other commands which start from 1 #14

@marcus-ny

Description

@marcus-ny

Detailed Description:

When calling /view_teams index/ module/<> tutorial/<>, the index is zero based unlike other commands which were all 1-indexed.

Steps to reproduce:

Prerequisite: Have a module and a class (example: ACC1701X T03)

  1. /add_team module/ACC1701X tutorial/T03 name/T1
  2. /add_team module/ACC1701X tutorial/T03 name/T2
  3. /view_teams index/2 module/ACC1701X tutorial/T03 (User wishes to see members in the second team in the list)

Expected output: User should be able to see details of team T2 since by index, T2 is the second team.

Actual output: Index out of range.
Screenshot 2024-04-05 at 6.55.09 PM.png

More details: Using /view_teams index/1 module/ACC1701X tutorial/T03 returns the correct output and shows T02, indicating that zero indexing is used here.
Screenshot 2024-04-05 at 6.56.34 PM.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions