Skip to content

Conversation

@ninopg
Copy link

@ninopg ninopg commented Aug 24, 2025

Signed-off-by: Alessandro Antonini [email protected]

Added support for script templates. This allows executing custom scripts in IntelliJ IDEA using a script template. The default script template enables switching the Spring web context for script execution and improves reporting of exceptions thrown during execution.

@ekalenchuk
Copy link

ekalenchuk commented Aug 26, 2025

Hi @ninopg , I and @mlytvyn discussed how we can improve UI/UX for your feature.
We suggest to introduce a new popup (config popup) same as we have it for FlexibleSearch files:
image

Flexible Search Example:
image

@ninopg
Copy link
Author

ninopg commented Aug 26, 2025

Hello @ekalenchuk, maybe I didn't understand the suggestion, but this is not the same scenario as flexible search.

The template is not meant to be filled by the user and there's already a combo to select the web context, the reason why we are exposing to the user is to allow the user to modify the template? In the settings there's the possibility to configure a custom template, it would be useful to have the possibility to change the default one, even if it would be only for advanced users. Also define a custom template would be for advanced usser.

image image

@mlytvyn
Copy link
Collaborator

mlytvyn commented Aug 26, 2025

@ninopg , @ekalenchuk was referencing to such called Execution Settings concept used for ImpEx & FlexibleSearch and suggested to move this "web context" selection under Groovy's Execution Settings, which, btw, I've just introduced in the following PR #1544. In addition to new Execution Settings, each Groovy will have own Exec Settings (commit mode, replicas, etc.) from now on.

As you mentioned, it is indeed, an advanced feature, so the new settings popup looks like a great candidate for it.

Later I'll try to move "Replica Selection" to the new Execution Settings pane and combine Transaction Mode with the Execute action by leveraging the "split-button".

p.s. "Script Template" sounds a bit abstract and may require some clarification, comments on what it is and how to use it, what are the benefits. Our goal is to seamlessly guide and teach developers both OOTB Hybris and the Plugin functionalities. (see example for ImpEx Execution Settings)

Screenshot 2025-08-26 at 23 37 57

@mlytvyn mlytvyn modified the milestones: 2025.2.3, 2025.2.4 Sep 24, 2025
@mlytvyn mlytvyn modified the milestones: 2025.2.4, 2025.2.4.2 Oct 5, 2025
@mlytvyn
Copy link
Collaborator

mlytvyn commented Oct 20, 2025

@ninopg , do you need any support on this PR, we can have a quick chat to review open questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

3 participants