pimcore / admin-ui-classic-bundle

Other
11 stars 99 forks source link

Add Operator to Read the Newest Version of an Object #746

Open cancan101 opened 1 week ago

cancan101 commented 1 week ago

Based on Alias Operator

Can be used to solve https://github.com/pimcore/pimcore/issues/5322

CC @fashxp

Guided by: https://github.com/orgs/pimcore/discussions/17056 We pass false, per https://github.com/pimcore/pimcore/pull/17059 as we already have object if published and can avoid a disk access.

Will be further improved with: https://github.com/pimcore/pimcore/issues/17728 and https://github.com/pimcore/pimcore/issues/17729 (and more so if Delegate is used)

The first row has a draft version:

image

Grid Options using the new operator:

image
robertSt7 commented 1 day ago

@cancan101 Could you please use const and let instead of var? Thanks

cancan101 commented 1 day ago

done

sonarcloud[bot] commented 1 day ago

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
33.9% Duplication on New Code

See analysis details on SonarQube Cloud