Hi there,
Debugging my custom code, which is integrated with acs-content-repository, I’ve noticed a few cases that cr_items.live_revision has a revision_id while cr_items.publish_status is whether empty, production or any other status but live.
Then I started to wonder what caused that mismatching, if I’ve reused CR’s API ad_procs into every chunk I’ve written to create, edit, publish, unpublish items and revisions (content objects). The custom code I’ve written is not even touching in the core’s data model.
Shouldn’t they be always matching ? (meaning if there’s a revision_id into cr.live_revision then there must be “live” into cr.publish_status).
Btw, I’m amazed with the levels of abstractions implemented by Don within acs-subsite.package-procs
Genius!
It’s just beautiful how Don has abstracted such code to generate plsql functions dynamically.
How package_exec_plsql
gets “pieces” together
(i.e. $pieces , $__object_name and$__package_name)
in order to mount “in this case”
content_revision__is_live
/api-doc/proc-view?proc=package_exec_plsql&source_p=1
/api-doc/plsql-subprogram-one?name=content_revision__is_live&type=FUNCTION
Best wishes,