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

feat: Remove redundant seed_permissions_roles call for demo course #1142

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

timmc-edx
Copy link
Contributor

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

I've completed each of the following or determined they are not applicable:

  • Made a plan to communicate any major developer interface changes (or N/A)
    • None

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
Copy link
Contributor

@connorhaugh connorhaugh left a comment

Choose a reason for hiding this comment

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

LGTM

@timmc-edx timmc-edx merged commit e768331 into master Aug 1, 2023
10 checks passed
@timmc-edx timmc-edx deleted the timmc/no-double-seed branch August 1, 2023 18:11
nsprenkle pushed a commit that referenced this pull request 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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants