Skip to content

bug: double plus encoding in search query #400

@praaatap

Description

@praaatap

Bug Description

There are two critical logic errors in how the GitHub Search API queries are constructed in scrumHelper.js:

  1. Double Plus Encoding: When an organization is specified, the query adds an extra + sign resulting in ++org%3A{orgName}. This is malformed syntax for the GitHub API.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Open settings.
  2. OR enable "Use Repository Filter" and select a repository name.
  3. Click "Generate Report".
  4. Check in Network tab of chrome dev tools to see the malformed query.

Expected Behavior

  1. The organization query should be correctly formatted with a single +.

Additional Context

The fix involves ensuring orgPart does not have a leading + before being concatenated.


Contribution Checklist

  • I have searched existing issues to ensure this bug hasn't been reported
  • I have provided clear reproduction steps
  • I have included relevant environment details
  • I have described both expected and actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions