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
LPS-133166 Order By Modification date for Docs and Media folders will display the Last Post Date #1893
Conversation
… display the Last Post Date
To conserve resources, the PR Tester does not automatically run for every pull. If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed. If your pull was never tested, comment "ci:test" to run the PR Tester for this pull. |
ci:test:sf |
ci:test:relevant |
✔️ ci:test:sf - 1 out of 1 jobs passed in 2 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPS-133166 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#245 Jenkins Report:jenkins-report.html Jenkins Suite:sf Pull Request:liferay-lima#1893 Testray Routine:EE Pull Request Testray Importer:publish-testray-report#723 |
Jenkins Build:test-portal-acceptance-pullrequest(master)#367 Jenkins Report:jenkins-report.html Jenkins Suite:relevant Pull Request:liferay-lima#1893 Testray Routine:EE Pull Request Testray Importer:publish-testray-report#749 |
Dear Team, I was wondering if you could find the time to review the pull request. Thank you and best regards, |
ci:test:relevant |
Jenkins Build:test-portal-acceptance-pullrequest(master)#8092 Jenkins Report:jenkins-report.html Jenkins Suite:relevant Pull Request:liferay-lima#1893 Testray Routine:EE Pull Request Testray Importer:publish-testray-report#685 |
@IstvanD I'll keep this on hold for a while. I would like to keep using lastPostDate, and change the sorting logic so that it uses lastPostDate for folders. If it is too tricky to fix that, I'll forward your PR. |
Hi @adolfopa I have tried to find a method for adding lastPostDate sorting option for folder's but I ran into the complex problems outlined above, so I couldn't make it. Therefore, please forward the PR. Thank you and best regards, |
Hi @adolfopa Will this pr be forwarded or should we indeed go with another solution? Best regards, |
I'll look into that tomorrow. I'll try to extend the RepositoryModelComparator API to cater for this case. |
It is not impossible to support this, but it is too messy, and involves creating new API in core. I think it is best to keep it simple and uniform, so I'll forward your pull (even if it changes behaviour slightly, it is more consistent). |
ci:forward |
CI is automatically triggering the following test suites:
The pull request will automatically be forwarded to the user
|
Skipping previously passed test suites: |
All required test suite(s) passed. |
Pull request has been successfully forwarded to brianchandotcom#102835 |
Dear Team,
Could you please review this pull request?
One of the customers finds it confusing that while the folders are sorted by modification date the Modified Date column in shows their Last Post Date.
To be clear, these two fields are updated at different events:
modifiedDate
is updated when the folder itself is modified eg. its title is changed or a description is addedlastPostDate
is updated when a file or subfolder is created in the folderThe customer would be fine with it when the
modifiedDate
would be shown instead oflastPostDate
. The changes in the pull achieve exactly that.But I'm not sure if we should alter the behavior this way. For example, other users would expect to still view the
lastPostDate
.Maybe we could add an option for sorting by
lastPostDate
? This would be tricky though as all of the sortings for files, folders and shortcuts are done by Repository Model Comparators (for example RepositoryModelModifiedDateComparator), and while all repository entries have amodifiedDate
field, only folders have alastPostDate
field. A Repository Model Comparators thus would not be able to compare base onlastPostDate
.Alternatively, should we suggest a workaround/customization for the customer?
Thank you and best regards,
István