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

Move security api from plugins to clients #442

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

florianvazelle
Copy link
Collaborator

Description

I move the SecurityClient from the plugins directory to the clients directory, accordingly to the @saimedhi comment (#399 (comment)).

All the security features are considered as part of core features of OS.

Signed-off-by: florian <florian@harfanglab.fr>
Signed-off-by: florian <florian@harfanglab.fr>
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #442 (763b89d) into main (4dba35d) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #442   +/-   ##
=======================================
  Coverage   71.49%   71.49%           
=======================================
  Files          81       81           
  Lines        7668     7668           
=======================================
  Hits         5482     5482           
  Misses       2186     2186           
Impacted Files Coverage Δ
opensearchpy/_async/client/plugins.py 93.75% <ø> (-0.70%) ⬇️
opensearchpy/_async/client/security.py 51.08% <ø> (ø)
opensearchpy/client/plugins.py 93.75% <ø> (-0.70%) ⬇️
opensearchpy/client/security.py 51.08% <ø> (ø)
opensearchpy/_async/client/__init__.py 43.95% <100.00%> (+0.41%) ⬆️
opensearchpy/client/__init__.py 60.43% <100.00%> (+0.29%) ⬆️

@dblock
Copy link
Member

dblock commented Jul 20, 2023

How does this impact end-users? Anything I'd have to change in my code when upgrading?

@florianvazelle
Copy link
Collaborator Author

@dblock This not impact end-users, security API is still accessible from the client, I haven't changed the tests, it still works as before.
You'll just have to change the import paths if you imported the client directly from plugins (from opensearchpy.plugins import security into from opensearchpy.clients import security).

@dblock
Copy link
Member

dblock commented Jul 20, 2023

You'll just have to change the import paths if you imported the client directly from plugins (from opensearchpy.plugins import security into from opensearchpy.clients import security).

That's a breaking change :( Is there a way to proxy the old to the new so we don't have to bump the major version?

@saimedhi
Copy link
Collaborator

You'll just have to change the import paths if you imported the client directly from plugins (from opensearchpy.plugins import security into from opensearchpy.clients import security).

That's a breaking change :( Is there a way to proxy the old to the new so we don't have to bump the major version?

@dblock This change is not yet released.

@dblock
Copy link
Member

dblock commented Jul 21, 2023

You'll just have to change the import paths if you imported the client directly from plugins (from opensearchpy.plugins import security into from opensearchpy.clients import security).

That's a breaking change :( Is there a way to proxy the old to the new so we don't have to bump the major version?

@dblock This change is not yet released.

Oh! Good.

@dblock dblock merged commit 5dc51d4 into opensearch-project:main Jul 21, 2023
46 checks passed
@florianvazelle florianvazelle deleted the move-security branch July 21, 2023 18:30
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