Skip to content

Releases: codefresh-io/index-alignment

v0.0.2

01 Jul 15:45
1c98d8c

Choose a tag to compare

docs: document `indexStats` (#3)

v0.0.1

01 Jul 07:37
8274c3f

Choose a tag to compare

fest: create basic script for index drift detection and elimination (#1)

* build: init project

* feat: add `dump` command

* build: add dump of prod indexes

* build: clear indexes before dump

* refactor: improve logs

* refactor: add newline in the end of the dump

* feat: add `compare` and `sync` commands

* docs: add docs

* build: add Dockerfile

* tests: add `sync` tests

* ci: add pipeline yaml

* refactor: cleanup classic indexes

* refactor: fix typo

* feat: add `--force` flag

* ci: update pipeline

* ci: fix pipeline, update docs

* ci: fix repo in package.json

* docs: improve `--db-map` help

* docs: improve `sync` documentation

* ci: remove redundant pipeline

* docs: document `isIndexEqual()`

* docs: document Logger behavior

* docs: document `syncIndexes()` function

* Revert "ci: remove redundant pipeline"

This reverts commit e77b9f5b66abb1e393b946b5083b59f6784a835f.

* test: fix tests

* ci: fix test coverage scprit

* build: bump `mongodb`

* ci: build `amd64/arm64` image

* build: add full dump

* feat: add `stats` command

* fix(stats): fix getting oldest doc

* remove legacy databases

* remove legacy databases

* feat: add planCache stats

* feat(stats): add indexStats stats

* feat: update index dump

* refactor: reorganize code

* feat: add default DB mapping `google_production=codefresh`

* feat: add ignore overrides

* feat: add ignore-list for classic

* fix: fix comparison for abscent DBs

* fix: improve ignorelists

* feat: ignore `payments` db

* fix: map `charts-manager`

* fix: map `kubernetes-monitor`

* fix: ingnore build TTL indexes in target DB

* fix: ignore `payments-accounts-archive` in dump

* feat: extend “heavy collections” list

* refactor: rename variables

* docs: improve docs

---------

Co-authored-by: Mikhail Klimko <mikhail.klimko@octopus.com>