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

#108-implement-soft-delete-mechanism-for-media #115

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

radthenone
Copy link
Collaborator

No description provided.

…rofile services, one prepare image to add and update, second delete profile image. Image formats are in jpeg format only in minio. But accepts all images standards
…ad app processes and create simple add_task method to delay image remove by 30min
@radthenone radthenone requested a review from kwiats March 8, 2024 23:01
@radthenone radthenone linked an issue Mar 8, 2024 that may be closed by this pull request
logger = logging.getLogger(__name__)


def delay_time(time_string="0.2s"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should add docstring there

Comment on lines 21 to 26
def delayed_task():
if delay:
delay_time(delay)
func(*args, **kwargs)

make_thread(delayed_task)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we add a new feature and we need to rebuild our server? The delay will disappear. We need to save the timestamp of deletion and check it in a separate task. This is my idea.

@radthenone radthenone marked this pull request as draft March 9, 2024 15:42
@KarolBautrel KarolBautrel added the critical/hotfix Requires immediate fix label Mar 25, 2024
@KarolBautrel KarolBautrel marked this pull request as ready for review March 25, 2024 12:10
@radthenone radthenone added Backend Backend Ticket and removed critical/hotfix Requires immediate fix labels Mar 25, 2024
@radthenone radthenone marked this pull request as draft March 25, 2024 12:28
@maciej-MKan maciej-MKan marked this pull request as ready for review September 2, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Backend Ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Soft-Delete Mechanism for Media
4 participants