-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closes #19713: Enable recording user messages in the change log #19908
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
aaaf346
Add message field to ObjectChange model
jeremystretch 5e5c46f
Set max length on changelog message
jeremystretch 8d54368
Enable changelog messages for single object operations
jeremystretch 1b11895
Fix tests
jeremystretch 0703fe7
Add changelog message support for bulk edit & bulk delete
jeremystretch 2044802
Cosmetic improvements to form fields
jeremystretch 0514bb4
Fix bulk operation templates
jeremystretch f600429
Add message support for bulk import/update
jeremystretch ac26665
Add REST API support for changelog messages (WIP)
jeremystretch 1615a36
Fix changelog_message assignment
jeremystretch bdb0e57
Enable changelog message support for bulk deletions
jeremystretch 5ab696e
Add documentation
jeremystretch a5d6173
Fix changelog message support for VirtualChassis
jeremystretch 084f640
Add ChangeLoggingMixin to necesssary model forms
jeremystretch f174381
Introduce get_random_string() utility function for tests
jeremystretch 6acde0f
Incorporate changelog messages for object view tests
jeremystretch 3fba47e
Incorporate changelog messages for object bulk view tests
jeremystretch 5bed9e8
Add missing mixins for changelog message support
jeremystretch 7470147
Tweak test to generate expected number of change records
jeremystretch 68d3906
Finish adding tests for changelog message functionality
jeremystretch 839e508
Misc cleanup
jeremystretch b4e14cb
Fixes #19956: Prevent duplicate deletion records from cascading delet…
jeremystretch 1587600
Tweak bulk deletion test to work around cascading deletions issue
jeremystretch 881bf3d
Correct API URL
jeremystretch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0016_job_log_entries'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='objectchange', | ||
name='message', | ||
field=models.CharField(blank=True, editable=False, max_length=200), | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If we're going to make this a default queried field, should we add an index to the field? (He says not having looked at other similar fields yet ...)
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.
Probably not as part of this change.
message
here is analogous todescription
on most other models. I'm not sure if it makes sense to add an index for those fields, but it does it IMO it should be undertaken as part of an application-wide audit. For now I think it makes sense to continue the current convention.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.
Yep, got ahead of myself here. Just got done looking around and realized the same thing about it being a bigger, separate chunk of work.