-
Notifications
You must be signed in to change notification settings - Fork 47
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: add edited_at field to activation #1199
base: feature/edit-activation
Are you sure you want to change the base?
Conversation
Expose this field in API for activations. Also write the field to rulebook process log if the activation has been edited. implements AAP-38382
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## feature/edit-activation #1199 +/- ##
==========================================================
Coverage ? 93.47%
==========================================================
Files ? 263
Lines ? 15179
Branches ? 0
==========================================================
Hits ? 14189
Misses ? 990
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more.
|
"%Y-%m-%dT%H:%M:%S.%fZ" | ||
) | ||
log_handler.write( | ||
f"The activation was edited at {edited_at}", flush=True |
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.
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.
@bzwei Can you paste a screen shot of the Activation log in this PR?
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.
@bzwei To be consistent can be use the created_at if the edited_at is missing that way the log will remain the same.
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.
@mkanoor The edited_at timestamp is not the message logging time. It is part of the log message, just like other timestamps appear in the output. Screenshot is posted.
I purposely not log the edited time if not present. When it is missing, it is an indication that the activation is original, never updated. Or perhaps I can write a message here "The activation has never been edited"
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.
@bzwei Thats ok leave it the way it is for now. Did you forget to the add the screen shot?
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.
@mkanoor I posted screen shot but it did not get displayed somehow. Now it is visible
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0056_alter_activation_options"), |
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.
where is this 0056 migration file? do you miss 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.
0056 migration exists in feature/edit-activation branch
Expose this field in API for activations. Also write the field to rulebook process log if the activation has been edited.
implements AAP-38382