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

Added suppress_message() to OBOMessageService #172

Merged
merged 3 commits into from
Apr 20, 2021

Conversation

reedvfeldman
Copy link
Contributor

Ticket

PLAT-10696

Description

Added suppress_message() method to OBOMessageService

Dependencies

List the other pull requests that should be merged before/along this one.

Checklist

  • Referenced a ticket in the PR title and in the corresponding section
  • Filled properly the description and dependencies, if any
  • Unit tests updated or added
  • Docstrings added or updated
  • Updated the documentation in docs folder

@reedvfeldman reedvfeldman requested a review from a team April 13, 2021 15:54
@@ -78,7 +98,7 @@ def __init__(self, messages_api: MultiAttachmentsMessagesApi,
attachment_api: AttachmentsApi,
default_api: DefaultApi,
auth_session: AuthSession):
super().__init__(messages_api, auth_session)
super().__init__(messages_api, auth_session, message_suppression_api)
self._message_api = message_api
self._message_suppression_api = message_suppression_api
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this line as it is only used in super class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry Elias, can you specify what you want removed? I thought the message_suppression_api needs to be a part of the parent class constructor since the suppress_message endpoint is OBO enabled. Can you clarify? Thanks

Copy link
Contributor

@symphony-elias symphony-elias left a comment

Choose a reason for hiding this comment

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

LGTM

@reedvfeldman reedvfeldman merged commit 47e6c5e into finos:2.0 Apr 20, 2021
symphony-elias added a commit that referenced this pull request Apr 22, 2021
* PLAT-10652: regenerated all models to enable autocomplete (#162)

* PLAT-10652: regenerated all model and api files to enable autocomplete

* Created a script for api generation and documented it

* Updated ApiClient to ignore unknown fields when deserializing json

* PLAT-10555: Deserializing models in tests (#168)

Update the tests to use the generated models instead of creating objects from a JSON file.

* PLAT-10652: replaced wget with curl when downloading swagger specs in generate_client_api.sh (#169)

* PLAT-10278: OBO certificate authentication (#173)

* PLAT-10278: Implemented OBO cert authentication

* Updated authentication documentation for OBO cert authentication

* PLAT-10758: Remove the @pytest.mark.skip and tests fixes (#171)

- modified the generation script to use the pod-api-public
- Update generated models
- Remove skip test annotations
- Remove unused test return payloads
- Fixed presence service / tests

* PLAT-10564: Implemented UserJoinedRoom Acitivity (#167)

* Implemented UserJoinedRoom Acitivity

* updated path to config.yaml

* user_joined_room.py added and registry updated

* added user joined room activity tests

Co-authored-by: Reed Feldman <rfeldman@bates.edu>

* PLAT-10536: Extension App certificate authentication (#174)

* PLAT-10536: Ext App Cert authentication

* Updated documentation

* Removed sphinx warnings + references in activity api doc

* Updated poetry deps

* PLAT-10706: Implemented @slash for slash commands (#175)

* Added suppress_message() to OBOMessageService (#172)

* Added suppress_message() to OBOMessageService

* moved example of message_suppress() to examples/messages.py

* removed message_suppression_api attribute from child class MessageService

Co-authored-by: Reed Feldman <rfeldman@bates.edu>

* PLAT-10645: Aligned and rearranged examples (#176)

* Rearranged examples and made them use logging.conf

* Kept most relevant methods in examples

* Updated markdown documentation

* Added requirements on minimum python version in docs

* PLAT-10276: Bot certificate authentication (#177)

* Fixed logging.config imports in examples (#178)

* Bumped version to 2.0b2

Co-authored-by: symphony-youness <76746033+symphony-youness@users.noreply.github.com>
Co-authored-by: Reed Feldman <reed.feldman@gmail.com>
Co-authored-by: Reed Feldman <rfeldman@bates.edu>
symphony-youness added a commit to symphony-youness/symphony-api-client-python that referenced this pull request Jun 4, 2021
* PLAT-10652: regenerated all models to enable autocomplete (finos#162)

* PLAT-10652: regenerated all model and api files to enable autocomplete

* Created a script for api generation and documented it

* Updated ApiClient to ignore unknown fields when deserializing json

* PLAT-10555: Deserializing models in tests (finos#168)

Update the tests to use the generated models instead of creating objects from a JSON file.

* PLAT-10652: replaced wget with curl when downloading swagger specs in generate_client_api.sh (finos#169)

* PLAT-10278: OBO certificate authentication (finos#173)

* PLAT-10278: Implemented OBO cert authentication

* Updated authentication documentation for OBO cert authentication

* PLAT-10758: Remove the @pytest.mark.skip and tests fixes (finos#171)

- modified the generation script to use the pod-api-public
- Update generated models
- Remove skip test annotations
- Remove unused test return payloads
- Fixed presence service / tests

* PLAT-10564: Implemented UserJoinedRoom Acitivity (finos#167)

* Implemented UserJoinedRoom Acitivity

* updated path to config.yaml

* user_joined_room.py added and registry updated

* added user joined room activity tests

Co-authored-by: Reed Feldman <rfeldman@bates.edu>

* PLAT-10536: Extension App certificate authentication (finos#174)

* PLAT-10536: Ext App Cert authentication

* Updated documentation

* Removed sphinx warnings + references in activity api doc

* Updated poetry deps

* PLAT-10706: Implemented @slash for slash commands (finos#175)

* Added suppress_message() to OBOMessageService (finos#172)

* Added suppress_message() to OBOMessageService

* moved example of message_suppress() to examples/messages.py

* removed message_suppression_api attribute from child class MessageService

Co-authored-by: Reed Feldman <rfeldman@bates.edu>

* PLAT-10645: Aligned and rearranged examples (finos#176)

* Rearranged examples and made them use logging.conf

* Kept most relevant methods in examples

* Updated markdown documentation

* Added requirements on minimum python version in docs

* PLAT-10276: Bot certificate authentication (finos#177)

* Fixed logging.config imports in examples (finos#178)

* Bumped version to 2.0b2

Co-authored-by: symphony-youness <76746033+symphony-youness@users.noreply.github.com>
Co-authored-by: Reed Feldman <reed.feldman@gmail.com>
Co-authored-by: Reed Feldman <rfeldman@bates.edu>
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