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

🐛 Fix writing of job logs in local development #767

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

znatty22
Copy link
Member

Closes #766

Django raises a SuspiciousFileOperation exception if the API tries to write into the BASE_DIR. We needed to move the local logs directory outside base application directory

@znatty22 znatty22 self-assigned this Sep 29, 2021
@znatty22 znatty22 added the bug Something isn't working label Sep 29, 2021
@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #767 (6ebd02c) into master (f61c0e8) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #767      +/-   ##
==========================================
+ Coverage   94.87%   95.01%   +0.13%     
==========================================
  Files         172      172              
  Lines        7478     7479       +1     
==========================================
+ Hits         7095     7106      +11     
+ Misses        383      373      -10     
Impacted Files Coverage Δ
creator/jobs/models.py 90.38% <100.00%> (+0.18%) ⬆️
creator/decorators.py 90.83% <0.00%> (+7.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f61c0e8...6ebd02c. Read the comment docs.

Django raises a SuspiciousFileOperation exception if the API tries to
write into the BASE_DIR. We needed to move the local logs directory
outside base application directory
@znatty22 znatty22 marked this pull request as ready for review September 29, 2021 18:20
Copy link
Contributor

@dankolbman dankolbman left a comment

Choose a reason for hiding this comment

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

🐉

Had this issue crop up somewhere else, I think it was because django suddenly didn't like how there were path names in some places.

@znatty22
Copy link
Member Author

@dankolbman

Had this issue crop up somewhere else, I think it was because django suddenly didn't like how there were path names in some places.

The path names definitely causes that suspicious exception but I stripped those out and it was still raising the exception. It was only after I removed the BASE_DIR that it worked.

@znatty22 znatty22 merged commit d078b8e into master Sep 30, 2021
@dankolbman dankolbman deleted the fix-local-job-logs branch September 30, 2021 02:48
znatty22 added a commit that referenced this pull request Sep 30, 2021
## Release 1.19.7

### Summary

- Emojis: 🐛 x2, ♻️ x1
- Categories: Fixes x2, Other Changes x1

### New features and changes

- [#768](#768) - 🐛 Fix API logging - [b07e9b9](b07e9b9) by [znatty22](https://github.com/znatty22)
- [#767](#767) - 🐛  Fix writing of job logs in local development - [d078b8e](d078b8e) by [znatty22](https://github.com/znatty22)
- [#763](#763) - ♻️ Omit Content-Length header in download validation report - [f61c0e8](f61c0e8) by [znatty22](https://github.com/znatty22)
@znatty22 znatty22 mentioned this pull request Sep 30, 2021
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

Successfully merging this pull request may close these issues.

Job logs are not written in local development
2 participants