Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E0d/update first pr #858

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

E0d/update first pr #858

wants to merge 33 commits into from

Conversation

e0d
Copy link
Contributor

@e0d e0d commented Mar 4, 2025

WIP PR to update the first PR docs to be:

  • accurate
  • easier to maintain, by referencing the Tutor docs directly
  • support for MFE development

python3.8 -m venv tutor-venv
. tutor-venv/bin/activate
.. admonition:: The Tutor documents will recommend this as well, but
please do yourself the favor or using python virtual
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammatical mistake - "of" rather than "or".... "please do yourself the favor of using python virtual..."

Depending on your system and your Internet connection speed,
this could take anywhere from five minutes to over an hour,
so go get a coffee and come back for the next part.
`Official Tutor tutorial <https://docs.tutor.edly.io/tutorials/main.html#running-open-edx-on-the-master-branch-tutor-main>`_
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still wrapping my head around the different types of Tutor - Main, Full, Nightly(?). I did find that this link was the most straight forward as far as just getting it installed as a python package (although it does mention other ways): https://docs.tutor.edly.io/install.html#install

checkout:
To set up your local enviroment to update edx-platform, follow the
`official instructions
<https://docs.tutor.edly.io/tutorials/edx-platform.html>`_
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this was referenced in the forums discussion, but after going through it, I found it not as helpful for the following reasons:

  • it has some grammatical errors "edx-plaform" instead of "edx-platform" on the workspace path.
  • the confusion of using the named release versus master depending on which Tutor you're using
  • "This command does a few "magical" things behind the scenes" - I believe it's missing the actual command which may be tutor dev launch because I'm confident tutor mounts add does not do what it's explaining.
  • it tells you to tutor images build openedx instead of building openedx-dev. I may be learning still, but I was never able to see my changes reflected on the screen when I built the non "-dev" image.

I would suggest that consolidating the link you mentioned and this one: https://docs.tutor.edly.io/dev.html#first-time-setup so it's more clear on what commands are to be run in order to get your instance running, and get your changes on the legacy platform reflected locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you say tutor mounts add does not do what it's explaining, are you referring to this section?

Similarly, when developing a custom XBlock, we would like to hot-reload any change we make to the XBlock source code within the containers.

Tutor provides a simple solution to these questions. In both cases, the solution takes the form of a tutor mounts add ... command.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, further down in the docs:
image

Although re-reading it I have misunderstood that this command is meant to be used in combination with the others since it bind mounts the edx-platform image for build-time or at run-time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitted a PR to fix the "edx-plaform" typo.

overhangio/tutor#1205

@tonybusa, if you still have specific suggestions on how to improve those docs, contributions would be very welcome! :)


python3.8 -m venv tutor-venv
. tutor-venv/bin/activate
.. admonition:: The Tutor documents will recommend this as well, but
Copy link
Contributor

@sarina sarina Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why this isn't working but I don't use this directive, I use .. note:: or .. warning::

But, maybe the following text is indented wrong? You could just soft-wrap the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sarina sorted it out. A combination of how the admonition title works and how the details are formatted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, noticing that admonition provides 0 styling, which isn't super useful. Does warning or another option provide styling?

@e0d
Copy link
Contributor Author

e0d commented Mar 5, 2025

@brian-smith-tcril or @arbrandes could you suggest a simple, but useful change to the MFE that would demonstrate the integration? A link out would also be great. Also please check my instructions for correctness.

Copy link
Contributor

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Made a few suggestions.

As for suggesting simple changes in the docs, wouldn't it be better to document (or just link to) how to develop a useful plugin using the dev env instead? Such as the plugin docs in the tutor-mfe README, but geared more for the dev environment. I could write one up as a subsequent PR.

checkout:
To set up your local enviroment to update edx-platform, follow the
`official instructions
<https://docs.tutor.edly.io/tutorials/edx-platform.html>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitted a PR to fix the "edx-plaform" typo.

overhangio/tutor#1205

@tonybusa, if you still have specific suggestions on how to improve those docs, contributions would be very welcome! :)

Comment on lines 252 to 254
Not every MFE currently has a dev profile that will
work with Tutor, though it is possible to create one if that is the
case for the MFE you are developing.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Not every MFE currently has a dev profile that will
work with Tutor, though it is possible to create one if that is the
case for the MFE you are developing.
Not every MFE currently has a dev profile that will
work with Tutor, though it is possible to create one if that is the
case for the MFE you are developing, using `an existing one <https://github.com/openedx/frontend-app-learner-dashboard/pull/530/files>`_ as a template.

Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
e0d and others added 7 commits March 5, 2025 18:14
Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
Co-authored-by: Adolfo R. Brandes <arbrandes@arbrand.es>
Working with the Learner Dashboard MFE
======================================


Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arbrandes thoughts about a change that makes sense to kick the tires? I updated a string in messages.json which I didn't think we great, it would be better to change a little react code I think.

@sarina
Copy link
Contributor

sarina commented Mar 6, 2025

Linked some issues I know this will resolve; it might also resolve #103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants