-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: adding pylint support * fix: standard requirements files * fix: patterned on lti xb, work around pip bug * fix: support for standard make targets * fix: modeled on lti xb, standard targets * fix: adding new in files to upgrade * fix: adding standard translation targets * fix: quality * fix: unused import * fix: irrelevant disable * fix: adding a specific req file for quality * fix: adding a basic tox file * fix: adding a manifest * fix: adding a NOTICE file * fix: also upgrade quality requirements * fix: removing Django 4 for now * fix: adding ci * fix: adding ci related requirements * fix: processing new requirements * fix: update requirements * fix: simplified test entry * fix: install pytest in the venv * fix: make upgrade * fix: pointless test to exercise the harness * fix: making module * fix: quality * fix: adding CI badge * fix: use a title * fix: iterate toward README standard * fix: coverage config * fix: unmix md and rst * fix: mixed up link * fix: changing to RST * fix: more conversion fixes * fix: more syntax * fix: more syntax * fix: ffs * fix: rst syntax * fix: so fiddly * fix: so fiddly * fix: more fiddles * fix: images Co-authored-by: Edward Zarecor <ed@tcril.org>
- Loading branch information
Showing
30 changed files
with
1,696 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# .coveragerc for xblock-lti-consumer | ||
[run] | ||
data_file = .coverage | ||
source = done | ||
omit = */urls.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
run_tests: | ||
name: Tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
python-version: ['3.8'] | ||
toxenv: [py38-django32, quality] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install pip | ||
run: pip install -r requirements/pip.txt | ||
|
||
- name: Install Dependencies | ||
run: pip install -r requirements/ci.txt | ||
|
||
- name: Run Tests | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
run: tox | ||
|
||
- name: Run Coverage | ||
if: matrix.python-version == '3.8' && matrix.toxenv=='py38-django32' | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
flags: unittests | ||
fail_ci_if_error: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include requirements/base.in | ||
include NOTICE | ||
include LICENSE | ||
include requirements/constraints.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Open edX Done XBlock | ||
|
||
Copyright (C) 2015-2022, The Center for Reimagining Learning | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
########## | ||
DoneXBlock | ||
########## | ||
| |License: AGPL v3| |Python CI| |Publish package to PyPi| | ||
.. |License: AGPL v3| image:: https://img.shields.io/badge/License-AGPL_v3-blue.svg | ||
:target: https://www.gnu.org/licenses/agpl-3.0 | ||
|
||
.. |Python CI| image:: https://github.com/openedx/DoneXBlock/actions/workflows/ci.yml/badge.svg | ||
:target: https://github.com/openedx/DoneXBlock/actions/workflows/ci.yml | ||
|
||
.. |Publish package to PyPi| image:: https://github.com/openedx/DoneXBlock/actions/workflows/pypi-release.yml/badge.svg | ||
:target: https://github.com/openedx/DoneXBlock/actions/workflows/pypi-release.yml | ||
|
||
Purpose | ||
======= | ||
|
||
Lets a student mark they've finished an activity. The student can | ||
click through two states of the XBlock, shown below: | ||
|
||
| |mark| | ||
| |undo| | ||
.. |mark| image:: completionxblock_mark.png | ||
.. |undo| image:: completionxblock_undo.png | ||
|
||
Status | ||
====== | ||
|
||
Maintained | ||
|
||
Getting Help | ||
============ | ||
|
||
If you're having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community. | ||
|
||
Our real-time conversations are on Slack. You can request a `Slack invitation`_, then join our `community Slack workspace`_. | ||
|
||
For more information about these options, see the `Getting Help`_ page. | ||
|
||
.. _Slack invitation: https://openedx-slack-invite.herokuapp.com/ | ||
.. _community Slack workspace: https://openedx.slack.com/ | ||
.. _Getting Help: https://openedx.org/getting-help | ||
|
||
|
||
How to Contribute | ||
================= | ||
|
||
Details about how to become a contributor to the Open edX project may | ||
be found in the wiki at `How to contribute`_ | ||
|
||
.. _How to contribute: https://openedx.atlassian.net/wiki/spaces/COMM/pages/941457737/How+to+start+contributing+to+the+Open+edX+code+base | ||
|
||
The Open edX Code of Conduct | ||
---------------------------- | ||
|
||
All community members should familarize themselves with the `Open edX Code of Conduct`_. | ||
|
||
.. _Open edX Code of Conduct: https://openedx.org/code-of-conduct/ | ||
|
||
People | ||
====== | ||
|
||
The assigned maintainers for this component and other project details | ||
may be found in `Backstage`_ or groked from inspecting catalog-info.yaml. | ||
|
||
.. _Backstage: https://open-edx-backstage.herokuapp.com/catalog/default/component/DoneXBlock, | ||
|
||
Reporting Security Issues | ||
========================= | ||
|
||
Please do not report security issues in public. Please email security@edx.org. | ||
|
||
|
||
History | ||
======= | ||
|
||
FutureLearn uses this kind of thing to great effect. Students can read | ||
text, watch videos, etc., and indicate when their done. This is | ||
convenient both for progress indication to the student (know what | ||
they've done, and for honor code grading (indicating to us that they | ||
believe they've finished an activity). | ||
|
||
I copied some of the UX patterns from FutureLearn so that users of | ||
both platforms would have consistency of user experience between | ||
MOOCs. I didn't copy them exactly since I wanted to be unambiguously | ||
in the clear with IP issues around look-and-feel, and this was on a short | ||
anough timeline that I did not have a chance to reach out to | ||
FutureLearn for permission. As a footnote, this kind of collaboration | ||
between MOOC providers is probably worth pursuing -- it'd be to the | ||
benefit of learners on all platforms, and ultimately, the industry as | ||
a whole if we had consistency of experience between platforms where | ||
convenient. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
""" | ||
Runtime will load the XBlock class from here. | ||
""" | ||
|
||
from .done import DoneXBlock | ||
|
||
__version__ = '2.0.4' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
Module containing tests for DoneXBlock | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
""" | ||
Tests for the DoneXBlock | ||
""" | ||
|
||
|
||
# Adding a pointless test to exercise CI as this project has not current tests | ||
def test_always_passes(): | ||
assert True |
Oops, something went wrong.