Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes scripts not updating on change in development mode #245

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MSattrtand
Copy link
Collaborator

Resolves #227

@MSattrtand MSattrtand changed the base branch from main to 231-improve-query-parse-error-logging July 21, 2024 21:00
@MSattrtand MSattrtand changed the base branch from 231-improve-query-parse-error-logging to main July 21, 2024 21:01
@MSattrtand MSattrtand force-pushed the 227-fixes-scripts-not-updating-on-change branch from de19731 to 5c827bd Compare July 21, 2024 21:47
@blcham blcham force-pushed the 227-fixes-scripts-not-updating-on-change branch from 79cc0dd to bb83ef1 Compare January 8, 2025 12:50
Copy link
Contributor

@blcham blcham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comment on how it solves the issue

@@ -88,7 +88,7 @@ public Module loadModule(final String moduleId,

// TODO check moduleTypeUri

return PipelineFactory.loadPipeline(scriptsRepository.getResource(resourceUri, resourceContextUri));
return PipelineFactory.loadModule(scriptsRepository.getResource(resourceUri, resourceContextUri));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure that this is ok, i will check

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadPipeline() loads the script from the saved pipeline, not from the file we've changed, if I remember correctly. So, it will use the old version of the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scripts in ApplyConstruct module not automatically updated on change of query
2 participants