Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

docs: Update READMEs for Blockstore and Tagstore #204

Merged
merged 3 commits into from
Oct 3, 2022

Conversation

bradenmacdonald
Copy link
Contributor

@bradenmacdonald bradenmacdonald commented Sep 26, 2022

Description

This repository's README was a bit out of date. This PR makes some changes to bring it up to date. More work will be needed in future PRs.

I also reinstated the Tagstore README, per the recent discussion about it on the forum.

Author Comments, Concerns, and Open Questions

Test Instructions

Not sure if any testing is needed. Just look for typos and make sure the links work and the information is accurate.

@openedx-webhooks openedx-webhooks added core committer open-source-contribution PR author is not from Axim or 2U labels Sep 26, 2022
@openedx-webhooks
Copy link

Thanks for the pull request, @bradenmacdonald!

As a core committer in this repo, you can merge this once the pull request is approved per the core committer reviewer requirements and according to the agreement with your edX Champion.

@bradenmacdonald
Copy link
Contributor Author

@Agrendalath @pomegranited Would you be able to review this? Jira ticket is MNG-3295.

Copy link
Contributor

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

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

Thank you for updating this README @bradenmacdonald ! I really should have done that as part of moving blockstore into an app!

I've suggested some more changes that clarify this move and the recommended usage in production. Let me know if you want any help rewriting these?

------------------------------------------------

The easiest way to try out the "Content Libraries v2" feature along with Blockstore is to use the Tutor devstack and
`this library-authoring MFE Tutor plugin <https://github.com/openedx/frontend-app-library-authoring/pull/50>`_. See that plugin's README for details.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make more sense to link to the plugin's README directly once your PR is merged -- it looks like it's close :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I definitely will - but it hasn't merged yet. Just waiting for that.

README.rst Outdated
------------------------------------------------

The easiest way to try out the "Content Libraries v2" feature along with Blockstore is to use the Tutor devstack and
`this library-authoring MFE Tutor plugin <https://github.com/openedx/frontend-app-library-authoring/pull/50>`_. See that plugin's README for details.

--------------------------
Using with Docker Devstack
Copy link
Contributor

Choose a reason for hiding this comment

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

These instructions are for running blockstore as a service, incidentally alongside the docker devstack. Since we can now run blockstore as an app, and the docker devstack is deprecated, do we even need these instructions anymore?

But if we're keeping them, they should be updated. E.g. just below here, it says:

Prerequisite: Have your Open edX Devstack <https://github.com/openedx/devstack>_ properly installed and working. Your devstack must be tracking the master branch of edx-platform; using Blockstore on an older devstack release is not supported.

But above, we say that it's supported from nutmeg onwards.

The notes about running integration tests are outdated as well, and are ok to remove.

Copy link
Contributor

Choose a reason for hiding this comment

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

The preface for "Using in Production" can be changed to:

By default, blockstore is run as an app inside of Open edX. Enable it using the waffle switch blockstore.use_blockstore_app_api.

If you need to run blockstore as a separate service (e.g. for scalability or performance reasons), you can deploy blockstore in production using the blockstore ansible role <https://github.com/openedx/configuration/tree/master/playbooks/roles/blockstore>_.
...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @pomegranited ! I pushed 575c37e with those changes. Let me know your thoughts please :)

@natabene
Copy link

@bradenmacdonald Thanks for the contribution.

README.rst Outdated
Comment on lines 122 to 148
-------------
Running Tests
-------------

Unit Tests
----------

To run the unit tests, get into the blockstore container:

.. code::

make blockstore-shell


And then run:

.. code::

make test

To save on overhead while running individual tests, from within the container, you can do:


.. code::

DJANGO_SETTINGS_MODULE=blockstore.settings.test ./manage.py test dotted.path.To.test

Copy link
Contributor

Choose a reason for hiding this comment

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

We can keep this section -- we still need the blockstore docker container and these instructions for running tests.

README.rst Outdated
Comment on lines 67 to 77
#. Clone this repo and ``cd`` into it.

#. To start the django development server inside a docker container, run this on
your host machine:

.. code::

make easyserver

Blockstore is now running at http://localhost:18250/ . Now we need to configure Studio/LMS to work with it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move these lines down under Running Tests? We should keep that section, and this info on how to run the blockstore docker container, so that people still know how to run tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it important to still have that way to run tests? I was under the impression that all the tests are currently run in "app mode" in the edx-platform test suite, and these are only needed to run the tests in "IDA mode".

Actually, can we soon remove "IDA mode" from edx-platform and blockstore entirely, or is there some reason we need to continue to support both options?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've but those back in, in a modified form. Please review :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for retaining those test instructions until we can get the standalone service removed.

edx.org is still running blockstore standalone in production, so we shouldn't remove it yet.

Copy link
Contributor

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

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

👍 Thank you @bradenmacdonald !

  • I tested this by reading through the rendered markup, checking links and code snippets for accuracy.
  • I read through the code -- testing and setup details are still accurate.
  • I checked for accessibility issues N/A
  • Includes documentation
  • Commit structure follows OEP-0051

Copy link
Contributor

@Agrendalath Agrendalath left a comment

Choose a reason for hiding this comment

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

@bradenmacdonald, thank you for preparing this, and sorry for the late reply. Looks great!

👍

  • I tested this: read the diff, checked the links
  • I read through the code
  • I checked for accessibility issues: n/a
  • Includes documentation

@bradenmacdonald bradenmacdonald merged commit 71c3c97 into master Oct 3, 2022
@bradenmacdonald bradenmacdonald deleted the update-readmes branch October 3, 2022 17:54
@openedx-webhooks
Copy link

@jristau1984: thought you might like to know that bradenmacdonald merged this pull request.

@openedx-webhooks
Copy link

@bradenmacdonald 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core committer open-source-contribution PR author is not from Axim or 2U
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants