Commit Graph

963 Commits

Author SHA1 Message Date
Kyle McCormick
3e9158e9a8 build(eslint): Ignore Symlinks and Reduce Violation Limit (#36010)
Background: We have a large number of standing eslint violations in our
legacy frontends. Rather than fixing or amnesty-ing all of them, we've
opted to use a simple integer limit of violations. Exceeding this
limit causes the quality check to fail.

Before we moved eslint off of Paver [1], the limit was unreasonably
high (probably due to deprecations that removed violation-rich frontend
code). This was good, except for the fact that we essentially weren't
catching when new violations creeped into the JS code.

So, in [1], we lowered the limit down to the lowest possible value,
which we thought was 1285. However, we've found that this made the check
flaky-- turned out, we have been unintentionally double-counting various
violations due to the symlinks in edx-platform. Some of those symlinks'
existence is dependent on whether and how `npm ci` and `npm run build`
have been run. As a result, 1285 would pass in some contexts, and fail
in other contexts.

The fix is to simply add all the relevant edx-platform symlinks to
.eslintignore. This allows us to lower the violations limit to 734.

[1] https://github.com/openedx/edx-platform/pull/35159
2024-12-11 17:06:53 +00:00
salmannawaz
1573c7b07f build: replace paver quality tests and js commands (#35159) 2024-12-11 19:15:17 +05:00
edX requirements bot
dda76a97af chore: Upgrade Python requirements 2024-12-05 10:48:15 -05:00
Irtaza Akram
ec2a698604 cleanup references of python 2 & <3.11 (#35799)
* chore: cleanup of old python references
2024-11-15 16:58:20 +05:00
Kyle McCormick
2769a00e39 build: Remove unneccessary built-in XBlock Sass built steps (#35833)
Since all built-in block Sass is gone, we remove two final pieces of code:

* the steps in `npm run compile-sass` which compiled `xmodule/assets`, and
* the now-unused `add_sass_to_fragment` function.

This should speed up the edx-platform assets build a little bit.
This commit also includes some minor dev doc updates.

Part of: https://github.com/openedx/edx-platform/issues/35300
2024-11-14 14:05:30 +00:00
Feanil Patel
5cb29848c3 chore: Update lxml
Run `make upgrade-package package='lxml[html_clean]'` to update lxml and
then `make compile-requirements`
2024-11-05 10:44:02 -05:00
edX requirements bot
e1ecf7296c chore: Upgrade Python requirements (#35735) 2024-10-29 12:17:40 +05:00
David Ormsbee
e286d78a29 chore: requirements updates (edx-search 4.1.0 and others) 2024-10-23 12:47:10 -04:00
Usama Sadiq
fcf78db09e fix: pin urllib3 in user retirement scripts (#35699)
* fix: pin urllib3 in user_retirement scripts
2024-10-22 19:16:40 +05:00
edX requirements bot
6d53952a1e chore: Upgrade Python requirements (#35688) 2024-10-22 18:14:37 +05:00
Muhammad Farhan
f078b1444f fix: remove urllib3<2.0.0 constraint and update dependencies (#35533) 2024-10-21 15:35:06 +05:00
edX requirements bot
178ffbbf7c chore: Upgrade Python requirements (#35651) 2024-10-16 22:14:29 +05:00
Diana Huang
e99769b0dd Revert "feat: Unpin xmlsec and lxml."
This reverts commit 6c045c7b39.
2024-10-11 10:58:42 -04:00
Diana Huang
6c045c7b39 feat: Unpin xmlsec and lxml.
We are now on Python 3.11 and running tests
on the latest version of Ubuntu, which seems to mean
we don't need these pins anymore. In fact, it seems
to break while on these pins.
2024-10-10 15:38:15 -04:00
github-actions[bot]
6c3d8fa520 feat: Upgrade Python dependency edx-django-utils (#35575)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: dianakhuang <2952947+dianakhuang@users.noreply.github.com>
2024-10-01 15:35:50 -04:00
edX requirements bot
f5e3635504 chore: Upgrade Python requirements 2024-09-26 10:13:02 -04:00
edX requirements bot
860ca3c204 chore: Upgrade Python requirements 2024-08-19 22:23:27 -04:00
Justin Hynes
e4855536fd Revert: revert generic retirement update (#35317)
* Revert "fix: change settings config to empty list not dict"

This reverts commit b65550c796.

* Revert "fix: dependencies again"

This reverts commit c06416bed7.

* Revert "feat: updated user retirement docs"

This reverts commit c9641b35d4.

* Revert "fix: install dependencies"

This reverts commit a5442b2409.

* Revert "Revert "fix: dependencies""

This reverts commit 4cde950007.

* Revert "fix: dependencies"

This reverts commit 8a1c30ebc5.

* Revert "fix: Add CI update for tests"

This reverts commit 64098b6dab.

* Revert "fix: tests"

This reverts commit 5e636dea16.

* Revert "fix: generalize internal services"

This reverts commit e8f9db428d.

* Revert "fix: quality"

This reverts commit 77ca0f754a.

* Revert "feat: Commerce Coordinator step in retirement pipeline"

This reverts commit c24c87499f.
2024-08-15 12:28:52 -04:00
Jade Olivier
c06416bed7 fix: dependencies again 2024-08-14 11:24:59 +02:00
Jade Olivier
c9641b35d4 feat: updated user retirement docs 2024-08-14 10:21:24 +02:00
Jade Olivier
a5442b2409 fix: install dependencies 2024-08-14 10:21:24 +02:00
Jade Olivier
4cde950007 Revert "fix: dependencies"
This reverts commit 2659ae9fff3ec9a85298cae623097177bd869659.
2024-08-14 10:21:24 +02:00
Jade Olivier
8a1c30ebc5 fix: dependencies 2024-08-14 10:21:24 +02:00
Jade Olivier
5e636dea16 fix: tests 2024-08-14 10:21:24 +02:00
Jade Olivier
e8f9db428d fix: generalize internal services 2024-08-14 10:21:24 +02:00
Jade Olivier
77ca0f754a fix: quality 2024-08-14 10:21:23 +02:00
Jade Olivier
c24c87499f feat: Commerce Coordinator step in retirement pipeline 2024-08-14 10:21:23 +02:00
edX requirements bot
834dc31073 chore: Upgrade Python requirements (#35241) 2024-08-06 19:18:33 +00:00
github-actions[bot]
3c64b747e5 feat: Upgrade Python dependency edx-django-utils (#35235)
Update to latest version with updates to function trace functionality.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: dianakhuang <2952947+dianakhuang@users.noreply.github.com>
2024-08-06 10:25:00 -04:00
Deborah Kaplan
a7f6cf160c feat: removing the from the retirement pipeline (#35215)
although the demographics IDA has not been entirely deprecated as yet,
it is about to be, so removing from the retirement pipeline.
2024-08-01 13:23:50 -04:00
Deborah Kaplan
089b34a6bf feat: removing the demographics application stage 2 (#35186)
* removing the application folder
* removing references in all other files

FIXES: APER-3560
2024-07-26 11:13:35 -04:00
Muhammad Umar Khan
e9e4a3d041 feat!: upgrade pymongo (#35179) 2024-07-26 15:34:17 +05:00
Muhammad Umar Khan
5198496703 Revert "feat!: upgrade pymongo (#34675)" (#35178)
This reverts commit cbd4904e1b.
2024-07-25 18:42:03 +05:00
Muhammad Umar Khan
cbd4904e1b feat!: upgrade pymongo (#34675) 2024-07-25 16:03:06 +05:00
edX requirements bot
9c303728b3 chore: Upgrade Python requirements 2024-07-16 11:14:27 -04:00
Feanil Patel
623061fde5 chore: Run make upgarde with Python 3.11 2024-06-11 11:30:22 -04:00
Muhammad Soban Javed
31572c2f13 chore: upgrade edx-django-utils to 5.14.2 (#34881) 2024-06-04 16:31:19 +05:00
Muhammad Soban Javed
d8675f8a06 feat: add FrontendMonitoringMiddleware in lms and studio (#34823)
* feat: add FrontendMonitoringMiddleware in lms and studio

* chore: upgrade edx-django-utils to 5.14.1
2024-05-23 16:29:59 +05:00
Kyle McCormick
11626148d9 refactor: switch from mock to unittest.mock (#34844)
As of Python 3.3, the 3rd-party `mock` package has been subsumed into the
standard `unittest.mock` package. Refactoring tests to use the latter will
allow us to drop `mock` as a dependency, which is currently coming in
transitively through requirements/edx/paver.in.

We don't actually drop the `mock` dependency in this PR. That will happen
naturally in:

* https://github.com/openedx/edx-platform/pull/34830
2024-05-22 13:52:24 -04:00
Kyle D. McCormick
c4a1f800e9 feat!: remove paver docs, i18n, servers, and pylint
This is the first step of Paver removal.
These are the parts that we are confident are unused.

Part of: https://github.com/openedx/edx-platform/issues/34467
2024-05-21 15:14:38 -04:00
Kyle McCormick
51274af916 fix: use the correct environment variable in watch_sass (#34805)
EDX_PLAFORM_THEME_DIRS was the original name,
but it was changed to COMPREHENSIVE_THEME_DIRS
in https://github.com/openedx/edx-platform/pull/34700.
2024-05-16 15:08:05 -04:00
github-actions[bot]
73d3995dae feat: Upgrade Python dependency edx-enterprise, and introduce importlib-metadata (#34794)
* feat: Upgrade Python dependency edx-enterprise

Version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

* fix: reintroduce importlib_metadata

* chore: Updating Python Requirements (#34798)

---------

Co-authored-by: brobro10000 <82611798+brobro10000@users.noreply.github.com>
Co-authored-by: Hamzah Ullah <hamzahullah@yahoo.com>
Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2024-05-14 15:22:06 -04:00
Feanil Patel
6e715782b6 Merge pull request #34685 from openedx/feanil/make_upgrade
chore: Run `make upgrade`
2024-05-09 10:02:28 -04:00
Irtaza Akram
427f436e25 chore: update actions runner (#34731)
* fix: update actions runner
2024-05-09 16:48:58 +05:00
Feanil Patel
7734f023c8 chore: Run make upgrade 2024-05-08 15:49:14 -04:00
feanil
1d3fb01d3e feat: Upgrade Python dependency pytz
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 12:21:12 -04:00
magajh
4d87410890 chore: upgrade Django to 4.2.13 2024-05-08 11:19:11 -04:00
feanil
9c3fb1ee12 feat: Upgrade Python dependency certifi
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 11:01:32 -04:00
Feanil Patel
6f45093af2 chore: Upgrade cryptography and pyopenssl
Ran 'make upgrade-package package="cryptography --upgrade-package pyopenssl"`
2024-05-08 08:50:48 -04:00
feanil
a92c215d70 feat: Upgrade Python dependency Jinja2
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-07 18:18:21 -04:00