-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xAPI Agent Profile Resource - error in order of elements #1109
Comments
Hmmm this is also odd because it shouldn't be storing the name I don't think. |
Okay we are storing the name and I can't think why we're doing that, we certainly shouldn't be using it to match an agent as far as I'm aware. |
If you want me to take a look at attempting a PR, can you point me to where I should be looking.? I haven't dug too deep into the architecture of llv2 yet. |
It's all good @davidpesce, I'm on it already, thanks for the offer though 👍 |
The spec doesn't say it's invalid if you do include both. It does say that you can only use one of the four reverse functional identifiers (mbox, mbox_sha1sum, openid, or account), but name is listed as an optional. |
Yeah that's fine. I don't think we should have been storing the name in the database, it's not actually required. Just waiting for the build to pass over in learninglocker/xapi-agents#43 then I'll get this fix released 👍 |
You da man! Thanks, Ryan! |
Haha you're welcome @davidpesce 👍 that's just gone live v2.1.9 of the xapi-service - got to love automated releases haha. |
I grabbed the tagged release for 2.1.9 and restarted the xapi (and then LL) pm2 services, but I'm still having the same issue. Did I miss something in applying the patch? |
Hey @davidpesce you need to |
Yeah, that's what I forgot. The docs still show "npm install" and "npm run build". I did that and it worked like a charm! |
Ah cool yeah npm will work too just a little less safe than yarn if you're not using npm 5 (our AMIs and deploy scripts still install npm 3 because we've not tested the webapp with npm 5). The difference is that npm 3 doesn't use the |
Ok, cool. I wonder if it's worth it to update the custom install docs? http://docs.learninglocker.net/guides-custom-installation/ |
Yeah it almost certainly is. If you're able to make a PR there that would be awesome. It should be the src/guides-custom-installation.md file that needs updating in the docs repo. |
Yup can do! |
Confirming that this definitely resolved the issue. To make doubly-sure, I also tried re-migrating the LLv1 agentProfiles into the LLv2 DB and my course was able to retrieve them without a hitch. It also didn't create new agentProfiles (the originals retrieved fine). |
Brilliant cheers @davidpesce 👍 Awesome thank you for confirming! That's really good. |
Version
2.1.3 and 2.1.4 (but guessing this is a global issue)
Steps to reproduce the bug
Expected behaviour
Value of the agentProfile will be returned
Actual behaviour
404 response. agentProfile doesn't exist.
Additional information
OS: CentOS 7.4
Browser: Chrome (latest)
If you swap the order of agent.mbox and agent.name, it is retrievable:
The text was updated successfully, but these errors were encountered: