Zum Hauptinhalt gehen

Diiference between preview and deployed code

Kommentare

5 Kommentare

  • Zendesk API User
    Author: hoebbel - 2/1/2023 9:23

    Hello Nina,

    my guess is that either the delivering web server is caching (and delivering the old version) or the deployment did not run due to an error.
    In any case, I can't see anything in the template code that could cause the preview to work but not the generation.

    Check the logfile of the schedule entry. If you can't find the root cause there, check the generated files directly in the file system.

    Best regards
    Holger

    0
  • Zendesk API User
    Author: ncbruckner - 2/1/2023 9:31

    We tried to find the cause of the error yesterday and added some additional code that always displayed. We could see that on the page after a deployment run, so we can rule out caching and deployment.

    I also checked the logs of the deployment job and while we do have 1 error and 5 warnings in the generating task, none of them have anything to do with the overview page I am trying to display here. Deployment job is completely green.

    Only thing we noticed is that on Dev we use releases, while on Q no releases are used. But we have no idea if that could have anything to do with anything.

    0
  • Zendesk API User
    Author: hoebbel - 2/1/2023 9:46

    getChildren fetches the children from the current node. In the preview this is the current state, in generation usualy the release state.
    Now it becomes interesting what "The q system does not work with releases" means exactly. Is the release usage disabled in the project, or is the current state generated?

    If release usage is disabled (which is not recommended) it means that nothing is released. Then it could be a problem if somewhere explicitly the share state is fetched (because it still exists and it has the content that was there when the option to share was changed).
    Is there a place outside the code that calls getChildren and possibly sets "boolean release" to true?
    If the generation uses the release state, does it work if the option is disabled?

    0
  • Zendesk API User
    Author: ncbruckner - 2/1/2023 10:03

    Release usage is disabled, because the content of the project is updated regularly by job per feature transport from the corresponding dev project.

    Screenshot of project settings 

    Deployment job does not use release state.

    Screenshot of generation task 

    But we tried changing the settings to use release, it updated, seemed to release all elements. We changed the deployment job and deployed after that, with and without extra text, and while deploying it still showed nothing.

    Just checked, I could not find any code that sets boolean released to true.

     

    0
  • Zendesk API User
    Author: ncbruckner - 2/3/2023 8:55

    I got it working. I changed all pageRefFolder.startNode to pageRefFolder.findStartNode. With that, all items are displayed correctly.

    I don't really know why getStartNode wasn't working because all startpages are directly in the folder. There are no subfolders or anything. Looks like a strange bug to me.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.