-
Notifications
You must be signed in to change notification settings - Fork 300
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
Fix PyPI package source for v1.1.0
#1088
Conversation
- with `select_autoescape(enabled_extensions=('html',))`
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
- explicitly control inclusion and exclusion of files and folders in the package source. - update setup.py
Signed-off-by: Author Name <[email protected]>
v1.1.0
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1088 +/- ##
==========================================
+ Coverage 86.67% 86.93% +0.25%
==========================================
Files 269 275 +6
Lines 25074 25448 +374
Branches 2826 2862 +36
==========================================
+ Hits 21734 22123 +389
+ Misses 2871 2847 -24
- Partials 469 478 +9 ☔ View full report in Codecov by Sentry. |
@sugatoray It seems like the dataframe doesn't be rendered correctly if using autoescaping, check the example below import pandas as pd
from flytekit import task, workflow
@task
def t1() -> pd.DataFrame:
return pd.DataFrame({"Name": ["Tom", "Joseph"], "Age": [20, 22]})
@workflow
def wf() -> pd.DataFrame:
return t1()
wf() |
hey @sugatoray - would you mind taking a look at the issue kevin pointed out here please? There's no unit test to capture this yet unf. he was testing on a demo cluster i think. |
Interesting! Let me look into it. |
@sugatoray You're able to reproduce it locally as well. check this example |
Some NotesThe following is taken from Flask. It provides more clarity on what I would like to try them in the following order:
source: https://flask.palletsprojects.com/en/2.1.x/templating/#controlling-autoescaping Other Notes |
did this work? tests are passing but lint is now complaining. would it be possible to codify the original issue pingsutw raised into a unit test btw? |
@sugatoray were you able to test this? does the |
@sugatoray mind giving me write access to your fork so i can clean up the lint error? |
@wild-endeavor Sorry about the long silence. I have not had a chance to test if the same rendering error is still happening. Please let me know what I need to do to give you access to clean up the linting errors. |
Signed-off-by: Kevin Su <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested it, and render stuff looks good to me. Thank you @sugatoray
Congrats on merging your first pull request! 🎉 |
Signed-off-by: Author Name <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]>
Signed-off-by: Author Name <[email protected]> Signed-off-by: Kevin Su <[email protected]> Co-authored-by: Kevin Su <[email protected]>
Use jinja2 autoescaping for security purposes
add
select_autoescape(enabled_extensions=('html',))
to line-114.flytekit/flytekit/deck/deck.py
Lines 112 to 115 in a968a5a
Fix non-inclusion of
flytekit/deck/html/template.html
inv1.1.0
: AddMANIFEST.in
to fix this bug.The
setup.py
file tries to packagetemplate.html
from the root of the repository. But, it has been moved toflytekit/deck/html/template.html
.flytekit/setup.py
Line 25 in a968a5a
There is no
template.html
at the root of the package.The PyPI package (
v1.1.0
) does not have anytemplate.html
.v1.1.0
) also does not include anytemplate.html
insideflytekit/deck/html
directory.Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/flyteorg/flyte/issues/