RESOLVED FIXED 197700
[ews-app] Production and Development env should configure DEBUG appropriately
https://bugs.webkit.org/show_bug.cgi?id=197700
Summary [ews-app] Production and Development env should configure DEBUG appropriately
Aakash Jain
Reported 2019-05-08 11:56:08 PDT
[ews-app] Production and Development env should configure DEBUG appropriately in the Django app.
Attachments
Patch (1.77 KB, patch)
2019-05-08 11:59 PDT, Aakash Jain
no flags
Archive of layout-test-results from ews214 for win-future (13.62 MB, application/zip)
2019-05-08 21:35 PDT, EWS Watchlist
no flags
Radar WebKit Bug Importer
Comment 1 2019-05-08 11:58:46 PDT
Aakash Jain
Comment 2 2019-05-08 11:59:33 PDT
Jonathan Bedard
Comment 3 2019-05-08 14:40:33 PDT
Comment on attachment 369402 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=369402&action=review > Tools/BuildSlaveSupport/ews-app/ews-app/settings.py:36 > +is_test_mode_enabled = os.getenv('EWS_PRODUCTION') is None I usually prefer something like: not int(os.getenv('EWS_PRODUCTION', 0)) What will the value of EWS_PRODUCTION be? I suppose this is being moved so it doesn't have to change, though. > Tools/BuildSlaveSupport/ews-app/ews-app/settings.py:50 > + # SECURITY WARNING: don't run with debug turned on in production! Is it possible to log this somewhere? It doesn't seem useful as a nested comment.
Aakash Jain
Comment 4 2019-05-08 17:29:58 PDT
Comment on attachment 369402 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=369402&action=review >> Tools/BuildSlaveSupport/ews-app/ews-app/settings.py:36 >> +is_test_mode_enabled = os.getenv('EWS_PRODUCTION') is None > > I usually prefer something like: > > not int(os.getenv('EWS_PRODUCTION', 0)) > > What will the value of EWS_PRODUCTION be? I suppose this is being moved so it doesn't have to change, though. EWS_PRODUCTION=true This is similar to our all other buildbot instance. e.g.: See <rdar://problem/49263590>. >> Tools/BuildSlaveSupport/ews-app/ews-app/settings.py:50 >> + # SECURITY WARNING: don't run with debug turned on in production! > > Is it possible to log this somewhere? It doesn't seem useful as a nested comment. This comment (and file) was autogenerated by Django. I am just moving it around. This patch ensure that we don't turn on debug in production.
EWS Watchlist
Comment 5 2019-05-08 21:35:12 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 6 2019-05-08 21:35:14 PDT Comment hidden (obsolete)
WebKit Commit Bot
Comment 7 2019-05-09 09:09:40 PDT
Comment on attachment 369402 [details] Patch Clearing flags on attachment: 369402 Committed r245136: <https://trac.webkit.org/changeset/245136>
WebKit Commit Bot
Comment 8 2019-05-09 09:09:42 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.