Commit Graph

65817 Commits

Author SHA1 Message Date
Irtaza Akram
b8008a887d Merge branch 'master' into bleach#33209 2024-06-11 13:07:27 +05:00
Daniel Valenzuela
b98cbd4c2c feat: warn when relative dates are past due and can't be shifted 2024-06-10 22:55:16 +02:00
Kyle McCormick
a3bafb2ccd temp: build: compile python requirements with 3.8, not 3.11 (#34960)
We haven't quite dropped Py3.8 support yet, so we can't use these workflows if
they're compiling with 3.11:

* upgrade-one-python-dependency (upgrading a single, targeted dep)
* compile-python-requirements (recompiling all deps without upgrading)

So, we "downgrade" those workflows to use 3.8, for now. We should revert this
commit when we drop 3.8 support.

Note: The upgrade-python-requirements.yml workflow is still using 3.8, so this
commit will update the other workflows to match that one.
2024-06-10 15:50:06 -04:00
Tim McCormack
0eb61e28d1 feat: Start conversion of StaticContentServer from middleware into view (#34703)
See https://github.com/openedx/edx-platform/issues/34702

This necessarily involves switching from calling
`StaticContent.is_versioned_asset_path` to determine whether to handle the
request to having a hardcoded urlpattern. I've made the choice to hardcode
the other two patterns similarly rather than using imported constants. The
mapping of URL patterns to database records should be explicit (even though
we don't expect those constants to change out from under us.)

I've renamed the middleware rather than choosing a new name for the
implementation because there are other references in tests and other code.
This was the smaller change.

A note on HTTP methods: The middleware currently completely ignores the
request's HTTP method, so I wanted to confirm that only GETs were being
used in practice. This query reveals that 99.8% of requests that this
middleware handles are GET, with just a smattering of PROPFIND and OPTIONS
and a tiny number of HEAD and POST:
```
from Transaction select count(*) facet request.method
where name = 'WebTransaction/Function/openedx.core.djangoapps.contentserver.middleware:StaticContentServer'
since 4 weeks ago
```
2024-06-10 15:44:46 +00:00
Alex Dusenbery
5a25e7c8ca feat: edx-enterprise 4.19.14 | revert errant release, update mgmt command 2024-06-10 11:40:31 -04:00
Deborah Kaplan
68b052620a Merge branch 'master' into bleach#33209 2024-06-10 11:27:12 -04:00
renovate[bot]
6fc7e3b1e9 fix(deps): update dependency camelize to v1.0.1 2024-06-10 14:58:12 +00:00
Feanil Patel
39a1369f74 Merge pull request #34549 from salman2013/salman/add-ci-check-python-dependencies
chore: Add github workflow and script to check python depencies source
2024-06-10 09:20:27 -04:00
salman2013
35f6f5041d fix: code improvement as per PR reivew comment 2024-06-10 17:10:05 +05:00
salman2013
6a526bb1d7 fix: fix test cases 2024-06-10 16:56:52 +05:00
salman2013
7ecf49e8ca fix: fix the comments as per PR review 2024-06-10 16:49:01 +05:00
MueezKhan246
80b4f1d3ea Merge pull request #34943 from openedx/mueezkhan-edx/enterprise-version-bump-4.19.11
Bumping edx-enterprise version to 4.19.11
2024-06-10 16:43:01 +05:00
Blue
e2e7524720 fix: change text of exisint email message (#34954)
Description:
Change text of existing email message
VAN-1939
2024-06-10 13:09:18 +05:00
renovate[bot]
4608a2b6c1 fix(deps): update dependency @edx/brand-edx.org to v2.1.3 2024-06-10 07:45:56 +00:00
renovate[bot]
1e52d284f3 chore(deps): update dependency karma-spec-reporter to v0.0.36 2024-06-10 06:31:09 +00:00
renovate[bot]
49d721f74a fix(deps): update dependency moment to v2.30.1 2024-06-07 21:23:01 +00:00
renovate[bot]
08c5a1cf16 fix(deps): update dependency js-cookie to v3.0.5 2024-06-07 19:31:52 +00:00
Alison Langston
f4aa8724a7 chore: update lti-consumer-xblock version (#34948) 2024-06-07 11:24:03 -04:00
MueezKhan246
4d700e5644 Merge branch 'master' into mueezkhan-edx/enterprise-version-bump-4.19.11 2024-06-07 19:27:58 +05:00
Kyle McCormick
c3d158689c build: switch renovate.json to JSON5 for comment support (#34944)
Allows us to use comments to explain why we pin (ignore) certain deps.

Renovate docs ref: https://docs.renovatebot.com/configuration-options/#configuration-options

Closes https://github.com/openedx/edx-platform/issues/34940
2024-06-07 10:06:15 -04:00
MueezKhan246
a1f7b8e80c feat: bumping edx-enterprise version to 4.19.11 2024-06-07 13:10:05 +00:00
MushtaqRossier
ead0468965 Merge pull request #34941 from openedx/mrossier/SONIC-529
feat: Added some extra logs
2024-06-07 13:43:02 +02:00
Feanil Patel
04f9982f5b Merge pull request #34746 from openedx/feanil/update_edx_platform_maintainers
docs: Update named edx-platform maintainers.
2024-06-07 07:42:51 -04:00
Attiya Ishaque
0cb2db14a2 fix: add auto_generated_username flag in activation email (#34931) 2024-06-07 15:52:45 +05:00
Mushtaq Rossier
e8a85320ab feat: Added some extra logs 2024-06-07 09:57:22 +02:00
Braden MacDonald
e1e3c87a95 fix: searching tag refinement was sometimes not working (#34933) 2024-06-07 09:30:05 +09:30
Braden MacDonald
6bfe08c147 fix: reindex_studio was crashing if instance had too many courses (#34905) 2024-06-07 09:29:01 +09:30
Juliana Kang
cb52915370 fix: Financial Assistance Letter extend time to award and styling edits (#34913)
REV-4066
2024-06-06 16:41:54 -04:00
Deborah Kaplan
b937fd4346 feat: temporarily prevent renovate from updating this package (#34938)
* feat: temporarily prevent renovate from updating this package

Minor (and therefore presumed-safe by renovate) version updates caused
an exception on some deprecated code. Marking this package as not-safe
for renovate until that code is removed, which  will happen quite soon.
see external (2U) ticket REV-4067 for details. cc @julianajlk

FIXES: APER-3502

* feat: adding a comment

attempting to add a comment explaining the ignored dependency

Co-authored-by: Kyle McCormick <kyle@axim.org>

---------

Co-authored-by: Kyle McCormick <kyle@axim.org>
2024-06-06 16:36:49 -04:00
Feanil Patel
680c9c6d39 docs: Add a note about the second DB that needs to be migrated.
CSMH lives in a second database named `student_moudule_history` and so
you need to run migrations on that to create the csmh_extended table.
2024-06-06 15:34:54 -04:00
renovate[bot]
7f7cade131 chore(deps): update dependency @edx/stylelint-config-edx to v2.3.3 2024-06-06 16:24:10 +00:00
Diana Huang
de9a8652d4 Revert "fix(deps): update dependency moment-timezone to v0.5.45" (#34928)
This reverts commit 51ebabfd96.
2024-06-06 10:48:13 -04:00
ayesha waris
8b4adaf4bd fix: fixed creating post based on discussion restrictions settings (#34872) 2024-06-06 16:52:04 +05:00
renovate[bot]
51ebabfd96 fix(deps): update dependency moment-timezone to v0.5.45 2024-06-05 15:24:04 +00:00
Kyle McCormick
88a6855255 test: cancel old unit tests when a new PR commit is pushed (#34909)
Based on: 
* https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior
* https://stackoverflow.com/questions/68418857/how-to-cancel-existing-runs-when-a-new-push-happens-on-github-actions-but-only
2024-06-05 08:26:04 -04:00
salman2013
87a7e879ae chore: add workflow to find dependencies 2024-06-05 17:04:57 +05:00
MushtaqRossier
f12322f3f0 Merge pull request #34917 from openedx/mrossier/SONIC-521
feat: Added extra info logs for refundable method
2024-06-05 13:33:39 +02:00
Mushtaq Rossier
eb2b51d02e feat: Added extra info logs for refundable method 2024-06-05 12:40:01 +02:00
MueezKhan246
fe07dda271 Merge pull request #34916 from openedx/mueezkhan-edx/enterprise-version-bump-4.19.8
Bumping edx-enterprise version to 4.19.8
2024-06-05 14:25:58 +05:00
MueezKhan246
1002834235 feat: bumping edx-enterprise version to 4.19.8 2024-06-05 08:54:58 +00:00
Hamza Waleed
424537ef0a Merge pull request #34915 from openedx/hamza/edx-enterprise-bump-4.19.7
feat: bump edx-enterprise to 4.19.7
2024-06-05 12:42:35 +05:00
hamzawaleed01
9e59517edf feat: bump edx-enterprise to 4.19.7 2024-06-05 12:04:27 +05:00
renovate[bot]
7188619fa5 chore(deps): update dependency enzyme-adapter-react-16 to v1.15.8 2024-06-04 19:19:58 +00:00
renovate[bot]
9850472761 fix(deps): update dependency underscore to v1.12.1 [security] 2024-06-04 18:23:20 +00:00
renovate[bot]
7612ffd4e4 fix(deps): update dependency axios to ^0.28.0 [security] 2024-06-04 17:36:45 +00:00
Feanil Patel
59cae77f36 Merge pull request #34837 from openedx/feanil/update_renovate
build: Update renovate config.
2024-06-04 13:03:18 -04:00
Kyle D. McCormick
1f41529a76 build: git-ignore static asset artifacts whether they are links or dirs
Remove the trailing slashes from the .gitignore entries for static asset
build artifacts. With these slashes, only directory contents are
ignored. Without these slashes, the artifact is ignored whether it is a
directory *or* an actual file (particularly, in our case: a symlink).

This allows us to build edx-platform static assets into a separate
directory, and then symlink to them from edx-platform.

Also: We remove the duplicate cms/static/css/ gitignore entry.
2024-06-04 11:48:58 -04:00
Kyle D. McCormick
97a9f08a9f build: lms/static/css/vendor/* -> common/static/css/vendor
The git-ignored target directory for LMS Sass compilation is:
    lms/static/css

Unfortunately, that directory contains git-controlled directory of
vendored-in static assets:
    lms/static/css/vendor

This is a problem for a couple reasons:

1. In Tutor, we would like to make lms/static/css a symlink to an
   external location for the sake of build efficiency. This is
   impossible to do without clobbering lms/static/css/vendor and
   dirtying the git state.

2. More generally, when optimizing (or just understanding) a build
   system, it adds complexity when git-controlled source directories are
   mixed up inside git-ignored target directories.

The solution is to simply merge these vendored-in assets to another
existing git-controlled vendor directory:
    common/static/css/vendor

LMS already reads assets from this folder, so no further changes need to
be made. common/static/css is fully git-controlled, so we avoid the
complexity described above.
2024-06-04 11:48:58 -04:00
Kyle McCormick
b063dfc1ea test: always run aggregate unit test check (#34903)
When a shard of unit-tests.yml fails, we want the `success` job to be
maked "Failed" (not "Skipped"). That's because "Failed" blocks the PR
from merging, whereas "Skipped" does not. This change ensures that
`success` always runs to completion rather than being cancelled as soon
as a unit test shard fails or is cancelled.

From https://github.com/marketplace/actions/alls-green#options:

> Important: For this to work properly, it is a must to have the job always run,
> otherwise GitHub will make it skipped when any of the dependencies fail. In
> some contexts, skipped is interpreted as success which may lead to undersired,
> unobvious and even dangerous (as in security breach "dangerous") side-effects.

Closes https://github.com/openedx/edx-platform/issues/34789
2024-06-04 10:15:51 -04:00
Feanil Patel
9caa2fa322 Merge pull request #34904 from openedx/feanil/fix_upgrades
build: Build assets requirements before development.
2024-06-04 09:52:41 -04:00