This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently, we log JS libraries (npm, Bower, CDNJS) only if user edits them (see [1]). We could improve it this way - log JS libraries always when OK button of Project Properties dialog is clicked. The current usage logging events could be renamed (append "_EDIT") and logged without any parameter (or do you have a better idea?). As a result, we would get more relevant information about JS libraries and will not loose information about JS libraries UI usage. Thanks. [1] http://wiki.netbeans.org/UsageLoggingSpecification
One idea - we could log libraries whenever the file (package.json etc.) changes. This would be even more relevant (we can listen only on libraries changes so change in e.g. name would be ignored) and would not require any API changes. Of course, if such a file is changed when the IDE is not running, we will not get the data (but we will get them the next time, this is the same for all the usage logging). Any objections? Thanks.
Wouldn't it be biased by e.g. project rename or when start file has changed? These changes are being synced with package/bower.json right? OTOH it is not very often action so the numbers from project rename will be imho low.
(In reply to Vladimir Riha from comment #2) > Wouldn't it be biased by e.g. project rename or when start file has changed? > These changes are being synced with package/bower.json right? OTOH it is not > very often action so the numbers from project rename will be imho low. No, the change to be logged must happen in libraries.
Should be done now, Honzo please review the patches if possible. Láďo, please verify, thanks. I have updated the wiki page as well. http://hg.netbeans.org/web-main/rev/223c6aae0a46 http://hg.netbeans.org/web-main/rev/da36130bb9f1 http://hg.netbeans.org/web-main/rev/7347f508a882
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/223c6aae0a46 User: Tomas Mysik <tmysik@netbeans.org> Log: #255112 - Improve logging of JS libraries Bower part.