-
Notifications
You must be signed in to change notification settings - Fork 412
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
Add AUDITLOG_TRUNCATE_CHANGES_DISPLAY and AUDITLOG_TRUNCATE_LIMIT #684
Add AUDITLOG_TRUNCATE_CHANGES_DISPLAY and AUDITLOG_TRUNCATE_LIMIT #684
Conversation
5bdd0da
to
6119547
Compare
Thanks @hoangquochung1110 for the PR, I left a couple of comments. Please add a changelog |
To configure how many characters will be truncated or disable it
7343dfe
to
0c5723e
Compare
My appreciation to your time and comments |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #684 +/- ##
==========================================
+ Coverage 95.21% 95.48% +0.26%
==========================================
Files 31 32 +1
Lines 1025 1085 +60
==========================================
+ Hits 976 1036 +60
Misses 49 49 ☔ View full report in Codecov by Sentry. |
docs/source/usage.rst
Outdated
Number of characters at which strings in `changes_display_dict` property should be truncated if length exceeded | ||
|
||
Set to 140 by default. | ||
|
||
You can use this settings to preserve the strings by set it to a negative number. | ||
|
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.
Number of characters at which strings in `changes_display_dict` property should be truncated if length exceeded | |
Set to 140 by default. | |
You can use this settings to preserve the strings by set it to a negative number. | |
This configuration variable defines the truncation behavior for strings in `changes_display_dict`, with a default value of `140` characters. | |
0: The entire string is truncated, resulting in an empty output. | |
Positive values (e.g., 5): Truncates the string, keeping only the specified number of characters followed by an ellipsis (...) after the limit. | |
Negative values: No truncation occurs, and the full string is displayed. | |
.. versionadded:: 3.1.0 | |
Thanks @hoangquochung1110 for the update. LGTM, I only left a suggestion for the new config description. |
to keep or truncate strings of `changes_display_dict` property at a variable length
0c5723e
to
19000db
Compare
Thanks @hoangquochung1110 |
Thank you for your approval @hramezani |
To configure how many characters will be truncated or disable it
Resovle #633