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

Refactor: Convert TODO Comments Into Issues #1262

Conversation

haricnugraha
Copy link
Contributor

@haricnugraha haricnugraha commented Mar 26, 2024

Monika Pull Request (PR)

What feature/issue does this PR add

  • Convert a TODO comment into an issue Remove ping from the HTTP probe type #1260.
  • Make the hardcoded notification sender changeable through a parameter.
  • Separate sending error notification for the TLS checker function due to poor abstraction.
  • Remove irrelevant TODO comments.

It will resolve #1010.

How to test

Run the following configuration. You should receive a TLS error notification (Please set your own notification):

probes:
  - id: example
    requests:
      - url: 'https://example.com'
certificate:
  domains:
    - example.com
    - expired.badssl.com
  reminder: 30

Before

Screenshot 2024-03-26 at 12 02 17 PM

After (unchanged)

Screenshot 2024-03-26 at 12 03 12 PM

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 42.30769% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 62.60%. Comparing base (3d2380c) to head (e7d8dfb).

Files Patch % Lines
src/jobs/tls-check.ts 37.50% 10 Missing ⚠️
packages/notification/utils/default-sender.ts 60.00% 2 Missing ⚠️
packages/notification/channel/mailgun.ts 50.00% 1 Missing ⚠️
packages/notification/channel/smtp.ts 50.00% 1 Missing ⚠️
src/utils/open-website.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1262      +/-   ##
==========================================
+ Coverage   62.37%   62.60%   +0.23%     
==========================================
  Files         111      112       +1     
  Lines        3378     3391      +13     
  Branches      590      589       -1     
==========================================
+ Hits         2107     2123      +16     
+ Misses       1080     1072       -8     
- Partials      191      196       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@haricnugraha haricnugraha marked this pull request as ready for review March 27, 2024 03:35
Copy link
Contributor

@sapiderman sapiderman left a comment

Choose a reason for hiding this comment

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

🏆 🏅 🐐

Copy link
Contributor

@dennypradipta dennypradipta left a comment

Choose a reason for hiding this comment

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

So far so good.

@sapiderman sapiderman merged commit 4e5e2b2 into hyperjumptech:main Mar 28, 2024
7 checks passed
@haricnugraha haricnugraha deleted the refactor/1010-convert-todo-into-issue branch March 28, 2024 06:06
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.

Convert TODO comment into issue
3 participants