mitre-attack / mitre-attack/attack-workbench-rest-api

As a system administrator, I would like to have a script to create MongoDB indexes

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
57
Forks
18
Avg merge
6m
Merged PRs (30d)
2

Description

Currently, the app automatically creates indexes every time it starts up. This should be changed so that it only does this when running in development mode. When running in production mode, the main app should assume that all indexes are already created.

This will require the creation of a one-time script that can be used to initialize the database with the correct indexes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the application startup path that currently creates MongoDB indexes and review how development and production modes are selected. Add the one-time database initialization entry point described in the issue, and confirm that production startup assumes indexes already exist while development retains automatic creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.