Skip to content

Fix Flask Jinja dependency #891

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

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

korlaxxalrok
Copy link
Contributor

@korlaxxalrok korlaxxalrok commented Apr 7, 2022

Prerequisites:

  • Unless it is a documentation hotfix it should be merged against the dev branch
  • Branch is up-to-date with the branch to be merged with, i.e. dev
  • Build is successful
  • Code is cleaned up and formatted

Summary

Jinja is a dependency of Flask. In Jinga 3.1.0, escape is deprecated and should be imported from MarkupSafe. We can pin jinja<3.1.0 to work around this for now.

Probably the better fix will be to update Flask, but since we are already pinning it to an older version it seems likely that we can't do this easily.

@krivard
Copy link
Contributor

krivard commented Apr 7, 2022

This is the v4 equivalent of #877 ?

@korlaxxalrok
Copy link
Contributor Author

Oh, yep, looks like it 👍 Maybe we could merge dev here? Last time I tried that there were conflicts that seemed like they were going to be hard/blocking.

@krivard
Copy link
Contributor

krivard commented Apr 7, 2022

There are major conflicts, largely due to the "delete from CSV" work we needed for Quidel. This PR will add another, but it's minor, so I'm not opposed

Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

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

👍

@korlaxxalrok
Copy link
Contributor Author

Ok, good deal. It is a necessity for now as the test env is failing to start because of the jinja deprecation 💥

@korlaxxalrok korlaxxalrok merged commit b72e2ad into joe/v4-schema-revisions Apr 7, 2022
@korlaxxalrok korlaxxalrok deleted the fix-flask-jinja-dependency branch April 7, 2022 21:46
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