New Input Box on Rules Page?
Posted: 17 Dec 2019, 20:22
I noticed a new feature on the latest Mega PR (mega-20191208). It's a Input entry box at the bottom of the Rules Editor page. See red arrow in the photo below:
The entry defaults to zero. But when the rule page is submitted it briefly flashes a numerical value that is slightly smaller than the actual length of the rules file.
I checked the source code and see that it allows changing the rules file length. Curious about it, I played around a bit. If I enter a value that is equal (or less than) the known file length the page submission is successful. If I enter a larger value the page reports Error: Data not saved.
I've been scratching my head trying to find the reason for this entry area. No mention of it in the release notes; Perhaps Gijs (@TD-er) added it for his rules debugging? Or is it a cool new unadvertised feature?
- Thomas
The entry defaults to zero. But when the rule page is submitted it briefly flashes a numerical value that is slightly smaller than the actual length of the rules file.
I checked the source code and see that it allows changing the rules file length. Curious about it, I played around a bit. If I enter a value that is equal (or less than) the known file length the page submission is successful. If I enter a larger value the page reports Error: Data not saved.
I've been scratching my head trying to find the reason for this entry area. No mention of it in the release notes; Perhaps Gijs (@TD-er) added it for his rules debugging? Or is it a cool new unadvertised feature?
- Thomas