-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Certainly! Here's your feedback with numbering and bolding:
-
Song Removal in songs.py:
- The
remove_songfunction in songs.py currently removes a song from the available options but not from playlists that added it before. Consider adding functionality to remove it from playlists as well to maintain consistency.
- The
-
Validating Links in songs.py:
- In the
add_songfunction, which takes a link as a parameter, it's crucial to implement a validation mechanism to ensure that the link is valid and leads to the intended platform. This can help prevent issues with incorrect or malicious links.
- In the
-
Removing the 'platform' Column in users.py:
- Eliminating the 'platform' column in users.py could align with the product mission. Since certain songs are exclusive to specific platforms, consider handling platform-specific logic elsewhere to enhance simplicity.
-
user_playlist_position Purpose:
- Clarify the purpose of the
user_playlist_positiontable in your database schema. Understanding its role is essential for maintaining and evolving the codebase.
- Clarify the purpose of the
-
Security Concerns in create_user:
- Express concern about security when creating a user, as the password is visible in the request URL. Suggest exploring secure methods like using HTTPS and ensuring sensitive information is not exposed in the URL.
-
Password Hashing in create_user:
- Consider storing passwords as hashes instead of using a salt. This enhances security by protecting user passwords even if the database is compromised.
-
Valid User Requirement for Adding Songs:
- Clarify whether being a valid user is a prerequisite for adding songs to the playlist. If so, enforce appropriate user validation checks in the code.
-
Handling Playlists on User Deletion:
- Discuss the decision to either delete or save playlists associated with a user when they delete their profile. The choice depends on your product's user experience goals.
-
Error Handling and 'one_or_none()':
- Implement error checking, especially in places where the code may fail. The use of 'one_or_none()' is a good practice, but ensure it's complemented by robust error handling mechanisms.
-
Documentation on Playlist Platform Consistency:
- Consider adding documentation explaining that if songs in a playlist are from different platforms, there might be skipping or handling based on the primary platform.
-
Readable Queries and Testing:
- Great readable queries that have the ability to be tested and decoupled.
-
Positive Outlook:
- Overall great code and great vision for the project. This is just the start of the project and I can’t wait til yall get everything set and ready :)
Your attention to these considerations will contribute to the continued improvement and success of your project. Best of luck with its development!
Metadata
Metadata
Assignees
Labels
No labels