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

fix: do waitTask on all tasks before moving index #362

Merged
merged 12 commits into from
Sep 16, 2021

Conversation

DevinCodes
Copy link
Contributor

@DevinCodes DevinCodes commented Sep 15, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no

Describe your change

This updates the SearchImport command to wait until all indexing operations are done before performing a moveIndex operation. This could prevent accidental loss of data.

@DevinCodes
Copy link
Contributor Author

@chloelbn have you seen this error in the CI before? 🤔

Copy link

@matthewbond matthewbond left a comment

Choose a reason for hiding this comment

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

The change looks great, for the CI errors, if I understand this change right: symfony/symfony#40986 then getOption will now sometimes return null, could this be why there are these errors in the CI?

@DevinCodes
Copy link
Contributor Author

@matthewbond You're right, fixed this in c2df2d4.

I was referring to the following error however:

Fatal error: Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator): void and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available in /home/circleci/project/vendor/symfony/proxy-manager-bridge/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php on line 33

It looks like this comes from the fact that v3.4 of Symfony is no longer supported. I've dropped support for the older version of Symfony in d618f45.

@DevinCodes
Copy link
Contributor Author

This issue mentions a fix: requiring the laminas/laminas-zendframework-bridge dependency. Added that in 3ab55be

@DevinCodes
Copy link
Contributor Author

@matthewbond should be good now 😄

Copy link

@matthewbond matthewbond left a comment

Choose a reason for hiding this comment

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

LGTM

@DevinCodes DevinCodes merged commit 5978ded into master Sep 16, 2021
@DevinCodes DevinCodes deleted the fix/wait-task-atomic-reindex branch September 16, 2021 14:12
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