-
-
Notifications
You must be signed in to change notification settings - Fork 7
Port to Yii2 (Initial Commit). #46
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
base: master
Are you sure you want to change the base?
Conversation
terabytesoftw
commented
Apr 15, 2023
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
…ticsearch into initial-commit-1
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #46 +/- ##
=========================================
Coverage ? 57.04%
Complexity ? 170
=========================================
Files ? 6
Lines ? 440
Branches ? 0
=========================================
Hits ? 251
Misses ? 189
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
"keywords": ["yii", "elasticsearch", "active-record", "search", "fulltext"], | ||
"description": "Elasticsearch integration and ActiveRecord for the Yii framework", | ||
"keywords": [ | ||
"yii2", |
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.
"yii2", | |
"yii3", |
"type": "library", | ||
"license": "BSD-3-Clause", | ||
"support": { | ||
"issues": "https://github.com/yiisoft/yii-elasticsearch/issues", | ||
"issues": "https://github.com/yiisoft/yii2-elasticsearch/issues", |
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.
Shouldn't it be this package?
"ext-curl": "*", | ||
"ext-json": "*", | ||
"ext-mbstring": "*", | ||
"paragonie/random_compat": ">=1", |
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.
I don't think we need the compat library. randon is properly supported in new versions of PHP.
}, | ||
"config": { | ||
"allow-plugins": { | ||
"yiisoft/yii2-composer": true |
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.
No need for it.
|
||
namespace Yiisoft\Db\ElasticSearch; | ||
namespace Yiisoft\Elasticsearch; |
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.
Should we rename the package?
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.
If package not depend from yiisoft/db
, then need remove db-
prefix.
{ | ||
return $this->db->head([$index, $type, $id]); | ||
if ($this->db->getDslVersion() >= 7) { |
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.
Do we support DSL for versions < 7?
Also, there's https://github.com/elastic/elasticsearch-php. Are we sure we want our own implementation for Yii3? |
If you check the client, and compare it with the api of this library, this is by far much better. |
However, if you think it's better to use the php library, then let's drop this package, just like the db packages, which you think aren't worth porting. |