Skip to content
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

0.17.x into master (0.17.6 release) #5612

Draft
wants to merge 226 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
95ae21e
Student should be redirected to login page if he/she gets looged out …
anuragkanungo Feb 4, 2015
0615773
Merge pull request #2939 from anuragkanungo/nalanda-rct3
aronasorman Feb 4, 2015
3daac46
Added Unit Variable to ExerciseLog Export
anuragkanungo Feb 7, 2015
30758b4
Updated code for unit variable in exercise log
anuragkanungo Feb 7, 2015
5d6a29d
Increased height of exercise name column in exam reports
anuragkanungo Feb 10, 2015
6d7e510
Added Exam Prep Playlists
anuragkanungo Feb 10, 2015
0cef1b9
Added student_testing/data/407.json
anuragkanungo Feb 10, 2015
6c70ea7
Added 15Nov2014 RCT condition check for unit variable
anuragkanungo Feb 10, 2015
8fea95e
Merge pull request #3016 from anuragkanungo/smps_4b_exam_results
aronasorman Feb 10, 2015
318a01a
Merge pull request #3011 from anuragkanungo/exam_topic_width
aronasorman Feb 10, 2015
bf146dc
Merge pull request #3012 from anuragkanungo/playlist
aronasorman Feb 10, 2015
c6402d3
Added Student Mastery/Class Mastery CoachReports
anuragkanungo Feb 11, 2015
c1abb70
RCT Unit Variable comment
anuragkanungo Feb 11, 2015
5105876
Removed Unit Selection Box and Added Class Level Mastery
anuragkanungo Feb 12, 2015
6e6c0f0
correct unit for those we are sure else unit 0
anuragkanungo Feb 12, 2015
26592ee
Added comment why to keep unit variable as 0 for some cases
anuragkanungo Feb 12, 2015
61fb56b
Merge pull request #2958 from anuragkanungo/nalanda-rct3
jamalex Feb 12, 2015
5286833
Code cleanup and renamed report view to exercise_mastery_view
anuragkanungo Feb 13, 2015
af8d016
On Facility Switch remove playlist values from url, to avoid get exer…
anuragkanungo Feb 13, 2015
350a7f5
Fixed minor bugs related to division by zero and exercise selection
anuragkanungo Feb 13, 2015
1c582c2
Moved jquery.js required for dyna-tree persistance to static-libraries
anuragkanungo Feb 13, 2015
66a0248
Refactoring and percentage in float
anuragkanungo Feb 13, 2015
c106ca1
removed extra comma, tests was failing
anuragkanungo Feb 13, 2015
8e5e8e5
Merge pull request #3033 from anuragkanungo/coach_reports
jamalex Feb 20, 2015
bc21a36
Fix 3040, Redirect to login page in case of Unauthorized
anuragkanungo Feb 23, 2015
3bffde5
Used SetGetParam for url
anuragkanungo Feb 24, 2015
5e0b016
Test for redirect unauthorized playlist view request to login page
anuragkanungo Feb 24, 2015
d4c91a2
Added test for unauthorized request to redirect to login page
anuragkanungo Feb 24, 2015
cfb423d
Moved import to top
anuragkanungo Feb 24, 2015
14c8701
Added implicit wait for css selector to be found in selenium test
anuragkanungo Feb 24, 2015
b56a514
Updated implicit wait after selector
anuragkanungo Feb 24, 2015
4ffdb35
Increase implict wait timeout time
anuragkanungo Feb 24, 2015
7c9085b
Merge pull request #3092 from anuragkanungo/nalanda-rct3
aronasorman Feb 25, 2015
b68aadf
Fixing up loadtesting.
rtibbles Feb 27, 2015
618314d
Final tweaks and fixes for loadtesting.
rtibbles Feb 27, 2015
2c5cce4
Fixes up load_testing for nalanda_rct3
rtibbles Feb 27, 2015
b3f28a0
Adds description comment to loadtesting view.
rtibbles Feb 28, 2015
c06bab5
Merge pull request #3149 from rtibbles/load_testing_nalanda
jamalex Feb 28, 2015
dd65adb
Fixes video playback during loadtest
rtibbles Feb 28, 2015
0299599
Merge pull request #3161 from rtibbles/load_testing_video
jamalex Feb 28, 2015
e890a2d
Fixes exercise answering for nalanda-rct3
rtibbles Feb 28, 2015
b289d0f
Merge pull request #3163 from rtibbles/load_testing_video
jamalex Feb 28, 2015
54c23cb
Ignore content/khan folder in git.
jamalex Mar 1, 2015
1509abc
Re-enable motivational features by default for Nalanda.
jamalex Mar 1, 2015
0597547
Fixes and simplification to loadtesting app.
jamalex Mar 1, 2015
a6d62e5
Merge pull request #3165 from jamalex/loadtesting_fix
jamalex Mar 1, 2015
6e8da48
On loadtesting, set a timeout to continue even if page fails.
jamalex Mar 2, 2015
6177f63
Merge pull request #3169 from jamalex/loadtesting_robustness
rtibbles Mar 2, 2015
ee90bd5
when running an external kalite process, make sure we change the
aronasorman Mar 4, 2015
a5a5b1b
Skip unauthorzied redirect to login test on travis
anuragkanungo Mar 9, 2015
3bbd98e
Merge pull request #3198 from anuragkanungo/nalanda-rct3
anuragkanungo Mar 9, 2015
abb207c
Merge pull request #3200 from learningequality/nalanda-rct3
jamalex Mar 9, 2015
e6f34b2
Merge pull request #3156 from learningequality/develop
jamalex Mar 9, 2015
1f19654
Merge branch 'central-master' of github.com:learningequality/ka-lite …
jamalex Mar 9, 2015
2ebd3ed
Remove exercise_mastery_view.
jamalex Mar 9, 2015
097a747
Don't download assessment items when on central server.
jamalex Mar 9, 2015
073046f
add --no-assessment-download command for setup
aronasorman Mar 10, 2015
105272d
Merge pull request #3254 from jamalex/device_metadata_fix
jamalex Mar 11, 2015
e1d6c23
Cherry pick changes from develop
MCGallaspy Mar 16, 2015
63824f6
Fix js linting issue
MCGallaspy Mar 16, 2015
f13286c
Really fix device metadata issue (cherry pick from develop)
MCGallaspy Mar 17, 2015
c29c18d
Merge remote-tracking branch 'mcgallaspy/central-develop' into centra…
MCGallaspy Mar 17, 2015
645c7f0
Merge pull request #3309 from MCGallaspy/central-develop
aronasorman Mar 17, 2015
1648ace
Merge branch 'develop' into central-develop
aronasorman Mar 20, 2015
3755b72
Merge branch '0.13.x' into central-develop
aronasorman Mar 30, 2015
d24b7ab
fix the double-colons
aronasorman Mar 30, 2015
05bf1cd
make sure we're not the central server when checking for assessment i…
aronasorman Mar 31, 2015
3aaeea8
wrap unpack assessment item handling in settings.CENTRAL_SERVER state…
aronasorman Mar 31, 2015
5f82a77
Merge pull request #3454 from learningequality/0.13.x
aronasorman Apr 3, 2015
99dbcdb
Merge branch '0.13.x' into central-develop
Apr 6, 2015
c12f0ce
Merge pull request #3482 from jamalex/restore_response_count_to_its_f…
jamalex Apr 6, 2015
a276b0c
Additional diagnostic error data for bad client device import.
jamalex Apr 7, 2015
8a4d4be
Set the django module if given by kwargs.
Apr 7, 2015
f0bd27c
use CENTRAL_SERVER_URL instead of SECURESYNC_PROTOCOL +
Apr 7, 2015
34a27be
error out on registration when we get an invalid user error message.
Apr 7, 2015
65330fb
parse self.url.
Apr 7, 2015
eb670d5
Stop using deprecated command, update requirements, fix import
MCGallaspy Mar 31, 2015
8ffa4d2
use absolute path in kalitectl.py, update screenshot command
MCGallaspy Apr 1, 2015
ea857a6
Remove errant pdb.set_trace
MCGallaspy Apr 1, 2015
3ae33e7
Add language option to screenshots management command
MCGallaspy Apr 2, 2015
3510566
Fix language option on screenshot mgmt command
MCGallaspy Apr 2, 2015
3d273f2
Set up docs for translation. Need translated pofiles.
MCGallaspy Apr 2, 2015
ab8bc62
Don't build screenshots when making messages
MCGallaspy Apr 2, 2015
263e52b
Update README
MCGallaspy Apr 6, 2015
b0a9d48
Add dep for python 2.6
MCGallaspy Apr 7, 2015
83006de
Merge pull request #3490 from MCGallaspy/pick-docs-intl
aronasorman Apr 7, 2015
a253c1b
Merge pull request #3498 from learningequality/0.13.x
jamalex Apr 9, 2015
c3cc5ef
Merge pull request #3515 from jamalex/0.13-fixes
jamalex Apr 12, 2015
626f915
Merge branch 'develop' into central-develop
May 27, 2015
9801731
add missing import.
May 27, 2015
452e19e
Merge remote-tracking branch 'refs/remotes/u/develop' into central-de…
May 28, 2015
4d408f3
Merge branch 'develop' into central-develop
May 29, 2015
4771c3c
Merge branch 'develop' into central-develop
Jun 1, 2015
171f2f7
Merge branch '0.14.x' of github.com:learningequality/ka-lite into cen…
jamalex Jul 7, 2015
1c49921
Merge branch '0.14.x' of github.com:learningequality/ka-lite into cen…
jamalex Jul 7, 2015
de616c3
Merge branch 'tweaks_based_on_central_server' into central-develop
jamalex Jul 9, 2015
c682fa4
Merge pull request #4084 from jamalex/setup_fixes
jamalex Jul 11, 2015
5942943
Merge branch 'tweaks_based_on_central_server' of github.com:jamalex/k…
jamalex Jul 12, 2015
259d8ae
Merge branch '0.14.x' of github.com:learningequality/ka-lite into cen…
jamalex Jul 24, 2015
cabc30f
Merge branch '0.14.x' of github.com:learningequality/ka-lite into cen…
jamalex Jul 24, 2015
2a5fa54
Merge pull request #4161 from learningequality/0.14.x
jamalex Jul 25, 2015
590752e
Softload KHAN_ASSESSMENT_ITEM_DATABASE_PATH in case DB not defined.
jamalex Jul 27, 2015
1f87909
Merge pull request #4171 from jamalex/central_server_fixes
jamalex Jul 28, 2015
8adb6f3
Merge pull request #4207 from jamalex/securesync_fixes
jamalex Aug 5, 2015
68c6ffe
Merge pull request #4230 from rtibbles/zone_space_coach_reports
jamalex Aug 13, 2015
30f8bd1
Merge pull request #4236 from rtibbles/zone_space_coach_reports
jamalex Aug 13, 2015
6f62e04
Merge pull request #4243 from learningequality/0.14.x
jamalex Aug 15, 2015
41923fc
Safer BaseView.remove: remove el before reflow, no infinite recursion.
jamalex Aug 18, 2015
d6abcae
Merge pull request #4252 from jamalex/safer_removal_recursion_14
jamalex Aug 18, 2015
0c49a77
Merge pull request #4255 from jamalex/fix_container_overflow
jamalex Aug 18, 2015
fbc2912
Merge pull request #4279 from learningequality/0.14.x
aronasorman Aug 24, 2015
c01942e
Merge remote-tracking branch 'upstream/0.15.x' into central-develop
MCGallaspy Sep 18, 2015
719921a
Remove duplicate TestCase subclass
MCGallaspy Sep 18, 2015
361834b
Merge pull request #4455 from MCGallaspy/central-develop
MCGallaspy Sep 18, 2015
1323db0
Add get_cookie to base module & global scope
MCGallaspy Sep 21, 2015
cd4cb41
Do not use os-specific separator
MCGallaspy Sep 22, 2015
e418511
Massage the Popen arguments into windows form
MCGallaspy Sep 22, 2015
4951c10
Merge pull request #4465 from MCGallaspy/central-develop
rtibbles Sep 22, 2015
90d20c6
Merge pull request #4498 from MCGallaspy/central-develop
rtibbles Sep 24, 2015
d7cdc84
Merge pull request #4513 from learningequality/0.15.x
rtibbles Oct 8, 2015
dc56afc
Merge pull request #4683 from learningequality/0.15.x
aronasorman Nov 24, 2015
c789b22
Merge remote-tracking branch 'origin/0.16.x' into central-develop
aronasorman Mar 17, 2016
bf2cfa4
Merge pull request #5014 from learningequality/update-central-develop
jamalex Mar 21, 2016
cb25c26
Merge pull request #5034 from jamalex/pin_npm_versions
jamalex Mar 23, 2016
45cc3e4
Add options object to reference org_id from to ZoneSelectView in data…
rtibbles Apr 20, 2016
a118a2d
Merge pull request #5095 from rtibbles/central-develop-org-id
jamalex Apr 20, 2016
bdf518c
Remove .gitmodules file causing RTD to break
Nov 14, 2016
635c5ea
Remove unused submodule for RTD to build
Nov 16, 2016
a2b59b0
Make version visible in docs for installation guide - fixes #5165
Mar 16, 2017
cc760cf
Fix wrong message about overwriting database when there is none:
Aug 19, 2017
1ba44dc
Merge remote-tracking branch 'upstream/master' into 0.17.x
Jan 12, 2019
3b4bd80
Merge remote-tracking branch 'upstream/master' into 0.17.x-master
Jan 12, 2019
768629a
Always raise an error when importing from django.contrib.gis
Jan 12, 2019
d5a3462
Merge pull request #5591 from benjaoming/0.17.x-master
benjaoming Jan 12, 2019
56bee65
release note for libgeos fix [ci-skip]
Jan 12, 2019
703b862
Merge pull request #5592 from benjaoming/gis-fix
benjaoming Mar 7, 2019
3555f82
Merge tag '0.16.x' into central-develop
Jul 4, 2019
9272dcf
Merge remote-tracking branch 'upstream/0.16.x' into central-develop
Jul 4, 2019
3fccd47
Merge branch 'central-develop' into central-develop-into-0.17.x
Jul 15, 2019
a56efba
Remove duplicated line
Jul 15, 2019
54bc417
Remove unused JS and cherry-picked CSS from #3033
Jul 16, 2019
650a95d
Remove unused .json file from #3033
Jul 16, 2019
e554397
Remove Nalanda-specific code from #3033
Jul 16, 2019
338fc49
call_outside_command_with_output moved to central server
Jul 17, 2019
f2ae87c
Remove debug statement
Jul 17, 2019
5161c9b
Remove unreferenced JS library jquery.cookie.js
Sep 2, 2019
bc367a0
Unify approach from 0.17.x and central-develop
Sep 2, 2019
6dd0c9d
Add missing field description and expand Version length
Sep 3, 2019
fe802df
Merge pull request #5595 from benjaoming/central-develop-into-0.17.x
Sep 3, 2019
42a573d
Merge pull request #5597 from benjaoming/fix-version-issue
Sep 7, 2019
e269639
Merge pull request #5506 from benjaoming/fix-database-move-message
Sep 7, 2019
33830f4
Clean up test requirements a bit
Sep 10, 2019
478c9a6
Re-introduce testing commands, used by ecosystem tests on centralserver
Sep 12, 2019
7f8a3ae
Merge pull request #5601 from benjaoming/reintroduce-testing-commands
Sep 12, 2019
894069e
Bump requests to latest version, fix import error in non-vendored pac…
Oct 28, 2019
3fa70f9
Merge pull request #5608 from benjaoming/requests-upgrade
Oct 28, 2019
4340aa2
Fix re-added column in South migration
Oct 28, 2019
d5f286b
Merge pull request #5610 from benjaoming/fix-migration
Oct 29, 2019
2c64bb3
Merge pull request #5600 from benjaoming/req-clean
Nov 1, 2019
3da6bc4
Using pip install -t had also compiled pyc files for the local platform
Nov 1, 2019
5184c7c
Update release notes
Nov 1, 2019
41b403d
Merge pull request #5611 from benjaoming/fix-pyc-files-in-dist
Nov 1, 2019
475e81e
Point to staging.kalite.learningequality.org when developing
Nov 1, 2019
a0242d7
Merge pull request #5613 from benjaoming/fix-dev-settings-staging
Nov 2, 2019
b921e6b
Fix issues with sync'ing being slow or timing out #5614
Nov 8, 2019
2871915
Ensure an understandable log by logging django requests
Nov 8, 2019
e65b7ab
Add release notes
Nov 8, 2019
c58d603
Merge pull request #5615 from benjaoming/fix-sync-issues
Nov 8, 2019
88f23c4
Ignore build artifact kalite/VERSION
Nov 8, 2019
472a946
Improve feedback from AssertionError
Nov 8, 2019
c5d43df
Merge pull request #5616 from benjaoming/ignore-VERSION
Nov 8, 2019
1a2baff
Merge pull request #5617 from benjaoming/testing-feedback
Nov 8, 2019
6c46b2a
centralserver imports (albeit hackish) should anticipate a sane path …
Nov 14, 2019
6e60f6f
Merge pull request #5618 from benjaoming/centralserver-imports
Nov 14, 2019
00d95e9
Fix an unstable test utility
Nov 25, 2019
0cf4f79
Merge pull request #5621 from benjaoming/unstable-test
Nov 25, 2019
504a23f
CSP header should not block development Central Server
Dec 3, 2019
3c38e10
Fixes control panel errors occurring in certain cases on Central Server
Dec 3, 2019
8937a36
Merge pull request #5623 from benjaoming/fix-control-panel-central
Dec 3, 2019
64fe3fd
Merge pull request #5622 from benjaoming/fix-csp-dev
Dec 3, 2019
4437ff0
Fix a typo in decorator pattern
Dec 3, 2019
3d698ec
Merge pull request #5624 from benjaoming/fix-control-panel-central
Dec 3, 2019
1aff2dc
Add missing *not* in exception help text
Dec 9, 2019
eadd414
Fix missing test data for video logs
Dec 9, 2019
ddb54b1
Unpin Python versions to avoid security warnings
Jan 17, 2020
524b1c5
Merge pull request #5625 from benjaoming/missing-not
Jan 17, 2020
d8c6f7b
Add upper bounds to some libs, setuptools fails on Py 3.4
Jan 17, 2020
e817236
Upper bound httplib2 because of upstream bug
Jan 19, 2020
e645658
Merge pull request #5626 from benjaoming/pipeline-bump
Jan 19, 2020
458d7a8
WIP Circle CI 2.0 conf
Jan 19, 2020
9c55360
Downgrade Node
May 24, 2020
f894019
Fix a wrongly wrapped line
May 24, 2020
7ca504b
tests to require build to be completed
May 24, 2020
feb2da0
update old pattern for adding geckodriver to path
May 24, 2020
ebd04b1
Make nothing parallel, Dockerized w/ artifacts etc. is not a rabbit h…
May 24, 2020
a6942a4
Upgrade pip before installing virtualenv
May 24, 2020
529831d
Expand sleep step due to a timeout (exit status 5) in previous `kalit…
May 24, 2020
6f7af73
Put an upper bould on pex
May 24, 2020
d858195
Debug firefox version
May 24, 2020
59c7015
Try bionic for builds due to Python 3.4 incompatibility in newer virt…
May 24, 2020
0481ee1
Change Firefox version (v75 did not work w/ current Selenium/geckodri…
May 24, 2020
436ebff
Add orb to use older Firefox
May 24, 2020
c26940e
Pin nodejs version because of Bionic update
May 24, 2020
29b8b33
Disable installing geckodriver in script
May 24, 2020
c5c6cda
nodejs repository is borked so don't pin... 6.14 is reported, althoug…
May 24, 2020
d069371
Bump Firefox to v55
May 24, 2020
b8dc3ea
Specify Python 3.5 (from Vader build server)
May 26, 2020
a3b3b76
Try latest Firefox and geckodriver
May 26, 2020
3c9eb77
Fix a syntax error
May 28, 2020
024e77c
Update selenium following tests w/ Firefox 76 and geckodriver 0.26.0
May 28, 2020
dc12c58
Move sauceclient import to local scope, since it's not a dependency
May 28, 2020
8b0f54f
Simple fix for failing test
May 28, 2020
52cc6b4
Suspecting bad test isolation, move bdd-only tests to run after no-bdd
May 28, 2020
2d144e6
Skip unreliable test cases which are not assumed to actually be broke…
May 28, 2020
578fe27
Disable 3 more tests that turned out unreliable
May 28, 2020
00387b6
Disable jshint
May 28, 2020
923aa17
Disable artifact upload to Google Cloud, it is not necessary and buggy
May 28, 2020
da9ca76
Update the Getting Started instructions for developers
May 28, 2020
22af528
Collect coverage for kalite management commands invoked
May 29, 2020
b16d38d
Add test of the setup command
May 29, 2020
c72582a
Disabling unreliable test - StaleElementReferenceException
May 29, 2020
e85c24b
Merge pull request #5627 from benjaoming/circle-ci-2
May 29, 2020
02447ac
Scrubbed mentions of torrent and added warning to use Kolibri
radinamatic Apr 16, 2021
7894f84
Merge pull request #5630 from radinamatic/update-docs
radinamatic Apr 16, 2021
81f326c
Update the image to show the proper font
radinamatic Apr 19, 2021
8cd9579
Merge pull request #5632 from radinamatic/update-docs
radinamatic Apr 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ steps:
- label: Build windows installer
command: .buildkite/build_windows_installer.sh

- wait

- label: Upload artifacts
command: .buildkite/setup_and_upload_artifacts.sh && docker image prune -f
# Disable because Vader's virtualenv command is buggy (why?) and artifacts can be
# found in Buildkite instead
# - wait
#
# - label: Upload artifacts
# command: .buildkite/setup_and_upload_artifacts.sh && docker image prune -f
7 changes: 5 additions & 2 deletions .buildkite/setup_and_upload_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ PIP="$SCRIPTPATH/env/bin/pip"
PYTHON="$SCRIPTPATH/env/bin/python"

echo "Creating virtualenv..."
virtualenv -p python3 env
# This specifies 3.5 because of broken old server
virtualenv -p python3.5 env

$PIP freeze
$PIP install setuptools\<44
echo "Installing requirements..."
$PIP install -r requirements_pipeline.txt
$PIP install -r requirements_pipeline.txt --upgrade

echo "Preparing artifact directories"
mkdir -p dist
Expand Down
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2.1

jobs:
build-test:
working_directory: ~/kalite
docker:
- image: circleci/python:2.7-stretch-node-browsers
steps:
- browser-tools/install-browser-tools:
install-firefox: true
install-geckodriver: true
install-chrome: false
# firefox-version: "74.0"
# geckodriver-version: "v0.26.0"
- checkout
- run: pip install -r requirements_sphinx.txt
- run: pip install -e .
- run:
name: "Downgrade Node.js"
command: |
curl -sSL "https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.xz" | sudo tar --strip-components=2 -xJ -C /usr/local/bin/ node-v6.9.5-linux-x64/bin/node
- run: make assets
- run: make docs
- run: firefox -v
- run: coverage run bin/kalite manage setup --noinput --traceback
- run: coverage run bin/kalite start --traceback -v2
- run: sleep 10s # Necessary for server to be ready
- run: coverage run bin/kalite status
- run: coverage run bin/kalite stop --traceback -v2
- run: coverage run bin/kalite manage test --no-bdd
- run: coverage run bin/kalite manage test --bdd-only
- run: bash <(curl -s https://codecov.io/bash)
# Disable jshint
# - run: npm install jshint
# - run: jshint kalite/*/static/js/*/
- run:
name: Upload CodeCov.io Data
command: bash <(curl -s https://codecov.io/bash)
when: always # Uploads code coverage results, pass or fail

orbs:
browser-tools: circleci/browser-tools@1.0.0

workflows:
version: 2
build_and_test:
jobs:
- build-test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
kalite/VERSION

# Ignore this
# File created by Coverage
.coverage
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ubuntu:xenial
FROM ubuntu:bionic

# install latest python and nodejs
RUN apt-get -y update && \
apt-get install -y software-properties-common curl && \
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
apt-get -y update && apt-get install -y python2.7 python-pip git nodejs gettext wget
apt-get -y update && apt-get install -y python2.7 python-pip git gettext wget "nodejs=6*"

COPY . /kalite
VOLUME /kalitedist/
Expand All @@ -13,12 +13,12 @@ VOLUME /kalitedist/
ENV PIP=/kalite/kalite_env/bin/pip

# for mounting the whl files into other docker containers
RUN pip install virtualenv && virtualenv /kalite/kalite_env --python=python2.7
RUN pip install pip --upgrade && pip install virtualenv && virtualenv /kalite/kalite_env --python=python2.7

RUN $PIP install -r /kalite/requirements_dev.txt \
&& $PIP install -r /kalite/requirements_sphinx.txt \
&& $PIP install -e /kalite/. \
&& $PIP install pex
&& $PIP install pex\<2.1

# Override the PATH to add the path of our virtualenv python binaries first so it's python executes instead of
# the system python.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ sdist: clean docs assets
python setup.py sdist --formats=$(format) --static
python setup.py sdist --formats=$(format)

dist: clean docs assets
dist: clean docs assets
# Building assets currently creates pyc files in the source dirs,
# so we should delete those...
make clean-pyc
python setup.py sdist --formats=$(format)
python setup.py bdist_wheel
pip install -t kalite/packages/dist -r "requirements.txt"
pip install -t kalite/packages/dist -r "requirements.txt" --no-compile
rm -rf kalite/packages/dist/*.dist-info # pip installs from PyPI will complain if we have more than one dist-info directory.
rm -r kalite/packages/dist/man kolibri/dist/bin || true # remove the two folders introduced by pip 10
python setup.py sdist --formats=$(format) --static
Expand Down
34 changes: 0 additions & 34 deletions circle.yml

This file was deleted.

Binary file added docs/Kolibri-launch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 77 additions & 27 deletions docs/developer_docs/environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,105 @@
Getting started
===============

.. warning:: These directions may be out of date! This page needs to be consolidated with the `Getting Started page on our wiki <https://github.com/learningequality/ka-lite/wiki/Getting-started>`_.
.. tip:: Find additional knowledge in `Getting Started on our Github Wiki <https://github.com/learningequality/ka-lite/wiki/Getting-started>`_.

Recommended setup
_________________
KA Lite is discontinued and thus contains several legacy and end-of-life. It is recommended that you set up your development environment in a virtual machine, for instance using `Virtualbox <https://www.virtualbox.org/>`__.

Ubuntu 18.04 LTS
________________

KA Lite is like a normal django project, if you have done Django before, you will recognize most of these steps.
To avoid walking down an uncertain path when you set up this project, consider using Ubuntu 18.04 LTS in a virtual machine.

#. Check out the project from our `github`_
#. Create a virtual environment "kalite" that you will work in::

sudo pip install virtualenvwrapper
mkvirtualenv kalite
workon kalite
These steps are largely based on the ``Dockerfile`` from the repository's root.

#. Install kalite in your virtualenv in "editable" mode, meaning that the source is just linked::

cd path/to/repo
pip install -e .
#. Install prerequisits. The development environment needs Python 2.7, pip and curl.

#. Install additional development tools::
pip install -r requirements_dev.txt
.. code-block:: bash

sudo apt install python2.7 curl python3-pip git make

#. Build static assets such as javascript::

make assets
#. Add the nodejs 6.x repo and install it.

.. code-block:: bash

# Get the key and add the repo
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
echo 'deb https://deb.nodesource.com/node_6.x bionic main' | sudo tee /etc/apt/sources.list.d/nodesource.list

# Overrule the newer version shipped by Ubuntu
printf "Package: *\nPin: origin deb.nodesource.com\nPin-Priority: 600" | sudo tee /etc/apt/preferences.d/nodejs

# Update and install
sudo apt update
sudo apt install nodejs

#. Fork the project on `github`_, clone the git repository

git clone git@github.com:USERNAME/ka-lite.git
cd ka-lite

#. Create a virtual environment and activate it:

.. code-block:: bash

pip3 install virtualenv
virtualenv -p python2.7 venv

# Activate the virtualenv - you need to do that everytime you open a new command line
source venv/bin/activate

#. Install a development version of KA Lite inside the virtual environment:

.. code-block:: bash

pip install -e .

#. Install development requirements:

.. code-block:: bash

# Development
pip install -r requirements_dev.txt
# Building docs
pip install -r requirements_sphinx.txt
# Test requirements
pip install -r requirements_test.txt

#. Install JavaScript (nodejs) libraries and build them:

.. code-block:: bash

make assets

#. You are now ready to run KA Lite. You can run a foreground version of the HTTP server like this:

.. code-block:: bash

kalite start --foreground

#. Run the setup, which will bootstrap the database::

.. code-block:: bash

kalite manage setup

#. Run a development server and use development settings like this::

.. code-block:: bash

kalite manage runserver --settings=kalite.project.settings.dev


You can also change your ``~/.kalite/settings.py`` to point to ``kalite.project.settings.dev`` by default, then you do not have to specify `--settings=...` every time you run kalite.
.. tip:: You can also change your ``~/.kalite/settings.py`` to point to ``kalite.project.settings.dev`` by default, then you do not have to specify `--settings=...` every time you run kalite.

Now, every time you work on your development environment, just remember to switch on your virtual environment with ``workon kalite``.
Every time you work on your development environment, remember to switch on your virtual environment with ``source venv/bin/activate``. You can use `virtualenvwrapper <https://virtualenvwrapper.readthedocs.io/en/latest/>`__ for more convenient ways of managing virtual envs.

.. _github: https://github.com/learningequality/ka-lite


Static vs. Dynamic version
__________________________

Apart from Python itself, KA Lite depends on a couple of python applications,
Apart from Python itself, KA Lite depends on a couple of Python applications,
mainly from the Django ecosystem. These dependencies can be installed in two ways:

* **Dynamic**: Means dependencies are automatically installed through
Expand Down Expand Up @@ -79,10 +130,9 @@ Running tests
_____________


On Circle CI, we run Selenium 2.53.6 because it works in their environment. However,
for more recent versions of Firefox, you need to upgrade Selenium::
Ensure that you install the test requirements::

pip install selenium\<3.5 --upgrade
pip install -r requirements_test.txt

To run all of the tests (this is slow)::

Expand Down
12 changes: 12 additions & 0 deletions docs/developer_docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Developer Docs
==============

.. warning::

**KA Lite is no longer under active development**

Our focus is now on our new learning platform, `Kolibri <https://learningequality.org/kolibri/>`__. If you’re just getting started, we highly recommend using Kolibri instead of KA Lite because it supports more content and will receive regular updates, and more ongoing support.

.. figure:: ../Kolibri-launch.png
:align: center

New users can experience Khan Academy and much more with Kolibri!


Useful stuff our devs think that the rest of our devs ought to know about.

.. toctree::
Expand Down
18 changes: 12 additions & 6 deletions docs/faq.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Frequently Asked Questions
==========================

.. warning::

**KA Lite is no longer under active development**

Our focus is now on our new learning platform, `Kolibri <https://learningequality.org/kolibri/>`__. If you’re just getting started, we highly recommend using Kolibri instead of KA Lite because it supports more content and will receive regular updates, and more ongoing support.

.. figure:: Kolibri-launch.png
:align: center

New users can experience Khan Academy and much more with Kolibri!


Something isn't working - does KA Lite have log files?
------------------------------------------------------

Expand Down Expand Up @@ -55,12 +67,6 @@ There are many ways to set an environment variable either temporarily or permane
The change requires that you first stop the server, change the ``KALITE_HOME`` environment variable, and then copy the contents from the default ``.kalite`` directory to the new directory you just specified. When you start the server again, all your files should be seamlessly detected at that location.


I would like to download the videos for KA Lite via BitTorrent, is this possible?
---------------------------------------------------------------------------------

Yes! Please see the instructions for ":ref:`bulk-video-downloads`".


.. _content_pack_retrieve_offline:

How can I install a language pack without a reliable internet connection?
Expand Down
12 changes: 12 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ KA Lite Documentation
by `Learning Equality <https://learningequality.org/>`__


.. warning::

**KA Lite is no longer under active development**

Our focus is now on our new learning platform, `Kolibri <https://learningequality.org/kolibri/>`__. If you’re just getting started, we highly recommend using Kolibri instead of KA Lite because it supports more content and will receive regular updates, and more ongoing support.

.. figure:: Kolibri-launch.png
:align: center

New users can experience Khan Academy and much more with Kolibri!


Welcome to the KA Lite Documentation page! Here, you will find all the
information needed to set up the KA Lite software. Additionally, there's
information on how to manage KA Lite and how to perform role-specific
Expand Down
11 changes: 11 additions & 0 deletions docs/installguide/install_main.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
KA Lite Installation Guides
===========================

.. warning::

**KA Lite is no longer under active development**

Our focus is now on our new learning platform, `Kolibri <https://learningequality.org/kolibri/>`__. If you’re just getting started, we highly recommend using Kolibri instead of KA Lite because it supports more content and will receive regular updates, and more ongoing support.

.. figure:: ../Kolibri-launch.png
:align: center

New users can experience Khan Academy and much more with Kolibri!

Installers for a number of platforms are available, each with separate
installation steps. Click ahead for installation instructions, and if you're
updating be sure to check out our release notes.
Expand Down
Loading