Skip to content

Cmr 10636 jn - #2280

Closed
indiejames wants to merge 4 commits into
CMR-10636from
CMR-10636-jn
Closed

Cmr 10636 jn#2280
indiejames wants to merge 4 commits into
CMR-10636from
CMR-10636-jn

Conversation

@indiejames

@indiejames indiejames commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

Overview

What is the feature/fix?

Refactoring of function for determining proper cluster for a given index

Please summarize the feature or fix.
Refactoring of function for determining proper cluster for a given index

What is the Solution?

Refactoring of function for determining proper cluster for a given index

Summarize what you changed.
Refactoring of function for determining proper cluster for a given index.
Also added completion config file for fish shell users

What areas of the application does this impact?

List impacted areas.
indexer,search,acls,bootstrap

Checklist

  • I have updated/added unit and int tests that prove my fix is effective or that my feature works
  • New and existing unit and int tests pass locally and remotely
  • clj-kondo has been run locally and all errors corrected
  • I have removed unnecessary/dead code and imports in files I have changed
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have cleaned up integration tests by doing one or more of the following:
    • migrated any are2 tests to are3 in files I have changed
    • de-duped, consolidated, removed dead int tests
    • transformed applicable int tests into unit tests
    • refactored to reduce number of system state resets by updating fixtures (use-fixtures :each (ingest/reset-fixture {})) to be :once instead of :each
  • I have filled out an unreasonably long GitHub PR template

@indiejames
indiejames requested a review from jmaeng72 August 14, 2025 16:44
@indiejames
indiejames requested a review from ygliuvt August 18, 2025 13:08
Comment thread elastic-utils-lib/src/cmr/elastic_utils/search/es_index.clj
(testing "Random/default indices should return non-gran cluster"
(let [random #{"some_index" "users" "metadata" ""}]
(doseq [index random]
(is (= non-gran-cluster (es-index/get-es-cluster-name-from-index-name index))))))) No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you have a missing new line. Did you use vscode and the calva plugin?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, vscode and calva

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure to which newline you are referring

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the one at the end of the file, the (-).

Comment thread resources/shell/cmr.fish
@@ -0,0 +1,69 @@
# file: cmr.fish

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wait, there is another fish user on the project?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what is this file for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sorry, this is a command completions file for using the cmr command in the fish shell. It's not important to your branch, I just used it as an opportunity to add it as mentioned in the README

(If you use a system shell not compatible with Bash, we accept Pull Requests for
new shells with auto-complete.)

@jceaser jceaser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would like to know why your only matching 1_c.

@indiejames indiejames closed this Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants