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

Add Tag Support #25

Merged
merged 3 commits into from
May 23, 2024
Merged

Add Tag Support #25

merged 3 commits into from
May 23, 2024

Conversation

rknightuk
Copy link
Contributor

@rknightuk rknightuk commented Apr 18, 2024

  • Added test for FacetTag
  • Updated post service test
  • Updated readme
  • Add two new methods: addFacetsFromTags and addFacetsFromMentionsAndLinksAndTags

I'm not sure how you want to handle this. Right now I've added new methods as to not break existing installs and keep the existing methods. The cleaner way would be to bump a major version and remove/rename the old addFacetsFromMentionsAndLinks method.

Let me know and I'm happy to update if need be.

I have been using my version of this code on EchoFeed and it's been working very well. This is a complete copy of what I have there.

@rknightuk rknightuk mentioned this pull request Apr 18, 2024
@potibm
Copy link
Owner

potibm commented Apr 20, 2024

Wow. Thanks for aligning so much with my strange API :) Btw.. I even could use this feature for my own website... thanks again :)

@rknightuk
Copy link
Contributor Author

Thanks for aligning so much with my strange API

Strange or not, it saved me a bunch of time on EchoFeed so I'm very grateful.

@potibm
Copy link
Owner

potibm commented Apr 23, 2024

@rknightuk phpunit mentions some risky tests...

{
return [
'$type' => parent::TYPE . '#tag',
"tag" => $this->tag,
Copy link
Owner

Choose a reason for hiding this comment

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

dunno why ECS does not catch those double-quotes here...

Copy link
Owner

Choose a reason for hiding this comment

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

@rknightuk could you take a look at the code style, please?

@potibm potibm merged commit 5764335 into potibm:main May 23, 2024
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.

2 participants