Skip to content

Conversation

@npotier
Copy link
Member

@npotier npotier commented Dec 19, 2022

I'm creating this MR thanks to @alexsegura idea and contribution, in order to allow to prefix all collection names in typesense.

$output->writeln(sprintf('<info>Deleting</info> <comment>%s</comment>', $name));
$this->collectionManager->deleteCollection($name);
$output->writeln(sprintf('<info>Deleting</info> <comment>%s</comment> (<comment>%s</comment> in Typesense)', $name, $typesenseName));
$this->collectionManager->deleteCollextion($name);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use method name without typo?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, I will fix it 😄

typesense:
url: 'http://localhost:8108'
key: 'ACSEO'
collection_prefix: 'acseo_prefix_'
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this work with parameters / environment placeholders?

Like:

collection_prefix: "%app_name%_"
collection_prefix: "%env(APP_NAME)%_"

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it will !

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.

3 participants