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

Multiple notify module improvements #1048

Merged
merged 3 commits into from
Jun 14, 2021
Merged

Conversation

paskal
Copy link
Sponsor Collaborator

@paskal paskal commented Jun 13, 2021

A couple of changes to telegram notifications and error handling code, email text improvements, ignore IntelliJ Idea rest requests variables file.

Reply notification text, now more consistent with the email notification, and the same which will be used for user notifications. Before:
image
After:
image

Part of #1029 is not strictly tied to the telegram user notifications, and I wanted to merge separately.

@paskal paskal force-pushed the paskal/notify_improvements branch from 557332c to 23a101d Compare June 13, 2021 23:51
@codecov
Copy link

codecov bot commented Jun 13, 2021

Codecov Report

Merging #1048 (23a101d) into master (dfcf728) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1048   +/-   ##
=======================================
  Coverage   44.18%   44.18%           
=======================================
  Files         126      126           
  Lines        2904     2904           
  Branches      653      653           
=======================================
  Hits         1283     1283           
  Misses       1609     1609           
  Partials       12       12           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfcf728...23a101d. Read the comment docs.

Copy link
Owner

@umputun umputun left a comment

Choose a reason for hiding this comment

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

not sure about such a rich escaping

b, err := json.Marshal(body)
if err != nil {
return nil, err
}
return b, nil
}

func escapeTitle(title string) string {
escSymbols := []string{"[", "]", "(", ")"}
func escapeText(title string) string {
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure about this one. The original ticket for all this escaping indicated no improvement for the initial problem #839

unless you see something really helpful due to this, I suggest dropping it completely

Copy link
Sponsor Collaborator Author

Choose a reason for hiding this comment

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

I saw messages not sending without escaping, status code 400. We can't drop it according to my tests with the verify messages.

@umputun umputun merged commit 1847184 into master Jun 14, 2021
@umputun umputun deleted the paskal/notify_improvements branch June 14, 2021 00:07
@paskal paskal added this to the v1.9 milestone Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants