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

refactor(cleanup 🧹): Reverse image search #8898

Merged
merged 2 commits into from
Jun 16, 2023

Conversation

gkartalis
Copy link
Member

@gkartalis gkartalis commented Jun 16, 2023

This PR resolves MOPLAT-830

Description

Cleans up reverse image search dependency due to some early crashes on android when opening the app in some devices.

Also blocked some reanimated upgrades.

More info on the crash can be found on the github issue here

Turning off the feature for now but we can easily bring it back if we decide with the diff of this PR.

cc @artsy/fx-devs
cc @artsy/mobile-platform

slack thread for more context can be found here

No visual changes since we never released.

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • Reverse image search cleanup - gkartalis

Need help with something? Have a look at our docs, or get in touch with us.

Copy link
Member

@anandaroop anandaroop left a comment

Choose a reason for hiding this comment

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

LGTM

@damassi damassi merged commit a085d5b into main Jun 16, 2023
@damassi damassi deleted the gkartalis/cleanup-reverse-image-search branch June 16, 2023 17:23
@dimatretyak
Copy link
Contributor

dimatretyak commented Jun 17, 2023

question: should we remove the logic for this feature on the Metaphysics side also? For example, this, this and this PRs? or at least disable the ability to pass a file in a GraphQL query for users (unless of course it is used for other GraphQL queries)?

@@ -61,11 +61,6 @@ export const features: { [key: string]: FeatureDescriptor } = {
description: "Enable query prefetching",
echoFlagKey: "AREnableQueriesPrefetching",
},
AREnableImageSearch: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can also remove useIsForeground since this hook is not used anywhere else

@dimatretyak
Copy link
Contributor

great work 🔥

@mrousavy
Copy link

hey let me know whats blocking you from using VisionCamera, I'm working on REA v3 support and in V3 the crash you linked will also be fixed due to a new way to initialize Frame Processors.

Also; if you don't use Frame Processors you can disable them with a build flag and both of those issues should be fixed already

@gkartalis
Copy link
Member Author

Thanks a lot for the update @mrousavy!

We temporarily disabled a feature that was not yet available and having the library was creating crashes with the feature disabled. We will revisit the feature at some point and will get the latest version 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants