Skip to content

Switch Of Web Context#1539

Draft
ninopg wants to merge 3 commits intoepam:mainfrom
ninopg:2508-webcontext
Draft

Switch Of Web Context#1539
ninopg wants to merge 3 commits intoepam:mainfrom
ninopg:2508-webcontext

Conversation

@ninopg
Copy link
Copy Markdown
Contributor

@ninopg ninopg commented Aug 24, 2025

Signed-off-by: Alessandro Antonini alessandro.antonini.pg@gmail.com

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
Copy Markdown
Collaborator

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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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.

@mlytvyn
Copy link
Copy Markdown
Collaborator

mlytvyn commented Nov 9, 2025

@ninopg Hi! Feel free to reach out to me in the project’s Slack if there’s anything I can help with. Your contributions are highly valued and the Plugin would truly miss your input!

For example:
One more Groovy Remote Spring Context resolution mode in addition to the Local one introduced here -> #1645.
With these Web Contexts selections it will be even easier to inject pre-cached remote Spring Context.

@mlytvyn mlytvyn marked this pull request as draft March 4, 2026 11:36
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