Skip to content

update Command Fails with Valid Attendee Indexes #3

Description

@bbryant824

Bug Report: update Command Fails with Valid Attendee Indexes

Title: update command incorrectly displays "Attendee index out of bounds" error for valid attendee indexes.


Steps to Reproduce

  1. Launch LegacyLink.
  2. Ensure there are at least 3 events in the event book and at least 2 contacts in the address book.
  3. Enter the following command:
    update -i 3 -n New Year's Party -sd 2025-01-01 -ed 2025-01-02 -a 1 2 -l Marine Parade Road #12-34

Expected Behavior

  • The third event should be updated successfully with the provided details.
  • The first two contacts should be added as attendees to the event.

Actual Behavior

  • The command fails with the error message:
    Attendee index out of bounds.

Severity

severity.Medium


Type

type.FunctionalityBug


Why This Is a Problem

  • Core Functionality Issue: Users cannot update events with valid attendees, undermining the event management functionality.
  • Incorrect Validation Logic: The app misinterprets valid attendee indexes as invalid, restricting normal operations.
  • User Frustration: Users are blocked from performing basic tasks, potentially leading to confusion and dissatisfaction.

Suggestions for Improvement

  1. Fix the attendee index validation logic to ensure it correctly checks against the existing contact list.
  2. Improve error messages to provide more specific feedback, such as identifying which index is considered out of bounds.
  3. Add test cases to verify that valid attendee indexes are accepted by the update command.

Screenshot 2024-11-08 at 5.39.56 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