[Jitera] Untitled (4)
Created by: akuita
This pull request is created by JITERA
Description
[BL] Validate todo item details
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/models/todo.rb | Add validations for "title" uniqueness and "due_date" conflicts in the Todo model |
| /akuita-awesome-todo-15e12f8a/config/locales/validation.en.yml | Add error message for schedule conflict in the locale file |
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Handle validation errors in the TodosController |
[BL] Handle todo creation errors
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add error handling for todo creation in TodosController |
| /akuita-awesome-todo-15e12f8a/app/jobs/application_job.rb | Add retry logic for jobs related to todo creation |
| /akuita-awesome-todo-15e12f8a/app/models/todo.rb | Add custom validation for Todo model to ensure data integrity |
| /akuita-awesome-todo-15e12f8a/config/locales/controller.en.yml | Add a new error message for todo creation failure |
| /akuita-awesome-todo-15e12f8a/app/controllers/application_controller.rb | Add a method to log errors |
[BL] Associate todo with categories
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todo_categories_controller.rb | Add "associate_with_category" action to "TodoCategoriesController" |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for "associate_with_category" action in "TodoCategoriesController" |
| /akuita-awesome-todo-15e12f8a/app/serializers/todo_category_serializer.rb | Create "TodoCategorySerializer" to format the response of the association |
| /akuita-awesome-todo-15e12f8a/config/locales/controller.en.yml | Add success message for associating todo with category |
| /akuita-awesome-todo-15e12f8a/app/models/todo_category.rb | Add validation to ensure uniqueness of todo and category association |
[BL] Attach files to todo item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/attachments_controller.rb | Add "create" action to "AttachmentsController" to handle file uploads and create attachment records |
| /akuita-awesome-todo-15e12f8a/app/services/attachment_service/create.rb | Implement the "AttachmentService::Create" to handle file validation, storage, and record creation |
| /akuita-awesome-todo-15e12f8a/app/models/attachment.rb | Ensure "Attachment" model has necessary associations and validations |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for attachments "create" action |
| /akuita-awesome-todo-15e12f8a/db/migrate/1705529674374_create_attachments.rb | Add a migration to create the attachments table with necessary fields |
| /akuita-awesome-todo-15e12f8a/app/serializers/todo_serializer.rb | Add attachments association to TodoSerializer |
| /akuita-awesome-todo-15e12f8a/app/jobs/todo_error_logging_job.rb | Update TodoErrorLoggingJob to handle attachment errors |
[BL] Create new todo item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "create" action to "TodosController" to handle new todo item creation |
| /akuita-awesome-todo-15e12f8a/app/models/todo.rb | Add validations for new todo item fields |
| /akuita-awesome-todo-15e12f8a/app/services/attachment_service/create.rb | Implement "create" method in "AttachmentService::Create" to handle file processing |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for creating new todo items |
| /akuita-awesome-todo-15e12f8a/app/models/todo_category.rb | Add association between Todo and Category models |
| /akuita-awesome-todo-15e12f8a/app/models/todo_tag.rb | Add association between Todo and Tag models |
| /akuita-awesome-todo-15e12f8a/db/migrate/1705537607812_create_todo_tags.rb | Create migration to add "todo_tags" table |
| /akuita-awesome-todo-15e12f8a/db/migrate/1705529674374_create_attachments.rb | Update migration to handle attachments for todos |
| /akuita-awesome-todo-15e12f8a/app/serializers/todo_serializer.rb | Update TodoSerializer to include category, tags, and attachments |
| /akuita-awesome-todo-15e12f8a/db/migrate/1705537853237_create_todo_tags.rb | Create migration for todo_tags join table |
[API] Handle Todo Creation Errors
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "log_todo_creation_error" action to "TodosController" |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for "log_todo_creation_error" action in "TodosController" |
[API] Validate Todo Item Details
| file | name |
|---|---|
| /app/controllers/api/todos_controller.rb | Add "validate" action to "TodosController" to validate todo item details |
| /config/routes.rb | Add route for "validate" action in "TodosController" |
[API] Associate Todo with Categories
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todo_categories_controller.rb | Create TodoCategoriesController with associate action |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for TodoCategoriesController#create |
[API] Attach Files to Todo Item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/attachments_controller.rb | Create AttachmentsController with create action |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for attachments#create action |
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "attach_files" action to "Api::TodosController" |
[API] Create Todo Item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "create" action to "TodosController" to handle todo creation |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for creating a todo item |
| /akuita-awesome-todo-15e12f8a/app/models/todo.rb | Ensure Todo model has necessary validations |
| /config/routes.rb | Add route for create action in TodosController |
[API] Create New Todo Item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "create" action to "TodosController" to handle new todo creation |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for creating a new todo item |
| /config/routes.rb | Add route for creating a new todo item |
[BL] Assign category to todo item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todo_categories_controller.rb | Add "associate_with_category" action to "TodoCategoriesController" |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for "associate_with_category" action in "TodoCategoriesController" |
| /akuita-awesome-todo-15e12f8a/app/serializers/todo_category_serializer.rb | Create "TodoCategorySerializer" to format the JSON response for the association |
| /akuita-awesome-todo-15e12f8a/app/serializers/todo_serializer.rb | Add category serialization to "TodoSerializer" |
| /akuita-awesome-todo-15e12f8a/app/models/todo_category.rb | Ensure TodoCategory model has necessary associations and validations |
| /akuita-awesome-todo-15e12f8a/app/models/category.rb | Add method to check if category exists and belongs to user |
| /config/routes.rb | Add route for assigning category to todo item |
[BL] Assign tags to todo item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/models/todo.rb | Add association for tags in Todo model |
| /akuita-awesome-todo-15e12f8a/app/models/tag.rb | Create Tag model with necessary associations |
| /akuita-awesome-todo-15e12f8a/app/models/todo_tag.rb | Create TodoTag model to join todos and tags |
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add action to assign tags to a todo item |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for assigning tags to a todo item |
| /db/migrate/1705537635215_create_todo_tags.rb | Create migration for todo_tags join table |
| /akuita-awesome-todo-15e12f8a/db/migrate/1705537749794_create_todo_tags.rb | Create migration for todo_tags table |
| /akuita-awesome-todo-15e12f8a/db/migrate/TIMESTAMP_create_tags.rb | Create migration to generate tags table |
| /akuita-awesome-todo-15e12f8a/db/migrate/TIMESTAMP_create_todo_tags.rb | Create migration to generate todo_tags join table |
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todo_tags_controller.rb | Create TodoTagsController with create action |
[API] Assign Tags to Todo Item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "assign_tags" action to "TodosController" to handle tag assignment to a todo |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for "assign_tags" action in "TodosController" |
[API] Assign Category to Todo Item
| file | name |
|---|---|
| /akuita-awesome-todo-15e12f8a/app/controllers/api/todos_controller.rb | Add "associate_with_category" action to "TodosController" |
| /akuita-awesome-todo-15e12f8a/config/routes.rb | Add route for "associate_with_category" action in "TodosController" |