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

Make src & dst database params optionals #90

Merged
merged 4 commits into from
May 25, 2023
Merged

Conversation

Iain-S
Copy link
Collaborator

@Iain-S Iain-S commented May 22, 2023

The user who runs the make- commands and the user who runs the create- commands may be different people. Therefore, it makes sense to make the db connection parameters optional.

There may be a neater way to do this (e.g. it might be better to validate on first use rather than in the make_xyz functions in main.py) but I think the current method still works.

Would it be best to also explicitly check for the dst db params in the create_ funcs in main.py? At the moment, we don't.

Iain-S added 3 commits May 22, 2023 14:22
We want to be able to run SSG without a src db connection
in case the developer and end user are different people.
@Iain-S Iain-S requested a review from cptanalatriste May 22, 2023 17:21
Copy link
Collaborator

@cptanalatriste cptanalatriste left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Iain-S Iain-S merged commit 4ec2edb into main May 25, 2023
@Iain-S Iain-S deleted the rm-src-generator-param branch May 25, 2023 08:24
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.

2 participants