Comments (3)
I don't understand. That function is just for showing the state as a string of 0/1/-, it has nothing to do with completion. Is the course completing on the lms but the console log say's it isn't, or is the course not completing and the console log is also not completing?
adapt-contrib-spoor/js/adapt-stateful-session.js
Lines 162 to 191 in c1b09c1
const max
is the maxiumumtrackingId
, they live at item[0][0]
const trackingId
reads the same value from each item[0][0]
An array of character is made using this line, which is one character too short with new Array(max + 1).join('-').split('')
, it should be max+2
, one for index to length conversion, and one for the split+join losing a place. Or it could just be changed to new Array(max + 1).fill('-')
, which does the same thing without the confusion.
So aside from this bug, in this bit of code, what are the symptoms of the course and its completion? What do you have in the course and how have you set it up to complete? Assessment + content?
from adapt-contrib-spoor.
Hi Oliver,
thank you for your answer.
About your questions:
- Is the course completing on the lms but the console log say's it isn't, or is the course not completing and the console log is also not completing?
- if we run the course localy on my notebook without lms: console log says the course is completed
- if we run the course on a lms the lms and the console log says it is not completed
- We set the course up. Condition for completion:
- assessment: no
- content: yes
-
In the course we have different adapt components. We have the same issue on different courses with different content.
-
We tested the course:
If we change the line:
markers[trackingId] = markers[trackingId] === "-" || markers[trackingId] === "1" ? mark : "0";
to
markers[trackingId] = markers[trackingId] === "-" || markers[trackingId] === "1" ? mark : "1";
the lms sets the course “completed”. -
We tested the course e.g. on SCORM Cloud.
from adapt-contrib-spoor.
Ignore the console for the moment. Does the LMS say the course has been completed?
This code should fix the console
9e07fbf
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
- Attempt to getInteractionCount on LMS that doesn't support this SCORM 1.2 feature HOT 8
- 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.