Commit Graph

798 Commits

Author SHA1 Message Date
Tim McCormack
1e55b4e1b6 feat: Add utility for logging sensitive information using encryption (#29682)
Introduces `common.djangoapps.util.log_sensitive module` for
public-key encryption of sensitive debug information in log
messages, including CLI commands for generating keys and
decrypting log output.

Also:

- Adds `PyNaCl` to base requirements for encryption tools
- Requirements upgrade

ref: ARCHBOM-1940
2022-01-05 21:37:45 +00:00
edX requirements bot
781d248088 chore: Updating Python Requirements (#29702) 2022-01-04 14:33:02 +05:00
Aarif
76a8aaf6cd fix: updated the unit tests workflow to simplify job names and read test paths from a separate file (#29472) 2021-12-09 18:21:17 +05:00
edX requirements bot
bb20b17428 Python Requirements Update (#29516)
* chore: Updating Python Requirements

* fix: fix pylint issues

Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com>
2021-12-08 14:13:27 +05:00
Mohammad Ahtasham ul Hassan
8320dcb0e8 build: update stylint and eslint thresholds (#29471)
* build: update stylint and eslint thresholds

* Removed stylint threshold

* Update test_stylelint.py

* fix: fix eslint issues
2021-12-07 20:09:13 +05:00
Usama Sadiq
780a6f3c2d Revert "chore: install codejail from pypi (#29481)" (#29501)
This reverts commit 21551095ac.
2021-12-02 22:19:15 +05:00
Mohammad Ahtasham ul Hassan
21551095ac chore: install codejail from pypi (#29481)
* chore: install codejail from pypi

* chore: Updating Python Requirements

* chore: Updating Python Requirements

* fix: fixed failing tests

* fix: fixed pytest failures

* fix: fixed failing test bug

* Update mocks.py

Co-authored-by: edX requirements bot <testeng+edx-requirements-bot@edx.org>
2021-12-02 17:07:29 +05:00
Aarif
39fe1a20e4 feat: move unit tests to github actions on self-hosted runners (#28873) 2021-11-18 19:09:31 +05:00
Kyle McCormick
470be08a83 build: check for __init__.py files in each directory 2021-10-21 09:54:22 -04:00
Usama Sadiq
5a6d056568 build: remove python 3.5 requirement files (#29070) 2021-10-20 15:59:35 +05:00
Ned Batchelder
a6cc52144b test: don't run xss-commit-linter unless we have a target branch 2021-10-19 12:24:16 -04:00
Ned Batchelder
d1aa75e3f2 build: run xss-commit-linter verbosely 2021-10-19 12:24:16 -04:00
Ned Batchelder
79a7ad52a7 build: use the correct base branch for xsscommitlint
It might not be master!

(cherry picked from commit fc894e1fd8977ac450118887a1914ca248e3571c)
2021-10-16 07:39:46 -04:00
edX requirements bot
6f600d495c chore: Updating Python Requirements (#29010) 2021-10-14 13:53:43 +05:00
Usama Sadiq
db99cbf79c Use latest pip & pip-tools in jenkins_env (#29004)
* fix: replace pip-sync with pip install in env creation

* fix: use pip-tools==6.4.0 with pip==21.3
2021-10-13 18:40:18 +05:00
Muhammad Soban Javed
e2dc24af3a fix: update quality checks for django 3.2 (#28958) 2021-10-06 23:44:48 +05:00
Aarif
c162a25045 fix: fixed build errors blocking django 3.1 and 3.2 tests (#28923) 2021-10-05 00:39:08 +05:00
M. Zulqarnain
0fa556992c BOM-2850: Upgrade django-cors-headers to 3.5.0 (#28833)
* chore: upgrade django-cors-headers

* chore: Updating Python Requirements (#28834)

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2021-09-24 17:06:06 +05:00
edX requirements bot
0f528f9125 Python Requirements Update (#28806)
* chore: Updating Python Requirements

* fix: disabled unused import warnings

Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com>
2021-09-21 14:21:00 +05:00
edX requirements bot
633ba0a40b chore: Updating Python Requirements (#28771) 2021-09-17 13:17:20 +05:00
Aarif
0d58faa926 added a workflow to build and push CI runner docker image (#28539) 2021-09-10 05:44:21 +05:00
Usama Sadiq
c6ecdf735c BOM-2715: Update the post-pip-compile script (#28301)
* update the post-pip-compile script to fix the py38.txt parsing for sandbox requirements.
2021-08-23 12:09:40 +05:00
edX requirements bot
c09d226b24 chore: Updating Python Requirements (#28375) 2021-08-03 12:34:51 +05:00
edX requirements bot
5d64b6bf3d chore: Updating Python Requirements (#28227) 2021-07-20 11:03:37 +05:00
edX requirements bot
2bf176d523 chore: Updating Python Requirements (#28055) 2021-06-29 12:22:47 +05:00
Kshitij Sobti
b083ad13d6 refactor: Move CourseEditLTIFieldsEnabledFlag to xblock-lti-consumer (#27529) 2021-06-24 14:31:50 +05:00
Julia Eskew
47b37ed191 Revert "fix: Disable column-statistics during mysqldump command."
This reverts commit b84e8937ff.
2021-06-10 16:30:08 -04:00
Julia Eskew
b84e8937ff fix: Disable column-statistics during mysqldump command. This option
was recently enabled by default in mysqldump, but the generation of
histogram statistics fails in devstack during this script's mysqldump
commands. The SQL statement and output of the failure:

mysql> SELECT \
COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') \
FROM information_schema.COLUMN_STATISTICS \
WHERE \
SCHEMA_NAME = 'edxtest' AND \
TABLE_NAME = 'agreements_integritysignature';
ERROR 1109 (42S02): Unknown table 'COLUMN_STATISTICS' in information_schema
2021-06-10 12:21:24 -04:00
Aarif
58a54f8d0b BOM-2543: Remove the diff-quality step from quality checks (#27619)
* build: Removed the diff-quality step
Applied lint-amnesty on all the warnings
Removed pylint thresholds comparison code and related tests

Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com>
2021-06-07 18:37:06 +05:00
edX requirements bot
01408d986e Updating Python Requirements (#27778) 2021-05-31 11:44:46 +05:00
edX requirements bot
5d69d858e2 Updating Python Requirements (#27740) 2021-05-27 12:27:37 +05:00
stvn
2f2355b705 build: add script to list installed XBlocks
Story
=====
As an XBlock developer,
I want to know which XBlocks are installed
so I can debug (and know which to add to Advanced Settings in Studio).

Testing
=======
- `make studio-shell`
- `python scripts/xblock/list-installed.py`

Integration
===========
I plan to invoke this from `devstack` (after installing XBlocks).

Tickets
=======
Fixes CENG-95
Fixes stvstnfrd/openedx-meta#153
2021-05-26 15:02:22 -07:00
edX requirements bot
acb106c913 chore: Updating Python Requirements 2021-05-17 03:15:59 -04:00
Usama Sadiq
4f4be6538a BOM-2477: pylint warnings lint-amnesty (#27585) 2021-05-11 17:22:40 +05:00
Usama Sadiq
a597f1c783 refactor: ran pyupgrade second iteration (#27463) 2021-05-11 15:19:48 +05:00
Ali-D-Akbar
3da5198a5f chore: updating thresholds after security fixes #27391 2021-04-22 13:43:03 +05:00
Kyle McCormick
4531e15519 refactor!: stop using import_shims
Attempting to import packages from
lms/djangoapps, cms/djangoapps, or common/djangoapps
as if they are import roots will now
simply raise ImportErrors (like any other invalid
import) instead of DeprecatedEdxPlatformImportError.

See docs/decisions/0007-sys-path-modification-removal.rst
for more details.
2021-04-12 09:43:59 -04:00
Jawayria
96e1bffc97 Refactor: Removed unused imports
Removed unused imports from docs, scripts, pavelib
2021-04-09 16:03:53 +05:00
Azan Bin Zahid
705253e20a chore: update thresholds after IM security fixes 10 2021-04-06 15:40:04 +05:00
edX requirements bot
3decc70c47 Updating Python Requirements (#27019) 2021-03-16 14:11:32 +05:00
M. Zulqarnain
2c44315ce0 refactor: pyupgrade on pavelib & scripts (#26769) 2021-03-12 14:14:53 +05:00
Ali-D-Akbar
bea2b12095 update thresholds after IM security fixes 9 2021-02-17 14:58:33 +05:00
usamasadiq
eb0f44a135 Lower the pylint threshold to 200 2021-02-10 18:15:10 +05:00
usamasadiq
1e2aa1dec5 Apply manesty to convention warnings 2021-02-09 17:09:19 +05:00
Ali Akbar
280829705a Merge pull request #26433 from edx/IM/security-fixes-8-thresholds
Update Thresholds
2021-02-09 10:53:42 +05:00
usamasadiq
ab678daaa5 Lower down pylint error thresholds 2021-02-09 00:15:33 +05:00
Ali-D-Akbar
da1330de9e update thresholds after IM security fixes 8 2021-02-08 22:27:21 +05:00
Ali Akbar
966d7ec785 Merge pull request #26361 from edx/IM/security-fixes-7-thresholds
update thresolds after IM security fixes 7
2021-02-04 10:38:45 +05:00
Aarif
6af99e64bf replaced unittest assertions pytest assertions (#26270) 2021-02-04 10:08:39 +05:00
Ali-D-Akbar
05bc0b9273 update thresolds after IM security fixes 7 2021-02-04 09:50:20 +05:00