Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/es-phase-2 #3785

Draft
wants to merge 65 commits into
base: master
Choose a base branch
from
Draft

feature/es-phase-2 #3785

wants to merge 65 commits into from

Conversation

jennyhliu
Copy link
Contributor

@jennyhliu jennyhliu commented Aug 27, 2024

Summary: Summary of changes

Addresses CUMULUS-3225: Replace ElasticSearch (Phase 2)

Changes

  • Detailed list or prose of changes
  • ...

PR Checklist

  • Update CHANGELOG
  • Unit tests
  • Ad-hoc testing - Deploy changes and test manually
  • Integration tests

jennyhliu and others added 30 commits May 8, 2024 13:08
…sic queries (#3637)

* CUMULUS-3692:Granule list endpoint for basic postgres query
…er by field value (#3656)

* CUMULUS-3692:Granule list endpoint for basic postgres query

* refactor

* refactor

* typing

* add changelog entry

* skip search_after

* skip searchafter unit tests

* add granule list test

* rename

* refactor

* build query parameters

* update comment

* add field-mapping

* update jsdoc

* use type over interface,add log

* update test description

* build term/terms

* buildDbQueryParameters

* add unit test no terms search

* add doc

* rename

* add unit test

* add fields test

* add more unit tests

* support error.Error search

* fix lint

* rename functions

* ignore files

* add convert query unit tests

* add all types

* add unit test for fieldmapping types fix timestamp

* update timestamp test

* add multiple term field test

* ignore execution in granule list record
…se psql (#3659)

* first commit on new branch

* CHANGELOG change

* small fix

* PR feedback

* adding jsdoc + fixing spelling/grammar
* first committ

* CHANGELOG change

* fixing sortQueryMethod

* simplifying code

* PR feedback

* merge conflicts + improving code

* small jsdoc fix

* PR feedback

* PR feedback

* PR feedback

* fixing test

* PR feedback

* PR feedback
…ic (#3681)

* reopening PR

* PR feedback

* small test fix

* small PR feedbacks

* adding new tests from match queries

* PR feedback/formatting

* temporary reversion to list endpoint for reconreport tests

* reverting changes

* adding logging

* more logging

* more logging

* removing logging + commenting reconrep test temp

* commenting out failing createReconReport spec

* removing comment

* reverting changes to reconReport test

* reverting previous change

* adding ts-check

* PR feedback

* PR feedback

* adding in test

* PR feedback fix

* PR feedback
…ncludeStats (#3688)

* first commit

* CHANGELOG

* fixing small things

* changes + fixes

* PR feedback

* splitting queries separately

* PR feedback

* PR feedback

* PR feedback
…ollections (#3693)

* CUMULUS-3639:Add support to db/CollectionSearch to retrieve active collections

* add test active collections

* add ts-check

* update /collections/active unit test

* test snyk

* fix field mapping

* parallel search and fix urlPath

* add cumulus-lp stack

* add limit 1 to subquery
#3684)

* first commit

* adding changes

* storing changes

* updating progress

* linting + small fixes

* small fix

* changing timestamp to string in tests

* fixing timestamp

* commenting out tests failing in CI but not locally

* saving changes

* collection support

* adding async_ops support

* changing endpoint + tests

* fixing test

* uncommenting tests + adding var

* commenting out tests failing in CI but not locally

* adding parentArn support + changing tests

* added parentArn support + fixing tests

* small endpoint test fix

* Pr feedback + code improvements

* small CHANGELOG fix

* PR feedback

* PR feedback + linting

* PR feedback

* PR feedback

* fixing test

* fixing execution tests after removing asyncCumulusOPId from mapping

* PR feedback

* removed includeFullRecord from search classes

* PR feedback

* PR feedback

* reverting change
…e related es queries to query postgres (#3727)

* removing granules

* fixing lint

* fixing test

* small change

* adding back in some deleted things

* removing more

* lint fix

* removing tests

* skipping execution search-by-granules tests

* skipping execution tests

* removing tests

* more removing

* adding in deleted test

* removing more

* adding back in needed code

* removing ES_HOST, query, and index from bulk_ops

* fixing bulk_ops tests

* adding back in ELK stack refs

* changing reconreports test to skip/adding back in getGranulesByPayload

* PR feedback

* adding back in skipped tests

* CHANGELOG

* PR feedback

* PR feedback' .
;

* PR feedback + syntax check

* adding back sort to write-granules test
…ts (#3723)

* CUMULUS-3240:Remove ElasticSearch dependency from Executions endpoints

* update test-executions

* remove es dependencies for execution

* update changelog

* fix lint and warning

* address PR feedback

* remove esClient from createExecutionRecords
* estimate table row count

* add more indexes

* use count *

* fix test

* fix test

* fix lint and add file index

* add more index

* fix lint

* fix lint update test

* execution asyncOperationId is optional

* defautl stats last day

* fix granule patchByGranuleId put logic back

* vaccum tables

* update changelog

* remove sql script to another pr

* update changelog

* update active collection query

* Revert "update active collection query"

This reverts commit 88024c2.
…UT, and DEL endpoints (#3746)

* first commit

* CHANGELOG change

* PR feedback

* PR feedback
* CUMULUS-3792:Add table indexes to improve search performance
…ostgres (#3771)

* Update PR mentioned endpoints to not write to ES

* Update POST units to not use ES

* Fix/manage broken tests

* Update package/async-operations to not use ES

* Remove ES update from async-operations image

* Update async image to use v53, which includes removal of ES code

* Fix broken ecs package tests/logic

* Minor refactor

* Update CHANGELOG

* Remove additional unneeded test

* Fix CHANGELOG

* Modify unit ratchet to match after removal of code

Code was removed, not refactored - this change did not degrade/improve
units so much as change the denominator of lines/methods tested

* Fix integration test/make it not rely on list endpoint

* Refactor/PR feedback

* Update example/spec/serial/AsyncOperationRunnerSuccessfulLambdaSpec.js

Co-authored-by: jennyhliu <[email protected]>

* Remove unneeded transaction

* Remove unneeded type assertion/error handling

* Remove transaction

* Address PR comments

---------

Co-authored-by: jennyhliu <[email protected]>
…3768)

* CUMULUS-3235: Updated asyncOperations api endpoint to query postgres

* id::text

* revert uuid for term search update unit tests

* update unit test

* refact basic search

* raw-parameter-binding

* deconstruct response

* deconstruct fields

* whereRaw parameter binding

* remove extra knex parameter

* fix unit test conflict
* Update PR mentioned endpoints to not write to ES

* Update POST units to not use ES

* Fix/manage broken tests

* Update package/async-operations to not use ES

* Remove ES update from async-operations image

* Update async image to use v53, which includes removal of ES code

* Fix broken ecs package tests/logic

* Minor refactor

* Update CHANGELOG

* Remove additional unneeded test

* Fix CHANGELOG

* Modify unit ratchet to match after removal of code

Code was removed, not refactored - this change did not degrade/improve
units so much as change the denominator of lines/methods tested

* Fix integration test/make it not rely on list endpoint

* Refactor/PR feedback

* Update example/spec/serial/AsyncOperationRunnerSuccessfulLambdaSpec.js

Co-authored-by: jennyhliu <[email protected]>

* Remove unneeded transaction

* Remove unneeded type assertion/error handling

* Remove transaction

* Address PR comments

* Remove ES calls from DEL/GET PDR endpoints

* Update CHANGELOG

* Remove unneede deps

* Fix bad merge

* Fix lint/etc

---------

Co-authored-by: jennyhliu <[email protected]>
…arch dependency and query Postgres instead (#3764)

* first commit

* fixing CHANGELOG entry

* PR feedback

* PR feedback
charleshuang80 and others added 30 commits August 28, 2024 15:41
* CUMULUS-3231:Update PDRs LIST endpoint to query RDS

* Unit test on PdrSearch

* test description

* pdr endpoint test

* fix tsc:listEmittedFiles error

* fix test typo
…nd address some ts-check issues in endpoint file, shorten translate func name
…nd address some ts-check issues in endpoint file, shorten translate func name
CUMULUS-3837: Create ReconciliationReportsTable in RDS and add indexes
…tgres (#3797)

* CUMULUS-3833: Migrate ReconciliationReports to RDS

* Update ReconciliationReportsMigration lambda

* update lambda readme

* correct names

* update reconciliation-report-migration

* revert migration-helper-async-operation no need async

* update lambda

* fix terraform

* update test coverage number

* remove unused variable

* add used variable back

* update package description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants