Skip to content

Conversation

@arpandhakal
Copy link
Collaborator

Changes

  • All changes related to feature/api-improvements go here.

@arpandhakal arpandhakal self-assigned this Jan 20, 2026
@vercel
Copy link
Contributor

vercel bot commented Jan 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview, Comment Feb 10, 2026 6:47am

Request Review

- created a separate RealtimeTemplatesHandler class with all the methods to entertain templates realtime logic.
- cleaned the RealtimeTemplates HOC to only points to relevant methods in the RealtimeTempaltesHandler class.
- created a separate service file name public.service for tasks
- created a separate abstract service which inherits base service and extended by PublicTasksService and TasksService. This file contains all the utilities shared by both of the services.
- changed methods in public.controller for tasks
- refactored tasks service
…rom both services using the template pattern
- All the comments endpoint, list comments, retrieve comments and deleted comments paths have been changed not requiring task/{taskId} anymore.
- The new comments public url goes something like : {{url}}/api/comment/public?token for list and {{url}}/api/comment/public/{{id}}?token for retrieve and delete.
- Added a security mechasim of checking task access scope directly in comments.findMany() filters instead of traversing comments.
…on public API response. Removed images tags, attachment tags and empty paragraph tags
- Added a sanitize fileName function which strips off any uuids in the beginning of a file.
- The above method is not very ideal because an original fileName could contain a UUID but this a the case im considering right now.
- To prevent any of this in the future, create an extra flow to store originalFileName in the metadata of the uploaded file. While creating an attachment entry from that file, used the originalFileName metadata property to extract a clean file name.
…lder comments which had the property as null
…s and cus on array on backfill initiator type script for comments
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.

4 participants