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 Rekognition support. #4957

Merged
merged 4 commits into from
Mar 29, 2022
Merged

Conversation

AlanDonohoe
Copy link
Contributor

@AlanDonohoe AlanDonohoe commented Mar 21, 2022

Description

Adds Rekognition support.

Background Context

At the moment just adding support for start_text_detection and get_text_detection.

refs:
https://docs.aws.amazon.com/rekognition/latest/dg/what-is.html
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rekognition.html
#4071

@AlanDonohoe
Copy link
Contributor Author

AlanDonohoe commented Mar 21, 2022

Hi @bblommers following on from #4955 - I have had a crack at adding Rekognition support to moto.

I am sure that I have got a few bits wrong/ missed something, as this is the first time working in this codebase.

If someone could review the code as is and I can then amend.

Thank you.

@AlanDonohoe AlanDonohoe force-pushed the rekognition branch 2 times, most recently from cd66e2a to ea97597 Compare March 21, 2022 13:57
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 @AlanDonohoe, thanks for the PR! Please see my comments.

If you want to run the linter locally, to verify it passes, you can run make lint.

moto/rekognition/models.py Show resolved Hide resolved
moto/rekognition/responses.py Outdated Show resolved Hide resolved
moto/rekognition/responses.py Outdated Show resolved Hide resolved
tests/test_rekognition/test_rekognition.py Show resolved Hide resolved
tests/test_rekognition/test_rekognition.py Show resolved Hide resolved
tests/test_rekognition/test_server.py Outdated Show resolved Hide resolved
@AlanDonohoe AlanDonohoe force-pushed the rekognition branch 3 times, most recently from 1af0a22 to c72a44b Compare March 27, 2022 15:40
@AlanDonohoe
Copy link
Contributor Author

OK, @bblommers I have made a number of amendments based on your feedback and the code is ready for a re-review please.

Thank you.

@bblommers
Copy link
Collaborator

LGTM so far @AlanDonohoe - happy to merge once the linter is happy (and assuming the build passes, obviously)

@AlanDonohoe
Copy link
Contributor Author

LGTM so far @AlanDonohoe - happy to merge once the linter is happy (and assuming the build passes, obviously)

OK cool...

There was one linter issue, which I have since resolved.

Have pushed that up now, so once all the linter checks and tests are good, you'll be happy to merge in!

And I can use moto's new Rekognition support back in my original project!

I'm going to resolve all the conversations up to this point so it's clear what amendments have been subsequently fixed up.

@bblommers
Copy link
Collaborator

@AlanDonohoe There are still some test failures, but they should be resolved after you merge this PR that I raised: LiniusAustPty#1

@AlanDonohoe
Copy link
Contributor Author

@AlanDonohoe There are still some test failures, but they should be resolved after you merge this PR that I raised: LiniusAustPty#1

@bblommers Thanks for that... I have merged in.

Do you want me to do some rebasing now on this branch (or are the commits OK as is?)

@bblommers
Copy link
Collaborator

Do you want me to do some rebasing now on this branch (or are the commits OK as is?)

No, that's not necessary, I'll just squash and merge.

Thank you for all your work on this @AlanDonohoe!

@bblommers bblommers merged commit 4ed5a83 into getmoto:master Mar 29, 2022
@bblommers bblommers added this to the 3.1.4 milestone Mar 29, 2022
@github-actions
Copy link
Contributor

This is now part of moto >= 3.1.4.dev3

@AlanDonohoe
Copy link
Contributor Author

Do you want me to do some rebasing now on this branch (or are the commits OK as is?)

No, that's not necessary, I'll just squash and merge.

Thank you for all your work on this @AlanDonohoe!

Amazing. V happy this will be in the next release.

Thanks for all the feedback and assistance @bblommers

@AlanDonohoe AlanDonohoe deleted the rekognition branch March 29, 2022 15:14
sahilshah6196 pushed a commit to EBSCOIS/moto that referenced this pull request Jul 1, 2022
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.

None yet

2 participants