This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 422
Needless call to seed_permissions_roles management command when provisioning demo course #1129
Comments
We can ask TNL to review the PR. |
timmc-edx
added a commit
that referenced
this issue
Aug 1, 2023
The `import` management command (from cms contentstore) is called right before the `seed_permissions_roles` command (from lms discussions). However, the import command already performs the seeding. See #1129 for archaeological notes. Confirmation that the call doesn't add anything: - Provisioned LMS with `DEVSTACK_SKIP_DEMO=true` - Manually ran first two commands for importing demo course (git clone, `import` management command) - Took MySQL DB dumps - Ran final demo course command, `seed_permissions_roles` - Took new DB dumps - Diff of SQL files showed only a change in the dump dates
1 task
timmc-edx
added a commit
that referenced
this issue
Aug 1, 2023
…1142) The `import` management command (from cms contentstore) is called right before the `seed_permissions_roles` command (from lms discussions). However, the import command already performs the seeding. See #1129 for archaeological notes. Confirmation that the call doesn't add anything: - Provisioned LMS with `DEVSTACK_SKIP_DEMO=true` - Manually ran first two commands for importing demo course (git clone, `import` management command) - Took MySQL DB dumps - Ran final demo course command, `seed_permissions_roles` - Took new DB dumps - Diff of SQL files showed only a change in the dump dates
For remaining occurrences in configuration repo, maybe make a ticket to try deleting the surrounding code entirely, since we're probably not using that at all. (Roles, Jenkins stuff.) |
timmc-edx
added a commit
to openedx-unsupported/configuration
that referenced
this issue
Aug 2, 2023
…rums This is now redundant with the earlier `import` call, which at this point goes ahead and does the seeding. One of these is probably used by sandboxes, and the other is probably not, but both are referenced by `ansible-provision.sh`. Might as well remove from both so that at least they're consistent with devstack, and so that this is not propagated forward to whatever eventually replaces the sandbox setup scripts. See openedx-unsupported/devstack#1129 for details.
7 tasks
It looks like the other occurrences may still be in use. Removing both: openedx-unsupported/configuration#6974 |
timmc-edx
added a commit
to openedx-unsupported/configuration
that referenced
this issue
Aug 3, 2023
…rums (#6974) This is now redundant with the earlier `import` call, which at this point goes ahead and does the seeding. One of these is probably used by sandboxes, and the other is probably not, but both are referenced by `ansible-provision.sh`. Might as well remove from both so that at least they're consistent with devstack, and so that this is not propagated forward to whatever eventually replaces the sandbox setup scripts. See openedx-unsupported/devstack#1129 for details.
jdmulloy
pushed a commit
to openedx-unsupported/configuration
that referenced
this issue
Sep 14, 2023
…rums (#6974) This is now redundant with the earlier `import` call, which at this point goes ahead and does the seeding. One of these is probably used by sandboxes, and the other is probably not, but both are referenced by `ansible-provision.sh`. Might as well remove from both so that at least they're consistent with devstack, and so that this is not propagated forward to whatever eventually replaces the sandbox setup scripts. See openedx-unsupported/devstack#1129 for details.
nsprenkle
pushed a commit
that referenced
this issue
Nov 21, 2023
…1142) The `import` management command (from cms contentstore) is called right before the `seed_permissions_roles` command (from lms discussions). However, the import command already performs the seeding. See #1129 for archaeological notes. Confirmation that the call doesn't add anything: - Provisioned LMS with `DEVSTACK_SKIP_DEMO=true` - Manually ran first two commands for importing demo course (git clone, `import` management command) - Took MySQL DB dumps - Ran final demo course command, `seed_permissions_roles` - Took new DB dumps - Diff of SQL files showed only a change in the dump dates
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Devstack and the configuration repo both have scripts to provision a demo course. They first call the
import
management command (in cms contentstore), and thenseed_permissions_roles
(in lms discussions). However, theimport
command already performs the seeding:https://github.com/openedx/edx-platform/blob/77cef4cd074ca03d2b73261674923eb96ac804bd/cms/djangoapps/contentstore/management/commands/import.py#L78
We can remove this extra management command call from several places:
seed_permissions_roles
call for demo course #1142ansible-provision.sh
ansible-provision.sh
, even though it appears to be an alternative way of provisioning demo courses.Archaeological notes:
The text was updated successfully, but these errors were encountered: