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

Suggest to loosen the dependency on elasticsearch #1

Open
Agnes-U opened this issue Nov 21, 2022 · 0 comments
Open

Suggest to loosen the dependency on elasticsearch #1

Agnes-U opened this issue Nov 21, 2022 · 0 comments

Comments

@Agnes-U
Copy link

Agnes-U commented Nov 21, 2022

Dear developers,

Your project eisp requires "elasticsearch==7.7.0" in its dependency. After analyzing the source code, we found that the following versions of elasticsearch can also be suitable without affecting your project, i.e., elasticsearch 6.8.0, 6.8.1, 6.8.2, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.1.0, 7.5.0, 7.5.1, 7.6.0a1, 7.6.0, 7.7.0a2, 7.7.0a1. Therefore, we suggest to loosen the dependency on elasticsearch from "elasticsearch==7.7.0" to "elasticsearch>=6.8.0,<=7.7.0" to avoid any possible conflict for importing more packages or for downstream projects that may use ddos_script.

May I pull a request to further loosen the dependency on elasticsearch?

By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?



Details:

Your project (commit id: c76ebd1) directly uses 1 APIs from package elasticsearch.

elasticsearch.helpers.actions.parallel_bulk

Beginning fromwhich, 4 functions are then indirectly called, including 3 elasticsearch's internal APIs and 1 outsider APIs as follows:

[/cceh/eisp]
+--elasticsearch.helpers.actions.parallel_bulk
|      +--elasticsearch.helpers.actions._chunk_actions
|      +--elasticsearch.helpers.actions._process_bulk_chunk
|      |      +--elasticsearch.helpers.errors.BulkIndexError.__init__
|      |      +--operator.methodcaller

Since all these functions have not been changed between any version for package "elasticsearch" from [6.8.0, 6.8.1, 6.8.2, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.1.0, 7.5.0, 7.5.1, 7.6.0a1, 7.6.0, 7.7.0a2, 7.7.0a1] and 7.7.0. Therefore, we believe it is safe to loosen the corresponding dependency.

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

No branches or pull requests

1 participant