Git Product home page Git Product logo

bridge-adaptivity's People

Contributors

alexbojko avatar andreylykhoman avatar colin-fredericks avatar dependabot[bot] avatar flying-pi avatar idegtiarov avatar ihor-romaniuk avatar kunanit avatar oksana-slu avatar sdotglenn avatar wowkalucky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bridge-adaptivity's Issues

Log error when sending return response to content source after receiving and saving grade

When a learner submits a problem in the content source, the following error logs are produced:

File "/bridge_adaptivity/module/views.py", line 302, in callback_sequence_item_grade
update_lms_grades(request, sequence, user_id)
File "/bridge_adaptivity/bridge_lti/outcomes.py", line 26, in update_lms_grades
user_id, score, lms_response.code_major.text
AttributeError: 'NoneType' object has no attribute 'text'

This appears to happen right after successful saving of a module.models.Log instance in the bridge, and a successful sending and saving of a score record in the connected adaptive engine - looks like its during logging of the return response to the content source. So at least all the right data is being saved - and the learner is still able to progress through their problem sequence. But it makes it appear to the content source as if there was trouble saving the score on the bridge. Not sure if there are implications for that. Logs from the content source:

[service_variant=lms][edx.lti_provider][env:sandbox] ERROR [open-edx-vpal  16022] [outcomes.py:150] - Outcome Service: Failed to update score on LTI consumer. User: HdmqsdXitSRkXHrB9zbfD1UBNgZeYV, course: course-v1:MSFT+DAT222x+4T2017, usage: block-v1:MSFT+DAT222x+4T2017+type@problem+block@84ec7b7c3dae47299274a3a822319d7b, score: 0.0, status: <Response [500]>, body: Unknown

Provide context info in recommendation request

Engines may be able to use information such as which instance of the collection (assuming many possible module instances derived from the same collection) the student is currently in. API spec TBD

Running tests locally

@wowkalucky @idegtiarov How should I run flake8 tests locally? Currently I just use flake8 . It seems like there are errors that get caught during the Travis build (on github push) but not during my local run.

unable to login to admin panel even after creating superuser!

i am trying to deploy it in AWS ec2 using amazon linux 2

i used the following command to deploy and install.

sudo yum update -y
sudo yum install docker -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo chkconfig docker on
sudo yum install -y git
sudo reboot
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
docker-compose version
git clone https://github.com/harvard-vpal/bridge-adaptivity.git
cd bridge-adaptivity/
cd bridge_adaptivity/config/settings/
vim secure_example.py

added the ["*"] instead of ["localhost"] in the host config
sudo make run-local

after this i ran

Docker exec -it BFA python manage.py createsuperuser
Username: admin
Email address: [email protected]
Password: **********
Password (again): *********
Superuser created successfully.

then i went to the http://ip:8000/admin and also http://ip:8008/admin

used the user name password i set earlier but i was not logged into the admin panel

there was no error that your password is wrong or programming error(which was earlier)

please let me know the gap because if cannot log into the admin panel i cannot log in the bridge panel

i also tried the solution mentioned #205 i got the same problem if i am using the wrong credentials it is showing the error of the wrong credential but with the right credentials it does not show any error but it does let me into the panel as well.

i think the password i set were working fine but somehow it was not letting me to see the webpage which should be shown after login.

How to log in to it?

by "psycopg2==2.7.3" in requirements_base.txt, some error messages appeared and the installation could not be completed. change as "psycopg2==2.7.3.2" is ok.

P.S.
I had installed the bridge-adaptivity by the command "make run-local".
I tried by "localhost:8008" or "localhost:8008/admin" in browser.
But I can't find the help about the login username and password in wiki.
Can you give me some help? Thanks.

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.