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

Elasticsearch - Expose the tagging functionality #8515

Merged
merged 6 commits into from
Feb 5, 2025

Conversation

jflim
Copy link
Contributor

@jflim jflim commented Jan 22, 2025

Fixes #8514

Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.62%. Comparing base (0238abd) to head (17771a0).
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8515   +/-   ##
=======================================
  Coverage   92.62%   92.62%           
=======================================
  Files        1229     1229           
  Lines      106421   106435   +14     
=======================================
+ Hits        98576    98590   +14     
  Misses       7845     7845           
Flag Coverage Δ
servertests 27.92% <28.57%> (+<0.01%) ⬆️
unittests 92.60% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

Hi @jflim, would you mind adding some tests for this? It looks good to me, but it would still be nice to have some validation that this is correct

@jflim jflim marked this pull request as draft January 30, 2025 01:09
@jflim jflim marked this pull request as ready for review February 2, 2025 23:25
@jflim
Copy link
Contributor Author

jflim commented Feb 2, 2025

Hi @jflim, would you mind adding some tests for this? It looks good to me, but it would still be nice to have some validation that this is correct

The test actually found an issue with the urls, so I'm glad I tested now 🌞 Retested with OpenSearch tests and tagging tests for opensearch and es.

@jflim jflim requested a review from bblommers February 2, 2025 23:31
@jflim
Copy link
Contributor Author

jflim commented Feb 2, 2025

I'm a bit confused as to why this fix works though. I believe I observed that remove_tags for OpenSearch was also matching the /2021-01-01/tags/? regex but from my understanding the ? was to handle if a URL ends with / or not.

@bblommers
Copy link
Collaborator

I'm a bit confused as to why this fix works though. I believe I observed that remove_tags for OpenSearch was also matching the /2021-01-01/tags/? regex but from my understanding the ? was to handle if a URL ends with / or not.

Looks like this is because we don't do a fullmatch. So ../tags is actually interpreted as ../tags.* - which also matches ../tags-removal.

Thank you for the PR!

@bblommers bblommers added this to the 5.0.29 milestone Feb 5, 2025
@bblommers bblommers merged commit 294fb71 into getmoto:master Feb 5, 2025
54 checks passed
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.

[Elasticsearch] Add responses for tagging using OpenSearch dispatch
2 participants