-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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 for incorrect attaching of raw data files to email schedules chart report #8339
Conversation
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.
First pass comments: please fix indentation error and run black
for uniform code formatting.
superset/tasks/schedules.py
Outdated
data = {__("%(name)s.csv", name=slc.slice_name): response.content} | ||
csv_content = "" | ||
for r in content: | ||
csv_content += str(r, 'utf-8') |
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.
Indentation here needs to be four spaces, not two.
You still need to run black on the modified files. Furthermore, the tests are failing because the CSV request mock in the test case conforms to the |
README.md
Outdated
@@ -214,3 +214,4 @@ the world know they are using Superset. Join our growing community! | |||
1. [Zalando](https://www.zalando.com) | |||
1. [Zalora](https://www.zalora.com) | |||
1. [TME QQMUSIC/WESING](https://www.tencentmusic.com/) | |||
1. [Facemetrics](https://facemetrics.io/) |
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.
nit: abc order please!
@ngritsuk can I help you finalize this PR somehow? This is a regression that I would be very happy to see getting merged soon. |
@villebro Probably I'll have time to deal with tests at the end of this week. I'll be happy if you help me with them. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
CATEGORY
Choose one
SUMMARY
Schedule Email Reports fails in a case of attached data files. Present fix resolve this regression from the removal of the dependency
request
TEST PLAN
ADDITIONAL INFORMATION
REVIEWERS
@villebro