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

CMR-9502: Has-granules-map cache to redis #2058

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jmaeng72
Copy link
Contributor

@jmaeng72 jmaeng72 commented Feb 15, 2024

UPDATE: THIS PR IS ON HOLD UNTIL UNBLOCKED BY REDIS FIXES. WILL WORK ON NEXT PI 24.2.0

  • Moved has-granules-map schedule job to bootstrap
  • Converted has-granules-map from in-memory to external redis
  • Updated int test
  • Added has-granules-map refresh api to bootstrap
  • no redis cache structure changes were made

@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2024

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (e7d879e) 58.12% compared to head (b89b104) 28.00%.
Report is 2 commits behind head on master.

Files Patch % Lines
...s/query_execution/has_granules_results_feature.clj 12.50% 7 Missing ⚠️
bootstrap-app/src/cmr/bootstrap/system.clj 0.00% 3 Missing ⚠️
bootstrap-app/src/cmr/bootstrap/api/routes.clj 0.00% 2 Missing ⚠️
...ommon_app/services/search/elastic_search_index.clj 50.00% 1 Missing ⚠️
search-app/src/cmr/search/system.clj 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2058       +/-   ##
===========================================
- Coverage   58.12%   28.00%   -30.13%     
===========================================
  Files        1042     1042               
  Lines       69529    69539       +10     
  Branches     1950     1176      -774     
===========================================
- Hits        40413    19472    -20941     
- Misses      27280    48893    +21613     
+ Partials     1836     1174      -662     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -35,6 +35,7 @@
[cmr.metadata-db.config :as mdb-config]
[cmr.metadata-db.system :as mdb-system]
[cmr.metadata-db.services.util :as mdb-util]
[cmr.search.services.query-execution.has-granules-results-feature :as has-granules-results-feature]
Copy link
Contributor

Choose a reason for hiding this comment

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

you could say has-gran-rslt-feat, it's a bit long, but I don't mind either way. I love how people use longer names these days, but still remember fondly when you could shorting things up

@@ -46,6 +46,12 @@
(fn [concept-type query]
[concept-type (qm/base-result-format query)]))

(defmethod concept-type+result-format->fields [:granule :xml]
Copy link
Contributor

Choose a reason for hiding this comment

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

I have not seen a + sign in a function name in our code base, have you seen another function do this? Obviously you can do it, but it stands out and I wonder what other developers think.

Copy link
Contributor

@jceaser jceaser left a comment

Choose a reason for hiding this comment

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

I don't see anything wrong, just a couple of questions, one open to everyone, but I don't see any reason to hold this ticket up.

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

Successfully merging this pull request may close these issues.

4 participants