Project

General

Profile

Actions

Task #1258

closed

Add to notification configuration disable option

Added by Patrik Stloukal over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Notification
Target version:
Start date:
09/18/2018
Due date:
% Done:

100%

Estimated time:
Owner:

Description

On FE add disable option in Notification Configuration, add disable checkbox,
on BE update IdmIdentity and Dto and upgrade NotificationManager to not send disabled notifications.

Actions #1

Updated by Patrik Stloukal over 6 years ago

  • Status changed from New to In Progress
  • BE update IdmNotification and Dto
Actions #2

Updated by Patrik Stloukal over 6 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Patrik Stloukal to Ondřej Kopr
  • % Done changed from 0 to 90

I implement this feature, it is now not sending notification for disabled notification configurations.

I did not know that notifications without notification configurations are still sent, so i had to modified my code.

Please look on my implementation and write feedback.

commits: https://github.com/bcvsolutions/CzechIdMng/commit/e4b5830a927e7cf71980abad36f8879a7012d0cd
https://github.com/bcvsolutions/CzechIdMng/commit/e9a42ae7585ba69eacd1fcffa7f64cdc18d34abe
https://github.com/bcvsolutions/CzechIdMng/commit/e3f3ad86c680698863aa8b29040fcf031c603c51

Actions #3

Updated by Ondřej Kopr about 6 years ago

  • Assignee changed from Ondřej Kopr to Radek Tomiška
Actions #4

Updated by Ondřej Kopr about 6 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Radek Tomiška to Patrik Stloukal
  • % Done changed from 90 to 80

This definitely not work :( you didn't implement flyway script for postgresql and flyway script for sql server contains error. Please fix it first.

Actions #5

Updated by Patrik Stloukal about 6 years ago

  • Assignee changed from Patrik Stloukal to Ondřej Kopr
  • % Done changed from 80 to 90

oh, sorry my bad, that script was ment for postgres... i somehow misplaced this..
So i fixed this and created flyway script for sql server.

Could you check this again please?

commit: https://github.com/bcvsolutions/CzechIdMng/commit/fde9d6999ec7c2d8fdac25c130be03575a81da6f

Actions #6

Updated by Ondřej Kopr about 6 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Radek Tomiška

Please Radek could you make a review? Thank you.

Actions #7

Updated by Ondřej Kopr about 6 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Radek Tomiška to Patrik Stloukal
  • % Done changed from 90 to 80
Actions #8

Updated by Radek Tomiška about 6 years ago

  • Status changed from In Progress to Needs feedback
  • % Done changed from 80 to 90

I had to rewrite it from scratch. Checking of disabled notification configuration was on wrong place => sender shouldn't check or resolve configuration again (=> issues with cyclic dependency). Configuration is resolved before and is used for sending notification as input.

Other issues fixed:
- ERD - added new column
- change script - fixed default value for new not null column
- Disableable interface added to configuration entity and dto
- localization for disabled field fixed - used common label and help added

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/eb4561fd3f463fa89830f1dffad34ef4430fa81a

Could you please do a feedback again and add documentation?

Actions #9

Updated by Patrik Stloukal about 6 years ago

  • Status changed from Needs feedback to Closed
  • Assignee changed from Patrik Stloukal to Radek Tomiška
  • % Done changed from 90 to 100

I checked your implementation and it works, Thank you.
I wrote documentation: https://wiki.czechidm.com/devel/documentation/notifications/dev/notification_manager#disable_sending_notifications
and admin: https://wiki.czechidm.com/tutorial/adm/notifications_topics

Can be merged to develop.
And I am closing this ticket.

Actions

Also available in: Atom PDF