Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Switching to environments does not replace variables values #12

Closed
pgi-jsanchez opened this issue Dec 18, 2018 · 4 comments
Closed

Switching to environments does not replace variables values #12

pgi-jsanchez opened this issue Dec 18, 2018 · 4 comments

Comments

@pgi-jsanchez
Copy link

Greetings Matt.

According to tests with Pentaho 8.1 using spoon and after configured two environments, if both has the same variable but not the same value, the value it is not replaced at switching from one environment from another. Might be a bug, but will be really useful for future projects that requires several environments.

@mattcasters
Copy link
Owner

Is this in a transformation or a job? The thing is, Environment will only change system variables, not the ones from loaded transformations and jobs.
I'm preparing to release #10 which closes all transformations/jobs of an Environment and opens the last session of another. You're not supposed to use the same transformation file in different environments.

@pgi-jsanchez
Copy link
Author

I test it with a transformation, even with a new transformation and didn't changed the variables after changed the environment, but it's a use case, that the same transformation or job works for different environments, with some changes in the values, not only for testing, also for different customers that uses similar or the same datasets and the same pipeline works for them.
Even if it's only with the system variables, worked just fine if I restart Pentaho and run the same transformation but switched the environment before open and execute the transformation.

@mattcasters
Copy link
Owner

I ran my own tests and you're right, I was wrong. I think Spoon is also keeping some variables around. I'll look around.

mattcasters added a commit that referenced this issue Dec 19, 2018
@mattcasters
Copy link
Owner

Should be fixed now, give it a try. Thanks for the feedback!

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

No branches or pull requests

2 participants