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

Resolve intermittent user mention failure #228

Merged

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Apr 11, 2022

Overview

Resolve intermittent user mention submission failure by swapping out the botapi implementation of user mention support for the new adaptivecard package. This new package generates payloads with user mentions that fully comply with published Microsoft Teams requirements.

Temporary restrictions applied in the last release between user mentions and the URL "buttons", title flags have been removed.

This app now exclusively uses the adaptivecard package. Unfortunately, the Adaptive Card format does not (at the time of this writing) support message color theming (border trim color). This flag now is a NOOP; while using this flag does not produce an error, it no longer does anything.

Changes

  • replace botapi and messagecard packages with adaptivecard package
  • exclusively use adaptivecard package to generate Microsoft Teams messages
  • add missing checks for use of --silent flag before emitting warning/error output
  • resolve intermittent user mention submission failure
  • the --target-url flag no longer enforces a set limit of 4 URL "buttons"
  • documentation
    • the current Microsoft Teams message size limit of approximately 28 KB is explicitly noted
    • references to the --color flag have been removed (aside from the explicit NOOP behavior in the config flag table)
    • mention that the generated JSON payload is now emitted in
      verbose ouput (exposed via the --verbose flag)

References

@atc0005 atc0005 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request command-line delivery labels Apr 11, 2022
@atc0005 atc0005 added this to the v0.9.0 milestone Apr 11, 2022
@atc0005 atc0005 self-assigned this Apr 11, 2022
OVERVIEW

Resolve intermittent user mention submission failure by swapping out
the `botapi` implementation of user mention support for the new
`adaptivecard` package. This new package generates payloads with user
mentions that fully comply with published Microsoft Teams requirements.

Temporary restrictions applied in the last release between user
mentions and the URL "buttons", title flags have been removed.

This app now exclusively uses the `adaptivecard` package.
Unfortunately, the `Adaptive Card` format does not (at the time of
this writing) support message color theming (border trim color). This
flag now is a NOOP; while using this flag does not produce an error,
it no longer does anything.

CHANGES

- replace `botapi` and `messagecard` packages with `adaptivecard`
  package
- exclusively use `adaptivecard` package to generate Microsoft Teams
  messages
- add missing checks for use of `--silent` flag before emitting
  warning/error output
- resolve intermittent user mention submission failure
- the `--target-url` flag no longer enforces a set limit of 4 URL
  "buttons"
- documentation
    - the current Microsoft Teams message size limit of
      *approximately* 28 KB is explicitly noted
    - references to the `--color` flag have been removed (aside
      from the explicit NOOP behavior in the config flag table)
    - mention that the generated JSON payload is now emitted in
      verbose ouput (exposed via the `--verbose` flag)

REFERENCES

- refs GH-225
- refs atc0005/go-teams-notify#162
@atc0005 atc0005 force-pushed the i225-resolve-intermittent-user-mention-submission-failure branch from ec30067 to fc8be76 Compare April 11, 2022 09:26
@atc0005 atc0005 merged commit e65117b into master Apr 11, 2022
@atc0005 atc0005 deleted the i225-resolve-intermittent-user-mention-submission-failure branch April 11, 2022 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command-line delivery documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant