Skip to content

Multiple bug fixes across extension and CLI #787

Description

@aadityakumarsah

Description

The following bugs have been identified during codebase analysis:

  1. Persistent Input Field Bug (Storage Fallback Failure)
    In src/scripts/scrumHelper.js, when a user manually clears project name or access tokens from the extension UI, the logic incorrectly falls back to the previously stored value, making it impossible to delete or clear these inputs once set.

  2. Broken Platform-Specific Report Cache
    In src/scripts/scrumHelper.js, the report writer only sets a generic lastScrumReportHtml cache key, instead of the expected platform-specific keys (githubLastScrumReportHtml / gitlabLastScrumReportHtml), breaking caching isolation when switching platforms.

  3. Unauthenticated Org Validation on GitHub
    In src/scripts/githubHelper.js, the validateOrgOnBlur function validates organization existence using an unauthenticated API call. This results in stricter rate limits and fails to validate private organizations (returning 404).

  4. Excessive Disk I/O & Storage Throttling
    In src/scripts/main.js, event listeners are saving values to chrome.storage.local on every keyup event, causing high I/O overhead and potential storage API rate-limiting errors.

  5. Rust Tutorial Code Mismatch (src/main.rs)
    The --count argument is registered as a string option but is being mistakenly parsed as a positional argument, leading to errors.

Solution

  • Fixed logic in scrumHelper.js to correctly check if DOM inputs exist and set values directly.
  • Updated scrumHelper.js to save platform-specific cache keys.
  • Updated githubHelper.js to include the GitHub Token in the Authorization header during org validation.
  • Changed keyup events to change / blur events in main.js.
  • Fixed the --count argument parsing logic in src/main.rs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions