KInspector icon indicating copy to clipboard operation
KInspector copied to clipboard

"Important scheduled tasks" does not check correct keys for Kentico 9.0

Open rshackleton opened this issue 8 years ago • 2 comments

The "Delete inactive contacts" SQL query checks for these keys:

  • CMSEnableOnlineMarketing
  • CMSDeleteInactiveContacts

However, Kentico 9 uses these keys for inactive contacts:

  • CMSDeleteInactiveContactsLastXDays
  • CMSDeleteInactiveContactsMethod

The SQL query needs to be updated to check for these keys to prevent returning an incorrect warning.

Tested with Kentico 9.0.35.

rshackleton avatar Jan 13 '17 10:01 rshackleton

@rshackleton, thanks for reporting this. I have confirmed the issue. Unfortunately, the way this module is currently written makes it hard to resolve without duplicating the large SQL file or deprecating the module for older versions of Kentico.

I think the best way to resolve this would be to dramatically update the way this particular module checks and reports on the scheduled tasks. Do you have any thoughts or suggestions on how we might approach this? Are you willing to take ownership of this issue? I'm happy to brainstorm ideas to rebuild this module in a way that is more flexible. I'm currently thinking separate, parameterized SQL statements for each task that we need to check, but I'm open to other ideas.

ChristopherJennings avatar Jan 13 '17 13:01 ChristopherJennings

Sounds like a good first issue for my foray into open source contribution. I guess we should brainstorm something @ChristopherJennings Possible alternatives:

  • https://docs.microsoft.com/en-us/azure/architecture/patterns/cqrs
  • http://www.primaryobjects.com/2007/11/16/implementing-a-database-factory-pattern-in-c-asp-net/

amarquez914 avatar Apr 29 '19 19:04 amarquez914

As we are now mainly supporting K13, this is not applicable

kentico-ericd avatar Jun 11 '24 13:06 kentico-ericd