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

Implement the contao:crawl command #985

Merged
merged 21 commits into from
Dec 4, 2019
Merged

Implement the contao:crawl command #985

merged 21 commits into from
Dec 4, 2019

Conversation

Toflar
Copy link
Member

@Toflar Toflar commented Nov 15, 2019

This is a sub PR of #981 only containing the CLI variant. It will allow us to focus more on the technical implementation first before we have all UI/CSS changes.

@Toflar Toflar requested a review from leofeyer November 15, 2019 09:24
@Toflar
Copy link
Member Author

Toflar commented Nov 25, 2019

This needs another update for latest Escargot changes. Will work on them tomorrow.

@leofeyer leofeyer added this to the 4.9 milestone Dec 2, 2019
$this->indexer->delete($document);
}
} catch (IndexerException $e) {
// Noop
Copy link
Member

Choose a reason for hiding this comment

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

Do we not want this to be logged?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking about this too but I'm not sure. Right now we don't have any message either so I kept it like that for now.

@Toflar
Copy link
Member Author

Toflar commented Dec 4, 2019

All comments addressed, merged master into the PR. All green 🎉

@Toflar Toflar requested a review from leofeyer December 4, 2019 08:41
Copy link
Member

@leofeyer leofeyer left a comment

Choose a reason for hiding this comment

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

Besides the wrong class name, everything looks RTM to me.


use Terminal42\Escargot\Subscriber\SubscriberInterface;

interface EscargotSubscriber extends SubscriberInterface
Copy link
Member

Choose a reason for hiding this comment

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

I just noticed that this does not follow our naming conventions. It should be EscargotSubscriberInterface.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, indeed! Good catch! Fixed in e591905.

@leofeyer leofeyer merged commit 23630c1 into master Dec 4, 2019
@leofeyer
Copy link
Member

leofeyer commented Dec 4, 2019

Thank you @Toflar. This is huge! 💪

@leofeyer leofeyer deleted the feature/crawl-command branch December 4, 2019 10:08
@leofeyer leofeyer changed the title Implemented contao:crawl command Implement the contao:crawl command Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants