Commit Graph

1376 Commits

Author SHA1 Message Date
Kyle McCormick
e800ae7622 feat: provisionally support V2 libraries in LibraryContentBlock (randomized only) (#33263)
Refactors and reworks the LibraryContentBlock so that its
sync-from-library operations are asynchronous and work with
V2 content libraries. This also required us to make
library_content block duplication asynchronous, as that
involves syncing from the source library.

For the sake of clarity, this PR includes two major method renames:

* update_children(...) -> sync_from_library(...)
* refresh_library(...) -> sync_from_library(upgrade_to_latest=True, ...)

an an XBlock HTTP handler rename:

  /refresh_children -> /upgrade_and_sync

There are still a couple issues with import or duplication
of library_content blocks referencing V2 libraries other than
latest. These will be resolved in an upcoming PR.

Part of: https://openedx.atlassian.net/wiki/spaces/COMM/pages/3820617729/Spec+Memo+Content+Library+Authoring+Experience+V2
Follow-up work: https://github.com/openedx/edx-platform/issues/33640

Co-authored-by: Connor Haugh <chaugh@2u.com>
Co-authored-by: Eugene Dyudyunov <evgen.dyudyunov@raccoongang.com>
2023-11-20 15:58:10 +00:00
Feanil Patel
66e987997c Revert "Revert "chore: remove bok-choy settings"" 2023-11-01 13:41:37 -04:00
Robert Raposa
083ccbf09b Revert "chore: remove bok-choy settings" 2023-10-31 15:27:44 -04:00
salman2013
942e713ff0 chore: resolve conflicts 2023-10-26 14:20:26 +05:00
Omar Al-Ithawi
086834aa8b docs: design for atlas pull for the edx-platform and its plugins (#33166) 2023-10-25 13:36:45 -04:00
connorhaugh
b0a004de33 docs: add pytest django setting specification to docs (#33564) 2023-10-24 11:35:15 -04:00
salman2013
9452cef97d chore: resolve conflicts 2023-10-23 12:05:25 +05:00
Omar Al-Ithawi
09a6523792 docs: decision to standardize django/djangojs po files (#32994)
This contribution is part of the [FC-0012 project](https://openedx.atlassian.net/l/cp/XGS0iCcQ) which is sparked by the [Translation Infrastructure update OEP-58](https://open-edx-proposals.readthedocs.io/en/latest/architectural-decisions/oep-0058-arch-translations-management.html#specification).
2023-10-20 11:14:30 -04:00
thezaeemaanwar
0b3e4d73b6 feat!: Removed Badges App
fix: restored badges handlers

feat: remove FE code for badges

fix: resolved failing tests

fix: removed test case for badges app

fix: unused import error

fix: Response Field Count

fix: shareable account response length

fix: resolved PR comments

fix: revert settings override

feat!: Removed Badges App

fix: restored badges handlers

feat: remove FE code for badges

fix: resolved failing tests

fix: removed test case for badges app

fix: unused import error

fix: Response Field Count

fix: shareable account response length

fix: revert subscription badge
2023-10-18 20:30:04 +05:00
salman2013
75244b148d Merge remote-tracking branch 'upstream/master' into salman/remove-bok-choy 2023-10-02 16:53:08 +05:00
salman2013
d668af2fce chore: fix comments, remove and add some code for karma 2023-10-02 16:04:33 +05:00
Andy Shultz
3d00f5a276 docs: also paver test no longer exists, remove it
paver for js test is discussed below separately

python testing is covered well in the next section, running all python
tests is not useful for development loops
2023-09-28 14:22:04 -04:00
Andy Shultz
609629c6d3 docs: actually pull the eye to the most weird and critical instruction 2023-09-28 13:54:42 -04:00
salman2013
42ca0ddec4 chore: remove bok choy settings 2023-09-27 10:58:37 +05:00
Kyle McCormick
265701c01d feat!: remove library_sourced block (#33257)
Originally, we planned to add support for V2 libraries and for static
(hand-selected) library block reference via new block type: library_sourced.

We have since decided that it would be better to add those capabilities
in-place to the existing library_content block. This will ease V1->V2
library migration and make adoption of the new features easier for current
library users. It will also avoid duplication of logic between two block types,
we we fear would be error-prone. For details, see this ADR:
 https://github.com/openedx/edx-platform/pull/33231

So, we are removing the library_sourced block.
This block has existed in edx-platform for a few years now, but was not
enabled by default and never officially supported. It was only usable via the
experimental V2 content library feature. Operators who added library_sourced
blocks to their course will now see them render as `HiddenBlock` instances, i.e.:

> ERROR: "library_sourced" is an unknown component type...

This should not impact other component types in such courses and should not
impact import/export.
2023-09-15 10:04:38 -04:00
farhan
98dfb6d873 docs: Makes some improvements in the docs 2023-09-01 17:53:28 +05:00
Feanil Patel
b6fc5488c6 docs: Apply suggestions from code review 2023-08-18 14:21:56 -04:00
Feanil Patel
02354eff10 docs: Apply suggestions from code review 2023-08-18 14:21:27 -04:00
Feanil Patel
b111440b7f docs: Clarify comment for getting a refresh token. 2023-08-18 11:04:15 -04:00
Feanil Patel
73001b1a59 docs: Apply suggestions from code review
Typos and other small fixes.

Co-authored-by: Robert Raposa <rraposa@edx.org>
2023-08-18 10:14:02 -04:00
Feanil Patel
df5759ca37 docs: Make the docs easier to read and and some links. 2023-08-17 11:11:59 -04:00
Feanil Patel
5a1abcb64f fixup! docs: Add some basic docs on the Rest API. 2023-08-17 10:47:56 -04:00
Feanil Patel
1db57b574f fixup! docs: Add more examples related to Auth. 2023-08-17 10:44:39 -04:00
Feanil Patel
3e1a4ed311 fixup! docs: Add some basic docs on the Rest API. 2023-08-17 10:44:27 -04:00
Feanil Patel
88096cc54d docs: Add more examples related to Auth. 2023-08-17 10:30:06 -04:00
Feanil Patel
e663988c10 docs: Add some basic docs on the Rest API.
There is probably a lot more to say but add a quick How-To and concept
docs that we can build on.
2023-08-16 15:35:06 -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
Rômulo Penido
c54070989b feat!: add new content authoring event signals 2023-07-25 16:45:39 +02:00
Kyle D. McCormick
4f393a1f15 docs: update static assets ADR with the new plan 2023-07-21 07:43:57 -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
Feanil Patel
f32c938961 fix: Update conf paths to match the new docs layout. 2023-07-18 15:41:34 -04:00
Feanil Patel
a586c3bab0 fix: Update openapi yaml location. 2023-07-18 14:33:26 -04:00
Feanil Patel
3e2d78b37b feat!: Move the docs out of the guides subdirectory.
Now that the content in `guides` is all of the edx-platform docs, move
them all into the top-level docs directory to reduce confusion.

BREAKING CHANGE: Guides are now just docs.  This will require updating
the publishing settings so that RTD looks for the conf in a different
location.
2023-07-18 14:31:49 -04:00
Feanil Patel
1e27084e35 feat!: Drop the separate technical docs.
BREAKING CHANGE: The technical docs will not be published independent of
the rest of the edx-platform docs.
2023-07-18 14:29:28 -04:00
Feanil Patel
e644ade6df docs: Redirect all technical doc pages.
We publish the two pages that were being published under here to the new
edx-platform docs under docs.openedx.org so update this doc site to
redirect to that site for all pages.

Once this version has been published, we should be safe to remove this
doc project from the platform and all future changes should go through
the single edx-platform docs site.
2023-07-17 17:05:26 -04:00
Feanil Patel
90c4155509 docs: Don't build certain doc strings for now.
We ran into memory issues at RTD so skip the xmodule, cms and common
docs for now so we can get some of the stuff up.  We can come back to it
later once we make things better.
2023-07-17 14:01:16 -04:00
Feanil Patel
b1f0619152 docs: Manually add some redirects.
Since we want to replace the existing technical docs with this guides
project and we already build the technical docs into this project now.
Adding these redirects will allow it to be a drop-in replacement for the
existing published technical docs project.
2023-07-13 12:10:11 -04:00
Feanil Patel
cee0e75566 docs: Add config for redirecting pages.
We want to be able to move pages around and have sphinx automatically
redirect to the now location when that happens.  This will allow us to
re-organize safely as we figure out the best way to layout the
documentation.
2023-07-13 12:10:11 -04:00
Feanil Patel
595501f8cf Merge pull request #32614 from openedx/feanil/reorg_guides
feanil/reorg guides
2023-07-12 16:02:03 -04:00
Feanil Patel
dcebcc4d0d docs: Make the generated docs visible.
There is still a lot of improvements that could be made to make the
generated docs better organized.  However, before this change we were
generating the docs but they weren't in the doc tree so you couldn't
actually browse to them.  So we fix that first so that we can start
getting feedback about how to organize them.
2023-07-12 15:06:23 -04:00
Feanil Patel
50f164a6ff docs: Rename guides to concepts.
The guides map pretty closely to the concept docs in diataxis so rename
them as such to align to the standard naming we're moving to.
2023-07-12 15:06:23 -04:00
Feanil Patel
bdf9870cf7 docs: Move how-tos and references to sub-folders. 2023-07-12 15:05:15 -04:00
Feanil Patel
0167b09a3b docs: Add the new sphinx-design extension.
This gives us the abuliity to add some nice responsive web components to
our docs. In particular girds and cards.
2023-07-12 15:05:15 -04:00
Yusuf Musleh
4ad8ba1b41 feat: list courses details by keys
This adds the ability to get a list of detailed courses based on their
keys provided in the newly added `keys` query param in the `GET /courses/v1/courses/`
endpoint.
2023-07-12 17:22:38 +03:00
Feanil Patel
7a0f2682ac docs: Add feature toggle and settings to the guide.
With this move we don't need the existing separate `edx-platform
Technical` sphinx project.  In the future we can remove it and just
redirect to the content in this project but I won't be doing that as a
part of this change because that involves adding redirects over there to
the new content and I'm not yet done organizing the destination.

The docs in the `guide` project might move around as we make the project
follow diataxis more closely.
2023-06-29 16:10:42 -04:00
Feanil Patel
8c43868b52 docs: Rename swagger.yaml to lms-openapi.yaml
* Swagger was renamed to OpenAPI at some point so use the new name for
  clarity.

* Prefix with `lms` to make it clear that these are the APIs from the
  LMS and may not all be available in the CMS.
2023-06-29 15:37:10 -04:00
Feanil Patel
26262131ae docs: Remove the api docs sphinx project.
* This project was not being published anywhere.
* The previous commit that adds openapi generation capabilities to the
  `docs/guides` replaces what this was doing.
2023-06-29 15:37:10 -04:00
Feanil Patel
56cad59e97 docs: Generate rst from the existing swagger docs.
Use an existing 3rd party library to generate RST docs from the existing
swagger.yaml file.
2023-06-29 15:37:10 -04:00
Kyle McCormick
478c301df5 docs: improve filters & events links in Hooks guide (#32588)
* point to upstream repos, not eduNEXT forks
* link to guides, not just source repos
* fix spelling of Open edX
2023-06-27 19:10:54 +00:00
Ned Batchelder
8e7b0c1c73 fix: oscm@edx.org is not the right email for asking about APIs
We get about one email per month from people looking for access to edX
APIs.  Those emails come to the now almost-defunct oscm@edx.org email
address.  I think that's because of these swagger references.

I suppose someone could find this email address on an Open edX
installation, and people would write to it, but I find in practice this
doesn't happen.

Co-authored-by: Kyle McCormick <kyle@tcril.org>
2023-05-22 07:51:45 -07:00