Skip to content

"Failed to create goal" error on dashboard when creating weekly commit goals [GSSoC-26] #979

@durgasravan21-prog

Description

@durgasravan21-prog
Image An error occurs during the GSSoC contribution window when trying to set up a new weekly commit goal on the dashboard. After entering the goal parameters and clicking the "Add goal" button, the dashboard surfaces a red error message: *"Failed to create goal. Please try again."* The goal fails to persist or update the UI.

To Reproduce

  1. Navigate to the DevTrack Dashboard page (/dashboard).
  2. Scroll down to the Goals component.
  3. Input the goal details (e.g., Title: m, Target: 05, Unit: Commits, Recurrence: Weekly).
  4. Click on the [Add goal] button.
  5. Notice the error message "Failed to create goal. Please try again." appearing beneath the submission button.

Expected Behavior

The commit goal should be successfully instantiated, the form should clear, and an automated tracking item linked to the contributor's GitHub activity should appear.

Environment & Context

Additional Context

This blocks participants from setting up trackable metrics directly on their dashboards during active evaluation periods. Likely tied to a backend validation layer mismatch or an unhandled exception on the POST request to the goals endpoint.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions