Skip to content

Conversation

matmair
Copy link
Contributor

@matmair matmair commented Jul 21, 2025

Follow up to #10051 - moves file name rending to the default rendering engine instead of jinja2
This might be breaking in some cases

@matmair matmair added this to the 1.0.0 milestone Jul 21, 2025
@matmair matmair self-assigned this Jul 21, 2025
@matmair matmair requested a review from SchrodingersGat as a code owner July 21, 2025 17:14
Copy link

netlify bot commented Jul 21, 2025

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 9e848ca
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/68b960ae8f295700086bc606

@matmair
Copy link
Contributor Author

matmair commented Jul 21, 2025

@inventree/triage I can not remember why we used Jinja2 instead of the normal templating engine - this removes our direct dependency on jinja2. This be breaking in some edge cases

@SchrodingersGat
Copy link
Member

I have a vague recollection that it was due to how we provide context for simple string rendering (e.g. for batch codes, order reference strings, filenames for generated reports). It looks like that is where the PR is failing currently.

If we can work around this and get those string rendering functions working, I'm happy to remove the dep and make this change

@matmair matmair modified the milestones: 1.0.0, 0.17.15, 1.1.0 Jul 27, 2025
@matmair
Copy link
Contributor Author

matmair commented Jul 27, 2025

I will have to take a deeper look, puhsing this back

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

Successfully merging this pull request may close these issues.

2 participants