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

Improved documentation, test mode #6

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

colmben
Copy link
Contributor

@colmben colmben commented Aug 8, 2023

A general tidy :

  • Improved documentation
  • No longer requires chained_adapter to be set in initial config
  • New test_mode option to sent to TestAdapter with associated config returned to test
  • Incorporates the bamboo 2.0 PR

adkron and others added 3 commits April 11, 2023 14:36
Bamboo changed the API signature for bamboo 2.0.0 for adapters.

deliver/2 must now return an :ok or :error tuple. Since we are
delegating to the next adapter and only updating the config, we can
leave that change to the downstream adapter.

The other change is that the adapter must implement
supports_attachments?/0. Since we delegate, we don't know if we support
attachments. Since the function must be there and we have no access to
the data to say if attachments are supported, I've decided always to
return true.

Closes BinaryNoggin#4
@colmben
Copy link
Contributor Author

colmben commented Aug 8, 2023

@adkron I've tested this in a pretty large production environment and it works with latest Bamboo and allows complete setup of the chained adapter at runtime. It would be great if you could take this and do a fresh release.

@adkron adkron merged commit ec79c3a into BinaryNoggin:master Aug 8, 2023
@adkron
Copy link
Member

adkron commented Aug 8, 2023

Thanks, @colmben. This is good work. I'm going to release it momentarily.
🤖 💙

adkron added a commit that referenced this pull request Aug 8, 2023
* Adds support for Bamboo 2.0.0

Bamboo changed the API signature for bamboo 2.0.0 for adapters.

deliver/2 must now return an :ok or :error tuple. Since we are
delegating to the next adapter and only updating the config, we can
leave that change to the downstream adapter.

The other change is that the adapter must implement
supports_attachments?/0. Since we delegate, we don't know if we support
attachments. Since the function must be there and we have no access to
the data to say if attachments are supported, I've decided always to
return true.

Closes #4

* initial work

* more doco and test_mode

---------

Co-authored-by: Amos L King <amos@binarynoggin.com>
adkron added a commit that referenced this pull request Aug 8, 2023
* Adds support for Bamboo 2.0.0

Bamboo changed the API signature for bamboo 2.0.0 for adapters.

deliver/2 must now return an :ok or :error tuple. Since we are
delegating to the next adapter and only updating the config, we can
leave that change to the downstream adapter.

The other change is that the adapter must implement
supports_attachments?/0. Since we delegate, we don't know if we support
attachments. Since the function must be there and we have no access to
the data to say if attachments are supported, I've decided always to
return true.

Closes #4

* initial work

* more doco and test_mode

* Fixed failing tests - Amos
---------

Co-authored-by: Amos L King <amos@binarynoggin.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