Skip to content

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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

terabytesoftw
Copy link
Member

Q A
Is bugfix? ✔️
New feature?
Breaks BC?

@codecov
Copy link

codecov bot commented Apr 15, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@092d040). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Current head af2a755 differs from pull request most recent head 87e30a6. Consider uploading reports for the commit 87e30a6 to get more accurate results

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

"keywords": ["yii", "elasticsearch", "active-record", "search", "fulltext"],
"description": "Elasticsearch integration and ActiveRecord for the Yii framework",
"keywords": [
"yii2",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"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",
Copy link
Member

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",
Copy link
Member

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
Copy link
Member

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;
Copy link
Member

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?

Copy link
Member

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) {
Copy link
Member

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?

@samdark
Copy link
Member

samdark commented Apr 16, 2023

Also, there's https://github.com/elastic/elasticsearch-php. Are we sure we want our own implementation for Yii3?

@terabytesoftw
Copy link
Member Author

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.

@terabytesoftw
Copy link
Member Author

Also, there's https://github.com/elastic/elasticsearch-php. Are we sure we want our own implementation for Yii3?

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.

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.

4 participants