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.

Bug 254643 - Verify & add usage statistics in all areas
Summary: Verify & add usage statistics in all areas
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 09:37 UTC by Tomas Mysik
Modified: 2015-09-03 07:29 UTC (History)
6 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2015-08-24 09:37:07 UTC
We should add and verify usage logging [1] in these areas:

* Cordova
* node.js
* Grunt
   * usage
   * adding libraries using UI
* Gulp
   * usage
   * adding libraries using UI
* npm
   * usage
   * adding libraries using UI
* JS frameworks (Petře, any ideas?)
* JS debugging (Martine, any ideas?)
* Web inspection (Honzo, any ideas?)

Feel free to add more areas/use cases.

Thanks.
[1] http://wiki.netbeans.org/UsageLoggingSpecification
Comment 1 Tomas Mysik 2015-08-24 09:38:58 UTC
* Direct project opening (package.json, bower.json)
Comment 2 Tomas Mysik 2015-08-24 10:12:12 UTC
Just noticed that Grunt and Gulp has incorrect tasks:

* Bower
   * usage
   * adding libraries using UI
* CDNJS
   * adding libraries using UI
Comment 3 Petr Pisl 2015-08-25 07:48:09 UTC
Regarding the frameworks, I can imagine logging choosing the code completion items. It can be logged every x usage.
Comment 4 Martin Entlicher 2015-08-26 14:20:33 UTC
Regarding debugging, when HTML5 project is run (debug is on by default), USG_DEBUG_SESSION_START is logged with "JavaScript" and URL parameters.
When some debug action is performed during HTML5 project is running, USG_DEBUG_HTML5_JS is logged.

When node.js project is debugged, USG_DEBUG_SESSION_START is logged with "JavaScript" and "Node.js at <URL>" parameters.
Comment 5 Jan Stola 2015-08-27 13:43:06 UTC
> * Web inspection (Honzo, any ideas?)

I have added logging of the page inspection usage. The message is USG_PAGE_INSPECTION and it has no parameters. It should allow us to see what percentage of users is using the page inspection. The event is logged when the first DOM node is selected (to avoid triggering of the event when the page is run in debug mode but no page inspection features are used).
Comment 6 Tomas Mysik 2015-08-28 05:51:50 UTC
(In reply to Jan Stola from comment #5)
> I have added logging of the page inspection usage. The message is
> USG_PAGE_INSPECTION and it has no parameters. It should allow us to see what
> percentage of users is using the page inspection. The event is logged when
> the first DOM node is selected (to avoid triggering of the event when the
> page is run in debug mode but no page inspection features are used).

Thanks a lot, I will update the wiki page [1] (we use it to find out what is new for the Usages website).

[1] http://wiki.netbeans.org/UsageLoggingSpecification
Comment 7 Tomas Mysik 2015-08-28 10:11:17 UTC
(In reply to Tomas Mysik from comment #6)
> Thanks a lot, I will update the wiki page [1] (we use it to find out what is
> new for the Usages website).

Done, I have added "Easel Events" section so please use it. Thanks.
Comment 8 Tomas Mysik 2015-08-28 11:20:47 UTC
(In reply to Tomas Mysik from comment #1)
> * Direct project opening (package.json, bower.json)

USG_PROJECT_CONVERTOR event added (with file name as a parameter).
Comment 9 Tomas Mysik 2015-08-28 11:42:30 UTC
(In reply to Tomas Mysik from comment #8)
> USG_PROJECT_CONVERTOR event added (with file name as a parameter).

Forgot to add a changeset.

http://hg.netbeans.org/web-main/rev/7f1cf78f1b63
Comment 10 Tomas Mysik 2015-08-28 11:50:31 UTC
(In reply to Tomas Mysik from comment #0)
> * Cordova

Logged its presence on project open - USG_PROJECT_HTML5_OPEN.

> * node.js

Any idea what we want to log? Currently, we log which JS platforms are present on project open - USG_PROJECT_HTML5_OPEN.

> * Grunt
>    * usage

Already logged - USG_GRUNT_BUILD.

> * Gulp
>    * usage

Already logged - USG_GULP_BUILD.

> * npm
>    * usage

Logging npm usage and run-script - USG_NPM_INSTALL and USG_NPM_RUN_SCRIPT.

http://hg.netbeans.org/web-main/rev/b143313f87e8

> * npm
>    * adding libraries using UI

Honza will take care of it.

> * Bower
>    * usage

Already logged - USG_BOWER_INSTALL.

> * Bower
>    * adding libraries using UI

Honza will take care of it.

> * CDNJS
>    * adding libraries using UI

Honza will take care of it.

> * JS frameworks (Petře, any ideas?)

Petře, let's discuss it face to face in the office, thanks.

> * JS debugging (Martine, any ideas?)

Thanks Martine!

> * Web inspection (Honzo, any ideas?)

Thanks Honzo!
Comment 11 Quality Engineering 2015-08-29 03:02:46 UTC
Integrated into 'main-silver', will be available in build *201508290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b143313f87e8
User: Tomas Mysik <tmysik@netbeans.org>
Log: Part of #254643 - Verify & add usage statistics in all areas

Usage logger for 'npm run-script' action.
Comment 12 Jan Stola 2015-08-31 14:56:41 UTC
> * npm
>    * adding libraries using UI

Done (USG_NPM_LIBRARY event): https://hg.netbeans.org/web-main/rev/b8885a1c2fa1

> * Bower
>    * adding libraries using UI

Done (USG_BOWER_LIBRARY event): https://hg.netbeans.org/web-main/rev/3e23efe2c3cd

> * CDNJS
>    * adding libraries using UI

Done (USG_CDNJS_LIBRARY event): https://hg.netbeans.org/web-main/rev/5f2d88ddcabd

I have also added the description of these events to http://wiki.netbeans.org/UsageLoggingSpecification
Comment 13 Tomas Mysik 2015-09-02 07:01:25 UTC
After discussion with PetrP closing this issue as fixed, statistics from the editor would not be helpful much. Statistics from Honza's libraries UI should be much more usable.

Thanks.
Comment 14 Theofanis Oikonomou 2015-09-02 14:21:24 UTC
Changeset: ac975a099cb2
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-09-02 16:20
Message:
Comment 15 Theofanis Oikonomou 2015-09-02 14:23:38 UTC
(In reply to Theofanis Oikonomou from comment #14)
> Changeset: ac975a099cb2

USG_SELENIUM2 event added also to the wiki
Comment 16 Quality Engineering 2015-09-03 01:24:11 UTC
Integrated into 'main-silver', will be available in build *201509030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ac975a099cb2
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #254643 - Verify & add usage statistics in all areas
Comment 17 Tomas Mysik 2015-09-03 07:29:08 UTC
Láďo, please do not forget to verify this important issue. Thanks.