debugbar logging requests using microtime#5643
debugbar logging requests using microtime#5643maniaba wants to merge 28 commits intocodeigniter4:developfrom maniaba:develop
Conversation
Feature request from the form: https://forum.codeigniter.com/thread-81113.html
|
@maniaba Thank you for sending the PR. It ssems there are coding style violations and Static Analysis error. |
Feature request from the form: https://forum.codeigniter.com/thread-81113.html
I just made changes. |
add GPG signing
add GPG signing
add GPG signing
|
Your sign is unverified.
|
| * @param int $limit Max history files | ||
| */ | ||
| public function setFiles(int $current, int $limit = 20) | ||
| public function setFiles(float $current, int $limit = 20) |
There was a problem hiding this comment.
Do we need to break the signature here? I think we could just pass around the microtime as an int and then do number_format right before outputting.
There was a problem hiding this comment.
I don't mind (necessary) BC in minor version up if it is documented.
See https://forum.codeigniter.com/thread-80892-post-392846.html#pid392846
By the way, is float enough?
It seems only 4 digits like 1643882644.5667 in my PHP.
There was a problem hiding this comment.
Maybe change this to a string, and make the file name look like "debugbar_{microtime} _ {session_value} .json" or add session_value to the contents of the file?
Then we will solve the request "when multiple developers work on different modules I suggest the option that developers can filter requests by session so that everyone can see it's own requests made by their browser."
I suggest adding a checkbox to the history tab, which would filter sessions by the browser.
There was a problem hiding this comment.
That is a good refinement to the Debug Toolbar, but let us limit this PR to adding the microtime only. We can add the session and filtering in another PR.
There was a problem hiding this comment.
I think type string is better. It is actually (a part of) filename, not time.
| * @param int $limit Max history files | ||
| */ | ||
| public function setFiles(int $current, int $limit = 20) | ||
| public function setFiles(float $current, int $limit = 20) |
|
@maniaba Please add to the user guide changelog (1) debug toolbar is now using microtime instead of time, and (2) there is a possible BC break for those users extending the History Collector and they should probably update setFiles() method |
|
This is not CodeIgniter4/system/Debug/Toolbar.php Lines 485 to 488 in 4ca2159 |
|
@maniaba And when you sync your repository, can you use |
|
@maniaba |
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Co-authored-by: kenjis <kenji.uui@gmail.com>
Your changes to the SCSS files did not match the expected CSS output.
diff --git a/system/Debug/Toolbar/Views/toolbar.css b/system/Debug/Toolbar/Views/toolbar.css
index 680ef52..11a3301 100644
--- a/system/Debug/Toolbar/Views/toolbar.css
+++ b/system/Debug/Toolbar/Views/toolbar.css
@@ -774,7 +774,8 @@
}
.debug-bar-width190p {
- width: 190px;}
+ width: 190px;
+}
.debug-bar-width20e {
width: 20em;https://github.com/codeigniter4/CodeIgniter4/runs/5314886769?check_suite_focus=true |
|
|
@maniaba |
|
Closed via #5958 |

Feature request from the forum: https://forum.codeigniter.com/thread-81113.html
Each pull request should address a single issue and have a meaningful title.
Description
Explain what you have changed, and why.
Checklist: