Skip to content

Missing validation for GitHub repository input leads to invalid API calls #27

Description

@A69SHUBHAM

Problem

Currently, the application does not validate the GitHub repository URL before triggering the SDG analysis.

This leads to:

  • Empty submissions being processed
  • Invalid GitHub URLs triggering unnecessary API calls
  • Poor user experience due to unclear errors

Expected Behavior

  • Input should be validated before making API requests
  • Invalid or empty inputs should be blocked
  • Clear error messages should be shown to the user

Proposed Solution

  • Add frontend validation for GitHub URL format
  • Prevent empty submissions
  • Add backend validation as a fallback
  • Display user-friendly error messages

Impact

  • Improves reliability
  • Reduces unnecessary API calls
  • Enhances user experience

Additional Context

I would like to work on this issue and submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions