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

Multiple areas of ligare-scaffold do not render Database-module relevant templates depending on CLI argument order #152

Open
aholmes opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aholmes
Copy link
Member

aholmes commented Nov 6, 2024

The issue #149 describes a failure of the scaffolder Test module to render Database-module relevant information depending on the order in which modules are specified at the command line. It turns out the Test module is not the only affected code. Because PR #151 exists, and I don't want to inflate the scope of the fix, this issue tracks the same problem for other locations in code.

src/web/Ligare/web/scaffolding/templates/base/docs/CONFIGURATION.md.j2
9:{% if module.database %}

src/web/Ligare/web/scaffolding/templates/base/{{application.module_name}}/__init__.py.j2
6:{% if module.database %}
37:    {% if module.database %}

src/web/Ligare/web/scaffolding/templates/basic/{{application.module_name}}/config.toml.j2
3:connection_string = '{{module.database.connection_string}}'

src/web/Ligare/web/scaffolding/templates/optional/{{application.module_name}}/endpoints/{{operation.module_name}}.py.j2
5:{% if module.database %}
10:{% if module.database %}
23:{% if module.database %}
32:{% if module.database %}

src/web/Ligare/web/scaffolding/templates/optional/{{application.module_name}}/modules/test/templates/test_{{meta.operation.module_name}}.py.j2
9:{% if module.database %}
27:{% if module.database %}

src/web/Ligare/web/scaffolding/templates/openapi/{{application.module_name}}/openapi.yaml.j2
25:      {% if module.database %}
39:    {% if module.database %}

src/web/Ligare/web/scaffolding/templates/openapi/{{application.module_name}}/config.toml.j2
3:connection_string = '{{module.database.connection_string}}'
@aholmes aholmes added the bug Something isn't working label Nov 6, 2024
@aholmes aholmes changed the title Multiple areas of ligare-scaffold do not render Dtabase-module relevant template depending on CLI argument order Multiple areas of ligare-scaffold do not render Database-module relevant template depending on CLI argument order Nov 6, 2024
@aholmes aholmes changed the title Multiple areas of ligare-scaffold do not render Database-module relevant template depending on CLI argument order Multiple areas of ligare-scaffold do not render Database-module relevant templates depending on CLI argument order Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant