Commit Graph

268 Commits

Author SHA1 Message Date
Zachary Hancock
8d405ac588 feat: upgrade proctortrack JS (#32922) 2023-08-07 10:52:04 -04:00
Kyle McCormick
303bf5ef3c build: npm run watch (experimental) (#32866)
Implements the `npm run watch` section of the assets ADR [1], plus some
modifications since I decided to switch from pywatchman to watchdog (see
ADR changes for justification). This will replace `paver watch_assets`
(edx-platform) and `openedx-assets watch-themes` (Tutor).

Specifically, this PR adds three experimental commands:

* `npm run watch-sass` : Watch for Sass changes with watchdog.
* `npm run watch-webpack` : Invoke Webpack-watch for JS changes.
* `npm run watch` : Invoke both `watch-sass` and `watch-webpack` simultaneously.

These commands are only intended to work in development mode. They have
been tested both on bare-metal edx-platform and through `tutor dev run`
on on Linux.

Before removing the "experimental" label, we need to:

* Test through Devstack on Linux.
* Test through Devstack and `tutor dev run` on macOS.
* Test on bare-metal macOS. Might not work, which is OK, but we should
  document that.
* Document the commands in edx-platform's README.
* Confirm that this not only works through `tutor dev run`, but also as
  a suitable replacement in the `watchthemes` service that Tutor runs
  automatically as part of `tutor dev start`. Tweak if necessary.

References:

1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst

Part of: https://github.com/openedx/edx-platform/issues/31612
2023-07-27 16:33:32 +00:00
Kyle McCormick
3e67719a24 build: npm run build (experimental) (#32823)
This PR implements much of the static assets rework ADR [1], including:

* `npm run build[-dev]`, and its subcommands,
* `npm run webpack[-dev]` and
* `npm run compile-sass[-dev]`.

This is backwards-compatible. `paver update_assets` should not be affected.
The new command warns that it is "experimental" for a few reasons:

* `npm run build` will fail in the webpack phase unless you first
run  `xmodule_assets`. This will be changed soon [2].

* We have tested the new build, but not quite so thoroughly that we'd
recommend it as the production default yet. Once the xmodule_assets
work lands, we'll share this on the forums so early adopters can try it
out.

* The commands lack some top-level documentation. Once they stabilize more,
we'll add a section to the README that explains how and when to use `npm run
build` and its subcommands and its env vars.

* `npm run watch` is not yet implemented.

References:
1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst
2. https://github.com/openedx/edx-platform/pull/32685

Part of: https://github.com/openedx/edx-platform/issues/31604
2023-07-26 08:04:45 -04:00
Kyle McCormick
a6f04d8ca3 build: copy from node_modules using NPM postinstall hook, not Paver (RE-MERGE)
Re-merge of 4b64d8342d

The commit after this one contains the fix for the issue that led to the
revert.
2023-07-20 13:46:21 -04:00
Zachary Hancock
d1da82a325 fix: proctortrack version update to fix end exam error (#32762) 2023-07-18 13:17:00 -04:00
Kyle McCormick
95e0cdef28 Revert "build: copy from node_modules using NPM postinstall hook, not Paver (#32717)"
This reverts commit 4b64d8342d.
2023-07-17 14:06:05 -04:00
Kyle McCormick
4b64d8342d build: copy from node_modules using NPM postinstall hook, not Paver (#32717)
During the review of ADR 17 [1], Régis pointed out [2] that the shell script
which replaces Paver's `process_npm_assets`  could be automatically invoked as
an NPM post-install hook, ensuring that the step is seamlessly executed whenever
`npm install` is run. I had avoided using that suggestion, as I worried that it
would make it harder to move node_modules out of the edx-platform directory in
Tutor's openedx image.

Since then, two things have changed. Firstly, Tutor v16's new persistent mounts
interface [3] has lessened the importance of moving node_modules. Secondly, I
have realized that using a post-install hook would not preclude us from
modifying the underlying script (scripts/copy-node-modules.sh) to look in an
alternative location for node_modules, should that end up being something we
want to do.

This commit modifies the ADR based on those findings, stubs out Paver's
`process_npm_assets`, and adds the suggested post-install hook and replacement
Bash script.

References:
1. https://github.com/openedx/edx-platform/blob/master/docs/decisions/0017-reimplement-asset-processing.rst
2. https://github.com/openedx/edx-platform/pull/31790#discussion_r1122802492
3. https://github.com/overhangio/tutor/blob/master/CHANGELOG.md#v1600-2023-06-14

Part of: https://github.com/openedx/edx-platform/issues/31604
2023-07-17 13:26:58 -04:00
Zachary Hancock
ab3d322bc9 feat: update edx-proctoring JS library (#32668) 2023-07-06 10:25:15 -04:00
Zachary Hancock
75b6b1832b feat: update proctortrack (#32154) 2023-05-01 10:50:12 -04:00
Ghassan Maslamani
8b81e51ad7 chore: remove unused pkg (extract-text-webpack-plugin) (#31889)
This pkg isn't used since 5 years ago
This PR openedx/edx-platform/pull/17417 revert it's usage
2023-03-17 11:23:22 -04:00
Syed Ali Abbas Zaidi
5549db4d80 fix: migrate remaining eslint-config-edx (#31760)
* fix: migrate remaining eslint-config-edx

* refactor: updated eslint rules according to eslint-config-edx-es5

* refactor: add custom rules to suppress unnecessary eslint issues

* refactor: add custom rules to internal eslint configs

* fix: fix all indentation issues

* chore: update lock file
2023-03-02 16:16:50 +05:00
Bilal Qamar
64a1caa604 chore: added @edx/edx-proctoring & updated packages (#31848) 2023-03-01 11:18:51 +05:00
Bilal Qamar
20f65ae4e2 chore: incrementally upgrade npm packages (#31739)
* chore: incrementally upgrade npm packages

* chore: updated packages
2023-02-28 10:54:24 +05:00
Mohammad Ahtasham ul Hassan
3726d122f9 Migrate eslint-config-edx (#30460)
* feat: migrare eslint-config-edx

* refactor: updated package-lock

* refactor: updated package-lock

---------

Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
Co-authored-by: Mashal Malik <107556986+Mashal-m@users.noreply.github.com>
Co-authored-by: Abdullah Waheed <abdullah.waheed@arbisoft.com>
2023-02-09 13:57:18 +05:00
Zachary Hancock
672b1341c4 chore: update edx-proctoring python and js (#31185) 2022-10-24 11:09:23 -04:00
Sarina Canelake
4a2f231302 fix: fix github url strings (org edx -> openedx) 2022-09-15 14:52:28 -04:00
Kshitij Sobti
d687bc7ba2 fix: Fix jasmine-jquery package format to avoid checking out over ssh (#30437)
The npm package manager seems to try checking out over ssh unless a github
dependency is specified with the git user via git@. Checking out over ssh breaks
deployments in CI and deployment environments.
2022-06-08 19:30:31 +00:00
Mohammad Ahtasham ul Hassan
f801deaae5 Node Upgrade (#30420)
* feat: Node16 upgrade
2022-05-18 16:12:34 +05:00
Mohammad Ahtasham ul Hassan
fee54bf424 Revert "Node 16 Upgrade (#30354)" (#30399)
This reverts commit f4c3c3fb4d.
2022-05-16 18:42:42 -04:00
Mohammad Ahtasham ul Hassan
f4c3c3fb4d Node 16 Upgrade (#30354)
* feat: Node16 upgrade
2022-05-16 16:53:37 +05:00
Mohammad Ahtasham ul Hassan
e84187bacd Revert "feat: node16 upgrade (#30249)" (#30268)
This reverts commit f10ebf0752.
2022-04-18 21:57:17 +05:00
Mohammad Ahtasham ul Hassan
f10ebf0752 feat: node16 upgrade (#30249) 2022-04-18 16:32:53 +05:00
Mohammad Ahtasham ul Hassan
a443542260 Revert "feat: node16 upgrade (#30158)" (#30228)
This reverts commit 5ee25c65ea.
2022-04-12 17:18:30 +05:00
Mohammad Ahtasham ul Hassan
5ee25c65ea feat: node16 upgrade (#30158) 2022-04-12 15:23:34 +05:00
Zachary Hancock
0898010807 chore: update edx-proctoring-proctortrack (#29671) 2021-12-22 15:14:28 -05:00
Adam Stankiewicz
c98c4eb30e chore: add repository field to package.json file (#29661)
This is primarily so that tooling (e.g., Paragon usage insights) can properly link to repositories.
2021-12-21 14:10:55 -05:00
Zachary Hancock
df908e164d chore: update npm version of edx-proctoring (#29659)
* chore: update npm version of edx-proctoring

* chore: fix package lock
2021-12-21 13:08:06 -05:00
Bianca Severino
0a08d01149 chore: upgrade edx-proctoring-proctortrack 2021-12-10 10:22:15 -05:00
Shimul Chowdhury
ba6370b120 fix: downgrade moment to 2.20.1 to only have Arabic lang improvements 2021-08-24 09:45:05 +08:00
Shimul Chowdhury
f54a1bd791 fix: double arabic month issue 2021-08-18 18:12:50 +08:00
Simon Chen
a99da581e3 [Chore] Upgrade edx-proctoring to 3.11.4 to fix javascript on proctoring worker not starting exam with the same ping interval as during the exam (#27747) 2021-05-28 14:35:49 -04:00
Zachary Hancock
4f51e3fe95 chore: update proctoring js lib (#27578) 2021-05-11 09:22:15 -04:00
Bianca Severino
506813d1d5 chore: update studio-frontend to 1.17.0 2021-05-10 12:47:05 -04:00
Zachary Hancock
206501cb49 update edx-proctoring-proctortrack (#27436) 2021-04-28 08:55:26 -04:00
Awais Qureshi
1277a05864 ARCHBOM-1657
Fixing axios SSRF vulnerability in edx-platform.
2021-01-06 11:39:25 +05:00
DawoudSheraz
8b6737e09a update hls.js to latest version 2020-12-15 17:37:43 +05:00
Awais Jibran
b63f210005 Update brand-edx.org 2020-12-11 20:37:13 +05:00
Awais Jibran
77247a493a Update brand-edx.org 2020-12-03 02:01:29 +05:00
Awais Jibran
69605cb0e1 The new theme is in v1.1.2 of the brand-edx.org package. It looks like the edx-platfrom is using older version. let's update update to the latest version and teams should work from there. 2020-11-18 13:32:13 +05:00
Awais Jibran
2b1e239633 Adding brand-edx.org as a dependency to edx-platform 2020-11-12 19:45:34 +05:00
Thomas Tracy
132898b991 Trap focus in modal and other a11y work (#25063) 2020-09-23 14:51:08 -04:00
Adam Butterworth
2e23c6458c [TNL-7465] Upgrade bootstrap to 4.0.0 2020-09-16 13:30:53 -04:00
Thomas Tracy
0151b80ab7 A modal used to collect demographics information (#24956)
* A modal used to collect demographics information

Add checkmark to final page (#24957)

Remove themeing to get ready for staging

MICROBA-574 | Dismiss CTA after learner finishes answering modal questions (#24965)

[MICROBA-574]
- Dismiss CTA after learner finishes answering demographics questions
- Cleanup comments

* Various initial bugfixes

- fixes 2 issues with the multiselect dropdown erasing state
- prevents input higher than 255 characters in the self describe
- fixes 400 errors when the user selects a default option
- Removes additional page count section

- Re-adding deleted JS file. Can't clean this up until after we cutover to using the new Demographics modal

* Add translatable string to clear button

* Remove extra page counter from the header for the third time

* Remove unneeded template context

Co-authored-by: Matt Tuchfarber <mtuchfarber@edx.org>
Co-authored-by: Justin Hynes <jhynes@edx.org>
2020-09-14 09:28:06 -04:00
Aura Milena Alba
9a8e9ea962 [BD-10] [DEPR-92] Remove edx-pattern-library package. (#24631) 2020-09-03 14:01:16 -04:00
Attiya Ishaque
e08f8e1572 [YONK-1759] Version bump of studio-frontend. (#24723) 2020-08-11 18:02:21 +05:00
Adam Stankiewicz
6d942bc94d revert learner portal links blocking juniper release 2020-05-04 14:55:06 -04:00
Brandon Baker
98e5b9d4a3 Upgrade frontend-auth and frontend-enterprise (#23377)
* Upgrade frontend-enterprise and pass in user

ENT-2648

* Add react-router-dom

* Add back caret
2020-03-17 10:31:37 -04:00
Awais Jibran
0e7b04875f Bump Studio-Frontend 2020-01-13 13:45:00 +05:00
Diana Huang
a6bf511b43 Update nodeenv to the latest version.
Also update node-sass to a compatible version.
Include a regenerated package-lock.
2019-10-21 09:46:52 -04:00
Brittney Exline
6e2887f851 Add enterprise portal links to user dropdown menu and dashboard alerts. (#21833) 2019-10-09 16:01:41 -04:00