Giter VIP home page Giter VIP logo

badgr-xblock's People

Contributors

lidijarad avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

badgr-xblock's Issues

JS error checking for badge

I get the following JS error when checking for section completion and earning a badge:

(index):2409 Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined
    at Object.getGrades [as success] ((index):2409)
    at fire (lms-main_vendor.53cdacba553b.js:2)
    at Object.fireWith [as resolveWith] (lms-main_vendor.53cdacba553b.js:2)
    at done (lms-main_vendor.53cdacba553b.js:4)
    at XMLHttpRequest.<anonymous> (lms-main_vendor.53cdacba553b.js:4)

The error is with these lines

var section_scores = data['section_scores'];
// Check that the section name specified in Xblock exists in Grades report
if (section_scores.hasOwnProperty(section_title)) {
:

No data for section_scores is returned in the JSON from a GET request to /api/grades/v0/course_grade/course-v1:Appsembler+002+2018_Q3/users/?username=bryanlandia

what is returned is:

[{"username":"bryanlandia","letter_grade":null,"percent":0.01,"course_key":"course-v1:Appsembler+002+2018_Q3","passed":false}]

Were you using a custom branch of edx-platform for this? I don't see any section_scores returned by the view method here

https://github.com/edx/edx-platform/blob/edx_master/lms/djangoapps/grades/api/views.py#L164-L186

LMS Badged display filter

Enhance either badgr server or the xblock and/or LMS to filter the badges received on the user profile page.

PS: very low priority

The tab for badgr text and back ground colour is the same.

When the user get to the page to view his badge, the button text and back ground colour are the same, so the learner won't know he should click on the botton.

url: https://khda.proversity.org/courses/course-v1:KHD+KHD001+2017

Steps

  1. click on the url above and login
  2. If not, complete the course so you can earn your badge, if you already have a badge, go to the badge section and reset your badge by clicking 'Staff Debug Info', reset your you badge and refresh the page

Results:
The text an the icon colour are the same

Expected Results:
The text should be a different colour to the background colour so the user can read the text.
image

Criteria link not working

When trying to open the 'Criterial' link for a badge, the user gets an 'ERR_CONNECTION_TIMED_OUT' error message.

The issue is that when the 'Criteria' is created, the internal mechanism for badgr generates a HTTPS link and is sohuld be a std HTTP url

Steps:

  1. Login to badgr - http://badgr.proversity.org
  2. Click on Issue Badges.
  3. Select a 'Issuer' (Client)
  4. Select a badge.
  5. Click on the 'Criteria' link

Results.
The user gets an error - See screenshot below
image

Expected results
The user is able to view the criteria of the badge.

Trial badger Xblock development

I am developing a "Badger XBlock" so that we can allow course creators to place this xblock in appropriate places in a course. It will remain hidden to the user, but if they user meets certain criteria the badger xblock will be displayed/visible.

We are testing this feature and it is still under development.

Make Badger Xblock Public

  • Update readme with installation instructions
  • Wait for Grades API PR to be merged
  • Notifiy EdX community

Badgr doesn't work

Hello,
I installed the xblock and now lms and cms work fine but when I try to click the button "click here to view your results" the edx shows the error

"Studio's having trouble saving your work
Resource not found"

What resource?

I use api.badgr.io server

Translations break when badge is loaded

When a course is translated, and badgr is setup to use the translations, it breaks.

Setup Studio
url: http://staging.studio.proversity.io/course/course-v1:KHD+KHD001AR+2017
Steps:

  1. Login to studio
  2. Select the KHDA Holacracy® 101 (Arabic) course
  3. Rename/change Module 01 to الوحدة 01
  4. Expand module 01
  5. Click on 'Unit 2 Results screen'
  6. Click Edit
  7. Rename/change the 'Section title' so it is the same as above
  8. Click Save
  9. Click Publish

Test on LMS
url: http://staging.khda.proversity.io/courses/course-v1:KHD+KHD001AR+2017/courseware/320bbb9479ae466faf166d255b636530/59fccce05b9c44379fd5c1436d13d4c1/?activate_block_id=block-v1%3AKHD%2BKHD001AR%2B2017%2Btype%40sequential%2Bblock%4059fccce05b9c44379fd5c1436d13d4c1
Steps.

  1. Click on the link above and login
  2. Select the Welcome to Holacracy® 101 (Arabic) course
  3. Click on the course tab and select the Module 1: Living Holacracy® section and the Module 01 Subsectio
  4. Complete the answer.
  5. Click Next
  6. Click 'Click here to view your results'

Results
The mouse cursor turns into an infinity spin wheel

Expected results
The badge should load

SETTING

Hello,

I am trying to install the xblock but I don't understant where the SETTINGS are. In lms.env.json there isn't such section.

Thanks in advance

No LICENSE

The repo has no LICENSE file, which effectively means "all rights reserved" and no one should use it. If you want this to be used by others, please add an OSI-approved license.

refine badger xblock

Currently working with badgr-server. Will need to add some logic to ensure it displays the correct html fragment depending on if the user has already checked for the badge and NOT been awarded the badge. Will need to set up some styling of the html fragment.

Will need to test and ensure the spinners (while fetching the badge, until ajax request has succeeded) work as should.

Will need to add a drop down menu in Studio settings, listing all possible issuers on badgr-server.

cms server error

Hello,

I installed the xblock following a different process, but while the lms works fine, the cms display a server error.

How can I fix it?

When receiving your badge, the text 'congratulation message' appears to be a link

When a student has successfully passed a section with a badge and the user hovers his mouse over the message,it appears to be a link.

url: https://khda.proversity.org

Steps.

  1. Click on the link above.
  2. Complete a section to achieve your badge.
  3. After you successfully complete the section and received you badge, hover you mouse over the 'Congratulations message'
  4. The pointer becomes a hand, as to select the link

Results:
When the student click on the message, nothing happens. it should open up the badge OR
The message should not be linked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.