Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

BB-4521 Create mongo indexes in forum and edx_platform deployment - #176

Merged
Agrendalath merged 3 commits into
opencraft-release/koa.3from
alfred/bb-4521-create-mongo-indexes-in-deployment
Oct 28, 2021
Merged

BB-4521 Create mongo indexes in forum and edx_platform deployment#176
Agrendalath merged 3 commits into
opencraft-release/koa.3from
alfred/bb-4521-create-mongo-indexes-in-deployment

Conversation

@alfredchavez

@alfredchavez alfredchavez commented Oct 14, 2021

Copy link
Copy Markdown

Create mongo indexes in deployment for forum and edx_platform

Jira ticket: https://tasks.opencraft.com/browse/BB-4521

Test Steps:

  • Deploy a new appserver in the stage server using this branch for configuration
  • Once it is correctly deployed, you can follow the verification steps here to check if indexes have been correctly created for the edxapp mongodb and forum mongodb
    • mongo --authenticationMechanism SCRAM-SHA-1 -u <username> -p <password> --host rs0/mongodb.opencraft.hosting,mongodb-secondary-1.net.opencraft.hosting,mongodb-secondary-2.net.opencraft.hosting <db-name>
    • db.<collection-name>.getIndexes()
    • or
    db.getCollectionNames().forEach(function(collection) {
    indexes = db.getCollection(collection).getIndexes();
    print("Indexes for " + collection + ":");
    printjson(indexes);
    });
    
    to get all indexes created

Configuration Pull Request

Make sure that the following steps are done before merging

  • A devops team member has commented with 👍
  • are you adding any new default values that need to be overridden when this goes live?
    • Open a ticket (DEVOPS) to make sure that they have been added to secure vars.
    • Add an entry to the CHANGELOG.
  • Are you adding/updating any variables that need to be added/updated to a specific configuration-secure repo?

@alfredchavez
alfredchavez force-pushed the alfred/bb-4521-create-mongo-indexes-in-deployment branch from 4ac1b2d to 6325308 Compare October 15, 2021 12:47
@alfredchavez
alfredchavez force-pushed the alfred/bb-4521-create-mongo-indexes-in-deployment branch from 6325308 to e42933a Compare October 15, 2021 12:49
@alfredchavez alfredchavez changed the title Draft: [WIP] BB-4521 Create mongo indexes in forum and edx_platform deployment BB-4521 Create mongo indexes in forum and edx_platform deployment Oct 15, 2021

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As the next step will be opening the upstream PR, please remember about updating CHANGELOG.md.

Comment thread playbooks/roles/forum/tasks/deploy.yml Outdated
Comment thread playbooks/roles/forum/tasks/deploy.yml Outdated
Comment thread playbooks/roles/lms_ensure_indexes/tasks/main.yml Outdated

@Agrendalath Agrendalath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

  • I tested this: verified that indexes are created correctly during deployment
  • I read through the code
  • I checked for accessibility issues: n/a
  • Includes documentation
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository: n/a

@Agrendalath
Agrendalath merged commit 02cc57a into opencraft-release/koa.3 Oct 28, 2021
@Agrendalath
Agrendalath deleted the alfred/bb-4521-create-mongo-indexes-in-deployment branch October 28, 2021 12:33
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