Skip to content

refactor: remove uuid dependency and update checklist/item creation q…#7

Merged
pikann merged 1 commit into
masterfrom
fix/fix-duplicated-uuid-error
Jun 17, 2026
Merged

refactor: remove uuid dependency and update checklist/item creation q…#7
pikann merged 1 commit into
masterfrom
fix/fix-duplicated-uuid-error

Conversation

@pikann

@pikann pikann commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the github.com/google/uuid dependency (go.mod / go.sum) — ID generation is now delegated to PostgreSQL.
  • Refactors createChecklist and createItem to use INSERT … RETURNING id (via db.Query) instead of generating a UUID client-side.
  • Fixes a bug in ChecklistsSection.tsx where the PATCH URL for renaming a checklist was missing the /projects/:projectId prefix, causing the request to hit the wrong route.

Test plan

  • Create a checklist and confirm the response contains the database-generated id.
  • Create a checklist item and confirm the response contains the database-generated id.
  • Rename a checklist and verify the PATCH request is sent to /projects/:projectId/tasks/:taskId/checklists/:id.
  • Confirm go.mod no longer lists github.com/google/uuid.

@pikann pikann merged commit 40d5bcb into master Jun 17, 2026
4 checks passed
@pikann pikann deleted the fix/fix-duplicated-uuid-error branch June 17, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant