Clean up the interaction data module to be a PageModule based item.
Other notable changes: * Send old interaction data irregardless of whether the current dialog session is collecting data. * Because of this above change, simplified storage regarding data. * Make sure when sampling is enabled, data is saved. * Make sure when sampling is disabled, data is not saved. * Added tests to test expected flow.
Showing
- resources/static/shared/modules/interaction_data.js 62 additions, 62 deletionsresources/static/shared/modules/interaction_data.js
- resources/static/shared/storage.js 4 additions, 6 deletionsresources/static/shared/storage.js
- resources/static/test/cases/shared/modules/interaction_data.js 72 additions, 14 deletions...rces/static/test/cases/shared/modules/interaction_data.js
- resources/static/test/cases/shared/network.js 14 additions, 0 deletionsresources/static/test/cases/shared/network.js
- resources/static/test/cases/shared/storage.js 2 additions, 4 deletionsresources/static/test/cases/shared/storage.js
- resources/static/test/mocks/xhr.js 2 additions, 0 deletionsresources/static/test/mocks/xhr.js
- resources/static/test/testHelpers/helpers.js 2 additions, 2 deletionsresources/static/test/testHelpers/helpers.js
Loading
Please register or sign in to comment