ootbee-support-tools icon indicating copy to clipboard operation
ootbee-support-tools copied to clipboard

jsconsole: dynamically load method signatures from all classes implementing BaseScopeable

Open hi-ko opened this issue 2 years ago • 1 comments

CHECKLIST

  • [x] There aren't existing pull requests attempting to address the issue mentioned here
  • [x] Submission developed in a feature branch--not master

currently jsconsole only supports pregenerated or manually created tern files to support autocomplete. I added @AFaust 's Webscript AlfrescoScriptAPITernGet.java from his fork to dynamically generate a tern document, so any custom Alfresco Addon would support autocomplete in jsconsole without providin handcrafted tern files

The original webscript has been extended to also handle array properties

RELATED INFORMATION

hi-ko avatar Mar 11 '24 12:03 hi-ko

We're currently testing this PR and will report back when it's working successfully

shazada avatar Jun 28 '24 12:06 shazada

We're currently testing this PR and will report back when it's working successfully

We have tested this PR and at this moment it's not working for us, maybe because it's not based on 1.2.2.0 but has some old code. It generates the json file perfectly but the autocomplete doesn't work, not with the json file nor with the standard autocomplete like search.. However the dynamical generation of the json is very interesting for our usecase.

ContezzaSup avatar Aug 07 '24 12:08 ContezzaSup

Since I could not update the source branch to rebase the code to the latest OOTBee Support Tools master, I created a new PR from a branch I pushed to my own GitHub fork. In this branch I also applied some minor cleanup + fixes, like removing the width constraint on the tern hints in the UI, and updated the project version to the 1.2.3.0-SNAPSHOT development version. I will create a couple of follow-up issue(s) that deal(s) with configuration for the dynamic tern generation, which includes moving some of the documentation texts from the static tern JSON files (kept for the time being, albeit without being used) into the properties file for the tern generation.

AFaust avatar Sep 12 '24 20:09 AFaust

The PR / changes have been tested to work with ACS 6.1 and 23.1 as well.

AFaust avatar Sep 12 '24 20:09 AFaust