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

GST with StaticPublication #31

Open
GerardoRodriguezVisus opened this issue Jul 22, 2014 · 7 comments
Open

GST with StaticPublication #31

GerardoRodriguezVisus opened this issue Jul 22, 2014 · 7 comments

Comments

@GerardoRodriguezVisus
Copy link

Hello,
We are using GST 11.6.1 with WCSites 11.1.1.8 patch4
We are rendering the pages collecting the attributes and everything works fine.
We have the problem in the Static Publication.
We have a starting point to list all the pages we want to publish and we have in the starting point template an unkown dependency with pages in order to detect a new page and republish the starting point and the page.
It worked perfectly before we introduce GST. Now, with GST, we see in the static publication queue all the pages all the time... so we generate the whole site each publication, instead of just the pages with changes (or nothing if there are no changes).

We cannot find the reason and we guess that maybe GST has some incompatibility with Static Publication.

Do you know if we can use GST and Static Publication?

Thank you for any help or advice.

Gerardo

@tfield
Copy link
Collaborator

tfield commented Jul 22, 2014

If you are using the GSF Navigation JSP tags, that might explain it. Those
tags will automatically log a dependency for all pages placed in the site
plan. If you change a page asset that's shown in the navigation, then any
page showing the navigation would have to be re-published. Could that be
the case?

If it is, you could try to use your own NavigationService that doesn't
record these dependencies.

Regards,

[image: Function1] http://www.function1.com/Tony Field | Vice President
Function1, Inc.
main: 416.619.5418 http://www.function1.com/
New York | Washington | Toronto

[image: Call Me] [image: VCard]
http://www.function1.com/emailsignature/vcard.php?phone=416.619.5418&fname=Tony&lname=Field&title=Vice%20President&email=
[image: LinkedIn] http://www.linkedin.com/in/tonyfield [image: Blog]
http://function1.com/blog/ [image: Facebook]
http://www.facebook.com/function1corp [image: Twitter]
http://twitter.com/function1corp/

On Tue, Jul 22, 2014 at 4:36 AM, GerardoRodriguezVisus <
notifications@github.com> wrote:

Hello,
We are using GST 11.6.1 with WCSites 11.1.1.8 patch4
We are rendering the pages collecting the attributes and everything works
fine.
We have the problem in the Static Publication.
We have a starting point to list all the pages we want to publish and we
have in the starting point template an unkown dependency with pages in
order to detect a new page and republish the starting point and the page.
It worked perfectly before we introduce GST. Now, with GST, we see in the
static publication queue all the pages all the time... so we generate the
whole site each publication, instead of just the pages with changes (or
nothing if there are no changes).

We cannot find the reason and we guess that maybe GST has some
incompatibility with Static Publication.

Do you know if we can use GST and Static Publication?

Thank you for any help or advice.

Gerardo

Reply to this email directly or view it on GitHub
#31.

@GerardoRodriguezVisus
Copy link
Author

Hello again,
Thank you for the quick answer.
We do not have any navigation tag by the moment.
We think we are introducing the dependency in the controller with the following code:


Condition c = null;
ConditionFactory cf = new ConditionFactory();
Query query = null;
LanguageMappingView result = new LanguageMappingView();

ses = SessionFactory.getSession(ics);
mgr = (AssetDataManager) ses.getManager(AssetDataManager.class.getName());

c = cf.createCondition(attName, OpTypeEnum.EQUALS, value);
query = new SimpleQuery("LanguageMapping", null, c, Arrays.asList("languages", "tarscode", "lgaccor", "lgiso2"));
for (AssetData data : mgr.read(squery)) {
//Code

}

I think it is not a problem with GSF but, do you think it is possible that we are introducing an unknown dependency with this code? Do you know how to solve it?

Thanks a lot for any help.
Gerardo

@tfield
Copy link
Collaborator

tfield commented Jul 22, 2014

There is a query property that you can set that sets the resultant list as
a fixed list. But doing so will prevent a change in what would be returned
by the query from triggering a re-generation of the page. Be sure that is
what you want before adding it. The property is documented.

Regards,
Tony

[image: Function1] http://www.function1.com/Tony Field | Vice President
Function1, Inc.
main: 416.619.5418 http://www.function1.com/
New York | Washington | Toronto

[image: Call Me] [image: VCard]
http://www.function1.com/emailsignature/vcard.php?phone=416.619.5418&fname=Tony&lname=Field&title=Vice%20President&email=
[image: LinkedIn] http://www.linkedin.com/in/tonyfield [image: Blog]
http://function1.com/blog/ [image: Facebook]
http://www.facebook.com/function1corp [image: Twitter]
http://twitter.com/function1corp/

On Tue, Jul 22, 2014 at 11:18 AM, GerardoRodriguezVisus <
notifications@github.com> wrote:

Hello again,
Thank you for the quick answer.
We do not have any navigation tag by the moment.
We think we are introducing the dependency in the controller with the

following code:

Condition c = null;
ConditionFactory cf = new ConditionFactory();
Query query = null;
LanguageMappingView result = new LanguageMappingView();

ses = SessionFactory.getSession(ics);
mgr = (AssetDataManager) ses.getManager(AssetDataManager.class.getName());

c = cf.createCondition(attName, OpTypeEnum.EQUALS, value);
query = new SimpleQuery("LanguageMapping", null, c,
Arrays.asList("languages", "tarscode", "lgaccor", "lgiso2"));
for (AssetData data : mgr.read(squery)) {
//Code
}

I think it is not a problem with GSF but, do you think it is possible that
we are introducing an unknown dependency with this code? Do you know how to
solve it?

Thanks a lot for any help.
Gerardo

Reply to this email directly or view it on GitHub
#31 (comment)
.

@GerardoRodriguezVisus
Copy link
Author

Hello,
Thanks for your advice.
I have tried with qp.setFixedList(true); and I still have the same issue, the pages are still in the Export to disk queue.
Any other idea would be appreciate.
Thanks,
Gerardo

@tfield
Copy link
Collaborator

tfield commented Jul 23, 2014

Hmm, this is an interesting one. Static publishing is deprecated now so
there's not a lot of interest in it at this stage, but we do have
experience in working with it. This is a tricky one though.

Try creating a page that doesn't use GSF - it could just be some sort of
plain text page, but place it under your starting point and run a few
tests. Try to see if it ends up being published every time or not. That
will help us pinpoint the root cause.

Once we know this we can start looking at the dependencies that are causing
this.

Regards,

[image: Function1] http://www.function1.com/Tony Field | Vice President
Function1, Inc.
main: 416.619.5418 http://www.function1.com/
New York | Washington | Toronto

[image: Call Me] [image: VCard]
http://www.function1.com/emailsignature/vcard.php?phone=416.619.5418&fname=Tony&lname=Field&title=Vice%20President&email=
[image: LinkedIn] http://www.linkedin.com/in/tonyfield [image: Blog]
http://function1.com/blog/ [image: Facebook]
http://www.facebook.com/function1corp [image: Twitter]
http://twitter.com/function1corp/

On Wed, Jul 23, 2014 at 5:12 AM, GerardoRodriguezVisus <
notifications@github.com> wrote:

Hello,
Thanks for your advice.
I have tried with qp.setFixedList(true); and I still have the same issue,
the pages are still in the Export to disk queue.
Any other idea would be appreciate.
Thanks,
Gerardo

Reply to this email directly or view it on GitHub
#31 (comment)
.

@GerardoRodriguezVisus
Copy link
Author

Hello,
Thanks a lot for your help and advice.
If I use GST and I retrieve only attributes from the page and I do not use any query like:

query = new SimpleQuery("LanguageMapping", null, c, Arrays.asList("languages", "tarscode", "lgaccor", "lgiso2"));
for (AssetData data : mgr.read(squery)) {
}

It works perfectly.
I can execute the query with

AssetSearcherImpl asr = new AssetSearcherImpl(ics);
AssetSearchResult assetSearchResult = asr.search(query);

And it works for basic assets, but I have the following error when I execute with flex assets.

[2014-07-24 09:55:10,699 BST] [ERROR] [TP-Processor3] [gst.controller.facade.AssetDataManagerFacade] com.fatwire.assetapi.common.AssetAccessException: com.fatwire.assetapi.common.AssetAccessException: Searching on flex attribute is not currently supported on flex asset types

Any idea of how to execute a query over flex assets without mgr.read(squery) ?

Thanks a lot for your support,
Gerardo

@GerardoRodriguezVisus
Copy link
Author

Hello,
We have this in the static publication document:
"When the dependencies are unknown, the system cannot determine whether changed dependents would require the asset to be published. Therefore, the presence of this tag means that the asset must be published during every publishing session."
So we have decide to include fixed list to avoid the unknown dependencies and edit and save the page (manual from now and automatic in the future) to regenerate the HTML when a contributor modified the list.
Thank you very much for your help and support.
Gerardo

amai pushed a commit that referenced this issue Jul 21, 2016
…th-modules

Replace reports in uber site with modules
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

No branches or pull requests

2 participants