-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Var-Dumper] added feature to set default nodes collapsed #18148
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
Conversation
I dont know why travis fails for php 5.6 && 7 and Its fine for 5.5 && hhvm. my code is 80% js |
I understand the need but the current interface (method) is really tailored to one single use case. |
I think it is the best generic solution.
|
ping @nicolas-grekas |
I think its worth it. Here are a few suggestions: I'd rename
WDYT? |
Ey Nicolas thx for your reply!.
I have a another question. Sorry if its a dumb question (is my 1º pullrequest here ...) What is the process to correct or warn of this problem? |
This doesn't apply to CliDumper, because we are talking about collapsing options, which doesn't exist on the cli. We already handle these kind of limits (max depth) at the state extraction level, they are not exposed by the dump functions but could be one day (see #17290).
that's the way it is now and changing it would be a bc break, no way to change :)
We'll look at them once the feature is ready, but the fix usually is to raise the lowest required versions in the composer.json file of the failing components (at least for the deps=low matrix line). |
Sfdump = window.Sfdump || (function (doc) { | ||
|
||
var defaultOptions = '.json_encode($this->jsPropertiesDefault).'; |
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.
since the actual max depth is provided as argument to the Sfdump function, there is no need to put the default value here (and thus neither no need to handle any merging (extend
))
Status: needs work |
What's the status of this PR? |
currently working, I was on vacation |
Hi, If I use a single var to displayOptions, I break a some test like TwigDumpExtension. I think it would be good, add a parameter in TwigDumpExtension to change displayOptions, but it can have a random number of arguments. I am stuck :/ |
The option maxItemsPerDepth require modify all samp elements to ul because each row must be delimited by a element like li. WDYT? |
modify js htmldumper and add attr in root node
modify js htmldumper and add attr in root node
modify js htmldumper and add options to configure js
modify js htmldumper and add options to configure js
modify js htmldumper and add options to configure js
Let's do maxItemsPerDepth later in an other PR then. I can't look at this right now but will definitely try it soon! |
…ions (MGDSoft, nicolas-grekas) This PR was merged into the 3.2-dev branch. Discussion ---------- [VarDumper] Add maxDepth & maxStringLength display options | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16741 | License | MIT | Doc PR | - Takes over #18148 to add display options to html dumps. Status: needs work Commits ------- 998ff33 [VarDumper] Tweak display options implementation 58eb665 [VarDumper] Add maxDepth & maxStringLength display options
modify js htmldumper and add options variable to configure js
Code to test it