-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix payload to match Rocket Chat 7.4.1 API #9882
base: main
Are you sure you want to change the base?
Conversation
Thanks for your contribution! This is a duplicate of #9869 (and has the same problems I mentioned in #9869 (comment)). |
See also #9869 (comment). |
…cts with a Rocket Chat version < 7.4.0
This comment was marked as resolved.
This comment was marked as resolved.
Hi @broferek , I reckon one way to avoid the request duplication is to create a feature flag - a new parameter to the module, it could be a |
Also, please add a changelog fragment. |
This comment was marked as resolved.
This comment was marked as resolved.
Hi @russoz See my latest commits. I tried to follow your suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @broferek, thanks for the updates! Got a couple of adjustments and suggestions.
changelogs/fragments/9882-fix-payload-to-match-rocketchat-740-requirement.yml
Outdated
Show resolved
Hide resolved
…about future plans for the parameter is now set at the parameter doc level
Hi @russoz, I think I got everything right this time. Thanks to review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit in the doc block, other than that LGTM
@russoz Thanks for your feedback. The missing punctuation has been fixed. I guess we are good to merge now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not having managed to read through this earlier, I also have some docs suggestions :)
@@ -0,0 +1,2 @@ | |||
minor_changes: | |||
- rocketchat - parameter ``option_is_pre740`` has been added to control the format of the old payload (https://github.com/ansible-collections/community.general/pull/9882) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- rocketchat - parameter ``option_is_pre740`` has been added to control the format of the old payload (https://github.com/ansible-collections/community.general/pull/9882) | |
- rocketchat - option ``is_pre740`` has been added to control the format of the payload. For Rocket.Chat 7.4.0 or newer, it must be set to ``false`` (https://github.com/ansible-collections/community.general/pull/9882). |
description: | ||
- If V(true), the payload matches Rocket Chat prior to 7.4.0 format. | ||
- The default value of the parameter can be set to false in a few months' time. | ||
- This parameter will be removed in a future release when Rocket Chat 7.4.0 becomes the minimum supported version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the official spelling is Rocket.Chat with a period:
- This parameter will be removed in a future release when Rocket Chat 7.4.0 becomes the minimum supported version. | |
- This parameter will be removed in a future release when Rocket.Chat 7.4.0 becomes the minimum supported version. |
(Also it might be that this has been already working with Rocket.Chat for a long time, and it was just that they dropped support for the old way in 7.4.0 - maybe because they thought that nobody is using it anymore since forever.)
is_pre740: | ||
description: | ||
- If V(true), the payload matches Rocket Chat prior to 7.4.0 format. | ||
- The default value of the parameter can be set to false in a few months' time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The default value of the parameter can be set to false in a few months' time. | |
- The default value of the option will change to V(false) eventually. |
@@ -100,6 +100,14 @@ | |||
elements: dict | |||
description: | |||
- Define a list of attachments. | |||
is_pre740: | |||
description: | |||
- If V(true), the payload matches Rocket Chat prior to 7.4.0 format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If V(true), the payload matches Rocket Chat prior to 7.4.0 format. | |
- If V(true), the payload matches Rocket.Chat prior to 7.4.0 format. This format has been used by the module since its inception, but is no longer supported by Rocket.Chat 7.4.0. |
SUMMARY
This PR fixes the following error with Rocket Chat 7.4.1
ISSUE TYPE
COMPONENT NAME
Rocket Chat