-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
feat: add meilisearch #2823
feat: add meilisearch #2823
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
modules/meilisearch/meilisearch.go
Outdated
// Deprecated: use Run instead | ||
// RunContainer creates an instance of the Meilisearch container type | ||
func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*MeilisearchContainer, error) { | ||
return Run(ctx, "getmeili/meilisearch:v1.10.3", opts...) | ||
} |
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.
Seeing this block of code, I guess you copy-pasted some other module. Could you run the code generation tool for creating modules, as explained here?
It informs of the different alternatives to host the module (here in the core or in your own GH user as a community module), also creating the docs pages for the new module. Finally, it will update the files to include the new module in the CI, among others.
I'd suggest you run the tool first, checking that your code does not include Deprecated
code (the tool does not include it)
Thanks!
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.
@mdelapenya yes true I copied paste from OpenSearch 😄
Ok sure I will run and re-request your review. Thank you @mdelapenya for the comment.
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 have a commit with the scaffolding, but I cannot push it because this branch is your main branch. I'll try to submit a PR to your branch so you can incorporate it into this one
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.
Sure @mdelapenya
@mashail not sure if you check out my previous comment in #2823 (comment), but I can help you out adding the needed changes on top of yours. Wdyt? |
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 left a few suggestions. The most important one is regarding adding the scaffolding (I have a commit for it, I can submit a PR to your branch)
modules/meilisearch/meilisearch.go
Outdated
// Deprecated: use Run instead | ||
// RunContainer creates an instance of the Meilisearch container type | ||
func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*MeilisearchContainer, error) { | ||
return Run(ctx, "getmeili/meilisearch:v1.10.3", opts...) | ||
} |
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 have a commit with the scaffolding, but I cannot push it because this branch is your main branch. I'll try to submit a PR to your branch so you can incorporate it into this one
@mdelapenya I invited you as a contributor |
chore: add module scaffolding
@mdelapenya I added the options to the docs |
@mdelapenya I rebased the branch if you may have a look |
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.
Looks like this is missing quite a few fixes from #2835
Which one are we going ahead with, to avoid duplicate effort?
#2835 is the right one, containing the initial commits from this one to preserve the authors. In fact, it will close this one when merged. |
Thanks I’m going to close this one manually to avoid any confusion |
What does this PR do?
Add Meilisearch Golang module
Why is it important?
Meilisearch is getting more popular and there Is already a java module for it.
Related issues