Open PanchumarthiAbhinav opened 11 months ago
Don't edit this comment. This comment is managed by Redex for summary and status updates.
"https://github.com/PanchumarthiAbhinav/django-notes-app/issues/5#issuecomment-1846552333"
https://github.com/PanchumarthiAbhinav/django-notes-app/issues/5#issuecomment-1846552975
"https://github.com/PanchumarthiAbhinav/django-notes-app/issues/5#issuecomment-1846555642"
Pull Request link: "https://github.com/PanchumarthiAbhinav/django-notes-app/issues/5#issuecomment-1846560459"
Based on the provided context of the existing codebase for the django-notes-app
, here are some clarifying questions that would help in accurately developing the requirement to add a 'topic' field to the note:
Model Update:
Serializer Update:
api/serializers.py
be updated to include the 'topic' field?API Views and Endpoints:
api/views.py
need to be modified to handle the 'topic' field when creating or updating notes?Frontend Changes:
Database Migrations:
Data Validation:
Testing:
api/tests.py
that need to be updated to account for the 'topic' field?Data Migration:
Permissions and Access Control:
Documentation:
Once these questions are answered, the development of the requirement can proceed with a clear understanding of the scope and specifications.
Add the topic to the already existing note model and keep it as a TextField. This field is optional and can have a maximum length of 20. There is no preferred name for the migration file. Make the necessary changes to the API endpoint to return the topic field, yes it should be included in the list and detail views. Update the NoteSerializer. Create a filter option to search based on 'topic' and it can be partial match. There are no specific constraints except the length allowed. Make changes to the frontend to show the search filter and the topic field. Make the necessary required changes to the repo
The change plan involves updating the Django model to include a new 'topic' field, modifying the serializer and views to handle the new field, and updating the frontend components to display and filter by the 'topic'.
Add an optional TextField 'topic' to the 'Note' model with a max_length of 20.
Update 'NoteSerializer' to include the 'topic' field.
Modify the views to handle the 'topic' field in list and detail views, and add a filter option for 'topic'.
Update the component to display the 'topic' field for each note item.
Adjust the UI to include a field for displaying and editing the 'topic' of a note.
Implement a search filter UI for the 'topic' field and update the state to handle the new filter option.
After implementing the changes, the development team should:
Commands:
Pull Request: Add 'topic' field to Note model and update frontend: https://github.com/PanchumarthiAbhinav/django-notes-app/pull/10
Add a field for 'topic' in the note