shuttle-hq / synth

The Declarative Data Generator
https://www.getsynth.com/
Apache License 2.0
1.37k stars 108 forks source link

Scenario parameter does not work as expected #409

Open pauldewaal-disy opened 1 year ago

pauldewaal-disy commented 1 year ago

Describe the bug In case I use cmd line parameter "scenario", I would expect that any other JSON file in my namespace, that is not included in the scenario-list, is ignored during generation.

To Reproduce Steps to reproduce the behavior:

  1. Schema (if applicable) I have generated a couple of collections in a new namespace, using the import integration with Postgres. The dimensional tables in my Postgres schema already contain valid data. For this particular use case, I want to generate data exclusively for my transactional tables, not the dimensional table. Therefore, I applied the scenario parameter during generation, and I included only the collections in my scenario-list that should be considered for generating data.
  2. See error According to the error, synth is still looking into some collections that I meant to exclude from data generation.

image

Expected behavior When I apply the scenario parameter at generation time, I would expect that any other JSON file in my namespace, that is not included in the scenario-list, is ignored during generation.

Screenshots Please see screenshot above

Environment (please complete the following information):

Additional context Add any other context about the problem here.