-
Notifications
You must be signed in to change notification settings - Fork 132
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
Set deleted_by field when deleting XForms asynchronously #1798
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a single comment
xform.pk, | ||
request.user.id).task_id, | ||
u'time_async_triggered': datetime.now(), | ||
u'triggered_by': request.user.username} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need triggered_by
since we'll be saving the user who triggered the delete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly kept it they're for information purposes (if that makes sense) wanted to be extra verbose. On the first async task status just in case.
TL;DR: We don't really need it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, let's remove it for now and may be add it when we need it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the triggered_by
field in the latest commits. Please have a look @ivermac
a05822b
to
55a3bfa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
Changes / Features implemented
Steps taken to verify this change does what is intended
Side effects of implementing this change
Closes #1797