Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • I Indexer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • System
  • Indexer
  • Merge requests
  • !76

Gcp full reindex (GONRG-1534)

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Rustam Lotsmanenko (EPAM) requested to merge gcp-full-reindex into master Jan 22, 2021
  • Overview 13
  • Commits 5
  • Pipelines 5
  • Changes 11

Description:

As a part of the migration to a new Elastic 7 we need some functionality
that will allow us to do full reindex of Records registered in Storage service.
Added new endpoint: PATCH /api/indexer/v2/reindex?force_clean=false

  • Get all kind from Storage
  • Clean all old indexes in Elastic
  • Iterate over kinds and do reindex

How to test:

Functionality was tested locally, with local elastic(v6 & v7)

Changes include:

  • Refactor (a non-breaking change that improves code maintainability).
  • Bugfix (a non-breaking change that solves an issue).
  • New feature (a non-breaking change that adds functionality).
  • Breaking change (a change that is not backward-compatible and/or changes current functionality).

Changes in:

  • GCP
  • Azure
  • AWS
  • IBM

Dev Checklist:

  • Existing Tests pass
  • Verified functionality locally
  • Self Reviewed my code for formatting and complex business logic.

Other comments:

Functionality was implemented with reusing existing logic for reindex of a single kind, to reduce common code changes, thus due to architectural features, request cannot be executed asynchronously, and response may be detained.

Edited Jan 22, 2021 by Rustam Lotsmanenko (EPAM)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gcp-full-reindex