Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Handling Isolation Properly for issue "Feat: Accessing Images directly from the selected folder for AI Tagging. #209" #210

Closed
2 tasks done
Jibesh10101011 opened this issue Jan 5, 2025 · 1 comment · Fixed by #371

Comments

@Jibesh10101011
Copy link
Contributor

Jibesh10101011 commented Jan 5, 2025

Describe the feature

Keeping in mind of these three anomalies of a Database Management System:

  1. Insertion
  2. Update
  3. Deletion

This project will be isolated in such an efficient way that making changes directly in the PictoPy application or the actual folder will not cause any issues with our application.

Implementation Idea

Insertion Anomaly

When creating an image, PictoPy stores thumbnails in the images/PictoPy.thumbnails folder instead of the actual folder. This ensures that there is no additional folder associated with PictoPy within the base folder.

Deletion Anomaly

  1. Application Side : When users want to delete an image, they receive an alert asking whether they want to delete it from the actual folder or only from the PictoPy database. If they choose to delete it only from the database, the image will be removed from the database while remaining in the actual folder. Otherwise, it will be deleted from both the database and the actual folder.

  2. User Side : If users manually delete images from the actual folder without removing them from the PictoPy application, a scheduled algorithm will run at regular intervals (e.g., every 24 hours). This algorithm will check whether any file paths stored in the database correspond to deleted images in the actual folder. If such images are found, they will also be removed from the database.

    Since the scheduled algorithm runs periodically, PictoPy will continue displaying the image's thumbnail stored in PictoPy.thumbnails until it is processed. Additionally, a warning will be displayed alongside the image, indicating that it has been deleted from the actual folder.

Update Anomaly

Edited images will be stored in a separate folder: images/edited_images.

This approach helps in isolating the entire application efficiently.

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
@Jibesh10101011
Copy link
Contributor Author

@Pranav0-0Aggarwal , I and @rahulharpal1603 have discussed about this problem ,now we would like to work on this problem differently @rahulharpal1603 will be working on the #209 and myself in this problem

Can you please assign this to me ?

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 a pull request may close this issue.

1 participant