-
Notifications
You must be signed in to change notification settings - Fork 58
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
Updated opensearch-php to reflect the latest OpenSearch API spec #213
Conversation
Shouldn't be merged. ML namespace needs to be patched in generator to prevent breaking changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's block this PR to avoid merging accidentally.
@saimedhi are you fixing the ml
part?
yes |
@saimedhi There's another change in the spec that you might need to handle, similar to opensearch-project/opensearch-py#777, see opensearch-project/opensearch-api-specification#416 where |
I'll take a look at this when I have a moment. Thank you :) |
We would need to keep the name |
Hi @shyim,
|
Renaming a class or namespace is a break, I would stick to maybe we should add https://github.com/Roave/BackwardCompatibilityCheck to the pipelines |
Do client users have to reference this namespace explicitly, meaning why is it considered a breaking change? I think long term we'd like the generated code to look more like the spec. Is there a way to patch/subclass the generated default name into a namespace for backwards compatibility. If not, yes.
Definitely. Open an issue so we don't forget? I think @saimedhi isn't working on the fix. If you have time appreciate it, if not maybe I can take it up next. LMK! |
0c93ea4
to
6965230
Compare
f4b8b9d
to
5c6d162
Compare
889e26b
to
4db986d
Compare
d69961e
to
60dcdba
Compare
One of the tests failed because
@saimedhi What's the right way to deal with the sql namespace that gets generated with different function names, like here where |
@dblock , It needs to be added here https://github.com/opensearch-project/opensearch-php/tree/main/util/EndpointProxies. Please refer point in time APIs in above link. Thank you. |
97e3728
to
c3db7f3
Compare
@saimedhi one more, in https://github.com/opensearch-project/opensearch-php/pull/213/files#diff-1e5c4748694dfd5e04e32ebaaaaf36245262522d929e9d9232d8afc2c32352b3L41 the API spec was changed to un-confuse metric and node_id. What's the best way to restore this behavior inside |
@dblock, I see that it is handled in opensearch-py here. Similarly it can be done in opensearch-php here. I hope I rightly answered your question. Thanks. |
@dblock it's fine for me |
27e6238
to
5ea1873
Compare
5ea1873
to
4407a23
Compare
Thanks. The best workaround I found is #221. Please review. |
a5d9e62
to
27810f2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
============================================
+ Coverage 22.01% 28.07% +6.06%
- Complexity 2260 2707 +447
============================================
Files 309 377 +68
Lines 9026 11056 +2030
============================================
+ Hits 1987 3104 +1117
- Misses 7039 7952 +913 ☔ View full report in Codecov by Sentry. |
…4-08-12) Signed-off-by: GitHub <noreply@github.com>
839a332
to
1f6f5b5
Compare
Updated opensearch-php to reflect the latest OpenSearch API spec
Date: 2024-08-12