Skip to content

Adds ability to divert all to private or thread#1528

Merged
sijis merged 9 commits intoerrbotio:masterfrom
sijis:iamkirkbater-master-divert-private
Oct 6, 2021
Merged

Adds ability to divert all to private or thread#1528
sijis merged 9 commits intoerrbotio:masterfrom
sijis:iamkirkbater-master-divert-private

Conversation

@sijis
Copy link
Copy Markdown
Contributor

@sijis sijis commented Aug 10, 2021

This adds a ALL_COMMANDS option that you can add to either the
DIVERT_TO_THREAD or DIVERT_TO_PRIVATE configuration options instead of
adding each command individually.

To Do:

  • Manually test that this is correct
  • Write Automated Tests? (doesn't look like the test for core.py has much there to begin with
  • Documentation updates to reflect changes.

Rebased original ticket #1371, to sync up recent changes.

iamkirkbater and others added 9 commits October 6, 2021 02:06
This adds a `__magic_all__` option that you can add to either the
DIVERT_TO_THREAD or DIVERT_TO_PRIVATE configuration options instead of
adding each command individually.
Two underscores looked great and more like the python way to do things
until I saw that some fonts were putting the two underscores into a
single underscore, and that would be confusing to end-users if the docs
said the same thing.  By using a single underscore and using the `'str'
in str` method both double-underscore and single-underscore values will
be acceptable.
@sijis sijis force-pushed the iamkirkbater-master-divert-private branch from c355647 to aa0f53d Compare October 6, 2021 07:06
@sijis sijis merged commit a88daa1 into errbotio:master Oct 6, 2021
@sijis sijis deleted the iamkirkbater-master-divert-private branch October 6, 2021 07:14
sijis added a commit that referenced this pull request Jun 11, 2022
* Adds ability to divert all to private or thread

This adds a `__magic_all__` option that you can add to either the
DIVERT_TO_THREAD or DIVERT_TO_PRIVATE configuration options instead of
adding each command individually.

* Only use one underscore

Two underscores looked great and more like the python way to do things
until I saw that some fonts were putting the two underscores into a
single underscore, and that would be confusing to end-users if the docs
said the same thing.  By using a single underscore and using the `'str'
in str` method both double-underscore and single-underscore values will
be acceptable.

* Lint fix

* style: lint

* fix: rename magic string to ALL_COMMANDS

* docs: add magic string to config-template

* docs: Add info to CHANGES

* fix: comment typo

* test: add initial basic check

Co-authored-by: Kirk Bater <kirk.bater@gmail.com>
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