Comments (8)
Surely this code is not checking isSupported('cmi.interactions._count')
const id = this._uniqueInteractionIds ?
${this.scorm.getInteractionCount()}-${questionModel.get('_id')} : questionModel.get('_id');
from adapt-contrib-spoor.
Yup, agreed. Needs an if (!this.scorm.isSupported('cmi.interactions._count')) return;
above that line?
from adapt-contrib-spoor.
That is exactly what I have done and testing as we speak
from adapt-contrib-spoor.
You can fork the repo, create your issue/294 and then pr from there.
from adapt-contrib-spoor.
Done
from adapt-contrib-spoor.
The quoted lines, call offlineStorage.set('interaction', id, response, result, latency, responseType);
:
adapt-contrib-spoor/js/adapt-stateful-session.js
Lines 205 to 220 in f07a603
Which is calling recordInteraction
:
adapt-contrib-spoor/js/adapt-offlineStorage-scorm.js
Lines 111 to 133 in f07a603
Which is calling isSupported
, if (!this.isSupported('cmi.interactions._count')) {
:
adapt-contrib-spoor/js/scorm/wrapper.js
Lines 366 to 392 in f07a603
isSupported
calls get
:
adapt-contrib-spoor/js/scorm/wrapper.js
Lines 475 to 490 in f07a603
getValue
is called here:
adapt-contrib-spoor/libraries/SCORM_API_wrapper.js
Lines 483 to 505 in f07a603
Your error is triggering here:
adapt-contrib-spoor/js/scorm/wrapper.js
Lines 396 to 421 in f07a603
This is your error:
adapt-contrib-spoor/js/scorm/error.js
Line 29 in f07a603
So it is checking, but the check pushes an error to the dialogue.
This is where the dialogue is shown:
adapt-contrib-spoor/js/scorm/wrapper.js
Lines 571 to 573 in f07a603
It can be controlled with:
adapt-contrib-spoor/example.json
Line 21 in f07a603
However, it does seem a bit odd. isSupported
shouldn't really display an error if the value isn't supported.
@danielghost any thoughts?
from adapt-contrib-spoor.
@oliverfoster happy to create a PR for this.
Not done this before so just checking the procedure
Do I create a local branch issue/294 and then push this up (I don't appear to have permission to do so)
Then create a PR
from adapt-contrib-spoor.
🎉 This issue has been resolved in version 5.9.2 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
from adapt-contrib-spoor.
Related Issues (20)
- cmi.interactions.n.id prefix HOT 1
- Add `cmi.objectives` support HOT 1
- `cmi.interactions` contextual data HOT 1
- Make trackingIdType default to component
- Issue with SPOOR error Handling message HOT 1
- Update spoor extension to work with jest testing HOT 1
- Allow ability to override the hard set char limit when using recordInteractionFillIn HOT 1
- maxLimit not being set to maxCharLimitOverride HOT 1
- Close loading screen via router.hideLoading() HOT 1
- Migrate from beforeunload/unload events HOT 2
- Is an empty string the desired cmi.core.exit value if default of auto used? HOT 1
- Possible issue if course.json does not contain "_spoor" element HOT 3
- Error messaging lost if course is not yet loaded HOT 1
- 401 - Not implemented error handling HOT 5
- Unsupported logic HOT 1
- Error logging order HOT 1
- Documentation fixes HOT 1
- unload event will soon be deprecated in Google Chrome - Add workaround to version of Spoor that is compatible with v4 framework
- cmi.objectives issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adapt-contrib-spoor.