Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
MGDSoft commentedMar 13, 2016
I dont know why travis fails for php 5.6 && 7 and Its fine for 5.5 && hhvm. my code is 80% js |
nicolas-grekas commentedMar 15, 2016
I understand the need but the current interface (method) is really tailored to one single use case. |
MGDSoft commentedMar 16, 2016
I think it is the best generic solution.
|
MGDSoft commentedMar 17, 2016
ping@nicolas-grekas |
nicolas-grekas commentedMar 18, 2016
I think its worth it. Here are a few suggestions: I'd rename
WDYT? |
MGDSoft commentedMar 18, 2016
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? |
nicolas-grekas commentedMar 21, 2016
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). |
| $line ='<script> | ||
| 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))
nicolas-grekas commentedMar 30, 2016
Status: needs work |
fabpot commentedMar 31, 2016
What's the status of this PR? |
MGDSoft commentedApr 1, 2016
currently working, I was on vacation |
MGDSoft commentedApr 2, 2016
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 :/ |
MGDSoft commentedApr 2, 2016
The option maxItemsPerDepth require modify allsamp elements toul because each row must be delimited by a element likeli. 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
nicolas-grekas commentedApr 3, 2016
Let's do maxItemsPerDepth later in an other PR then. I can't look at this right now but will definitely try it soon! |
nicolas-grekas commentedJun 2, 2016
…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 workCommits-------998ff33 [VarDumper] Tweak display options implementation58eb665 [VarDumper] Add maxDepth & maxStringLength display options
modify js htmldumper and add options variable to configure js
Code to test it