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

$host.childrenFolders not getting inode, instead getting identifier #29492

Closed
nathan-hildebrandt opened this issue Aug 7, 2024 · 3 comments
Closed

Comments

@nathan-hildebrandt
Copy link

Parent Issue

No response

Problem Statement

Customer has the following set #foreach($folder in $host.childrenFolders) and then in their $dotcontent.pull they have +conFolder:${folder.inode}... the folder.inode is returning the idenfitier in the folders table of the db instead of the inode which is causing it to not correctly pull any folder where the inode does not match the identifier. They use this to track the number of launched sites as well as details about the sites, and post upgrade this number has gone from about 690 to 35.

Steps to Reproduce

The following code in the Velocity tool will show that identifier and inode are the same instead of being different in the database.

#foreach($folder in $host.childrenFolders) Title : $folder.title Identifier: $folder.identifier iNode : $folder.inode ------------------ #end

Acceptance Criteria

Ensure that when going through $host.childrenFolders it's setting .inode to inode and .identifier to identifier

dotCMS Version

23.10

Proposed Objective

User Experience

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.zendesk.com/agent/tickets/117242

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

@jdotcms
Copy link
Contributor

jdotcms commented Sep 20, 2024

Folders are not versionables, this means the folder inode is the same of a folder identifier since folder do not have inodes/versions
Closing the issue

@jdotcms jdotcms closed this as completed Sep 20, 2024
@jdotcms
Copy link
Contributor

jdotcms commented Sep 20, 2024

One extra note: alternative could do a content search where the "+parentPath:/ +host:{hostId}"

@jcastro-dotcms jcastro-dotcms removed their assignment Sep 24, 2024
@josemejias11
Copy link
Contributor

josemejias11 commented Oct 9, 2024

QA Comment

Alternative

$dotcontent.pull("+parentPath:/ +host:{hostId}", 0, 0)

Current

#foreach($folder in $host.childrenFolders)
    #set($inode = $folder.inode)
    #set($identifier = $folder.identifier)

    Title     : $folder.title
    Identifier: $identifier
    iNode     : $inode
    ------------------
#end

Screenshot 2024-10-09 at 2 00 51 PM

@erickgonzalez erickgonzalez added LTS : Next Ticket that will be added to LTS and removed LTS : Next Ticket that will be added to LTS labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

6 participants