cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Website Delta Generation - only modified objects

ColruytTeam
Honored Contributor

Hi Community,

We generate website frequenlty. We actually have few libraries, for each we generate a website separately (in separate folders) 

Everytime we generate the website, We are generating all the files related to that library.

 

Somewhere in community I read about, generating website only for modified objects. Can anybody give me example (or instructions to acheive this) of generating delta website.

 

 

Thanks in advance.

Colruyt Team
5 Replies

Hi Jerome,

I want to try with some thing else for delta generation.

 

We have descriptors and corresponding queries in website template. While generating website (before actual generation starts), I want to get all these queries (that are under descriptors) , and add a where condition to it dynmically  (this date I'll give as input to the generation script) with some string replace fucniton. like replacing @mydate with yetrdays date in query.

 

For example if we have below query in descriptor:

Select [Business Process] where [Modified Date] >= @mydate

I'll replace @mydate string with yesterday's date

 

The code will be as follows

QueryCollection = WebsiteTemplateObject.getCollection("Query Objects")

For query in QueryCollection

    querycode = query.getProp("queryCode")

    newQueryCode = StringReplace( MyDate, "@limitdate", queryCode )

    query.setProp("queryCode", newQueryCode)

Next

Then I start the websote generation. After the script execution I dont commit the transaction, which will revert back my query modifications. Once the generation is done, I'll copy/replace the delta generated files in to previous generation folder.

 

Also, I have an idea (dont know it is possible or not) to put dynamic date in to @mydate variable thru some erql query.

If it is possible, can you please guide how it can be done.

 

Thanks and regards,

Venkatesh.

Colruyt Team

ColruytTeam
Honored Contributor

Hi Jerome,

Thanks for your clear explanation.

 

I'll analyse more on this and will get back to you for suggestions.

 

Thanks and regards,

Venkatesh. 

Colruyt Team

Hello Venkatesh

 

This a project.

 

If you want to use repository log to identify recently updated objects, you need to:

  • Analyse the log of the period and identify the objects that have been recently updated and that are part of the web site scope
  • Compute the scope of a new web site
  • Run the new web site
  • Get object pages (html files) of objects that have been recently updated 
  • Patch an existing web site (containing object pages of objects that did not change and index pages for all objects) with new object pages

It is likely that projects have used easier solutions.

I let the MEGA community users share their experiences.

 

Jerome

ColruytTeam
Honored Contributor

Hello Jerome,

in some post, You've written that, taking repository log and getting all the objects that are recently modified and generating website only for those object is possible.

 

I need some more instruction to achieve that. Can you guide me ?

 

Thanks and regards,

Venkatesh

 

Colruyt Team

jhorber
MEGA
MEGA

Hello Colruyt Team

 

This is not a standard feature with the default static web site template 'Enterprise Portal'

 

The scope of documented objects select all objects for certain MetaClass

Ex:

select all applications

select all organizational process...

 

It does not consider recent changes

Ex:

objets updated in the last 2 weeks or after January 1rst 2016

 

 

 

Jerome