Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Content Staging validation View modes: 
User avatar
Member
Member
JAA - 12/20/2013 6:29:06 AM
   
Content Staging validation
Hello,

I would like to programatically validate that content staging between two environments was successful. What Im looking for is some sort of "hash" (http://en.wikipedia.org/wiki/Hash_function) of an individual piece of CMS content (Document, Object, etc) which represents that content at a specific point in time.

What I would like to do (pseudo code):
# in env1
select distinct DocumentGUID,hash from dbo.CMS_Document where DocumentId in
(select TaskDocumentId from dbo.Staging_Task);

# perform content staging from env to env2 via CMS Desk

# in env2
foreach myDocumentGUID,myhash:
select hash from dbo.CMS_Document where DocumentGUID = myDocumentGUID
if hash != myhash
# myDocumentGUID did not sync correctly
fi

Im considering using DocumentModifiedWhen which will tell me that a change has been made, but it doesnt confirm that the change was correct.

Thanks

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/20/2013 9:20:03 AM
   
RE:Content Staging validation
Two questions:

1. Why do you want to recreate what Kentico already has in place?

2. Why don't you look at the code Kentico has for validation of a successful object sync? You can find some code in the /CMSModules/Staging/Tools/AllTasks/Tasks.aspx.cs file. The simple thing might be to check for an error log.

User avatar
Member
Member
JAA - 12/23/2013 6:35:30 AM
   
RE:Content Staging validation
FroggEye wrote: Two questions:

1. Why do you want to recreate what Kentico already has in place?
My team has had experiences where content staging tasks say they were successful, and then it is determined they were not

2. Why don't you look at the code Kentico has for validation of a successful object sync? You can find some code in the /CMSModules/Staging/Tools/AllTasks/Tasks.aspx.cs file. The simple thing might be to check for an error log.
I am looking at the API, but part of me wants to have this validation outside of Kentico.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/23/2013 8:06:42 AM
   
RE:Content Staging validation
Here's my $0.02, don't attempt to reinvent the wheel, let the people who created it fix it.

I do have some questions that might help me (and Support) better understand whats happening:

Do you have examples of items that were not successful and items that were?

How did you determine this they were or weren't successful?

Have you reported your concerns to Kentico Support? They will fix the issue if they can replicate the problem. They will even go as far as set up your current site and attempt to replicate the issue.