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

fix: getScheduledNotifications() should take in DataSetNotificationTrigger #15752

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

vietnguyen
Copy link
Contributor

Issue

  • HibernateDataSetNotificationTemplateStore.getScheduledNotifications takes in parameter org.hisp.dhis.program.notification.NotificationTrigger which is incorrect and cause error
java.lang.IllegalArgumentException: Parameter value [SCHEDULED_DAYS_DUE_DATE] did not match expected type [org.hisp.dhis.dataset.notifications.DataSetNotificationTrigger (n/a)]

Fix

  • HibernateDataSetNotificationTemplateStore.getScheduledNotifications should take in org.hisp.dhis.dataset.notifications.DataSetNotificationTrigger
  • Added DataSetNotificationTemplateStoreTest

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #15752 (7662fb4) into master (7e3db7a) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #15752   +/-   ##
=========================================
  Coverage     66.29%   66.29%           
  Complexity    31373    31373           
=========================================
  Files          3482     3482           
  Lines        129965   129965           
  Branches      15200    15200           
=========================================
+ Hits          86160    86162    +2     
+ Misses        36713    36709    -4     
- Partials       7092     7094    +2     
Flag Coverage Δ
integration 50.07% <0.00%> (+<0.01%) ⬆️
integration-h2 32.33% <0.00%> (-0.01%) ⬇️
unit 30.26% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ons/DefaultDataSetNotificationTemplateService.java 77.77% <ø> (ø)
...ons/HibernateDataSetNotificationTemplateStore.java 100.00% <ø> (+36.36%) ⬆️
...tifications/DefaultDataSetNotificationService.java 36.41% <0.00%> (ø)

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@vietnguyen vietnguyen force-pushed the add-DataSetNotificationTemplateStoreTest branch from 4ae3486 to 7172e3b Compare November 22, 2023 12:03
@vietnguyen vietnguyen force-pushed the add-DataSetNotificationTemplateStoreTest branch from 7172e3b to 7662fb4 Compare November 22, 2023 13:03
Copy link

sonarcloud bot commented Nov 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@vietnguyen vietnguyen merged commit 02ff9b4 into master Nov 22, 2023
18 checks passed
@vietnguyen vietnguyen deleted the add-DataSetNotificationTemplateStoreTest branch November 22, 2023 14:16
vietnguyen added a commit that referenced this pull request Nov 23, 2023
…igger (#15760)

* fix: getScheduledNotifications() should take in DataSetNotificationTrigger (#15752)

* code styles

* code style
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.

3 participants