Skip to content

Conversation

kitzberger
Copy link
Contributor

@kitzberger kitzberger commented Oct 4, 2016

Added a whitelist filter to mysqldump commands and therefore renamed "filter" to "blacklist".

It's possible to use both filters at the same time: any table not matching the whitelist is put onto the ignoredTables array, plus any table matching the blacklist.

Should any set mysql.filter argument trigger an exception? To inform the user to update their clisync.yml?

Any discussion / opinion / thought regarding this is highly appreciated!

src/config.ini Outdated
typo3[] = "/^tx_extensionmanager_.*/i"
all[] = "/^.*$/i"

typo3caching[] = "/^cachingframework_.*/i"
Copy link
Member

Choose a reason for hiding this comment

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

Why another name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My intension was to give this filter group a more meaningful name, because it's not "typo3" tables the user wants to exclude from transferring, it's only the "typo3 caching" tables. For other scenarios it might come in handy to just define "typo3news" tables or whatever.

Copy link
Member

Choose a reason for hiding this comment

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

But then doesn't all clisync.yml files in the project has to be changed? There is a filter setting which is currently set to typo3 instead of typo3caching

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well that's probably true. On the other hand there would be an error that "typo3" cannot be found and an update to the clisync.yml is necessary. Shall I change it back?

@kitzberger kitzberger changed the title Destinguish mysql.filter into white- and blacklist Distinguish mysql.filter into white- and blacklist Nov 1, 2016
@kitzberger
Copy link
Contributor Author

@mblaschke : I worked on this feature a little again, fixed some bugs, made it more stable and all. The old 'filter' is still working as a fallback for the new (imho more intuitively labeled) 'blacklist'. I'd appreciate if you'd take a look and test it. I think it'll be a great addition to the syncing/backuping commands.

@mblaschke
Copy link
Member

@kitzberger conflicts :)

…ist-blacklist

Conflicts:
	src/app/CliTools/Console/Command/Mysql/BackupCommand.php
	src/app/CliTools/Console/Command/Sync/AbstractCommand.php
@kitzberger
Copy link
Contributor Author

Can't see any ;-)

@mblaschke mblaschke merged commit 4bf5bb9 into webdevops:develop Feb 28, 2017
@kitzberger kitzberger deleted the mysqldump-whitelist-blacklist branch April 19, 2017 11:57
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