* Add OT API key variable to settings
* fix type hint
* Update settings.py
Co-authored-by: James C Scott III <jcscottiii@users.noreply.github.com>
* fix quotes
* Move api key function to secrets file
* Add key generation command and doc explanation
* remove OT_API_KEY from settings
* update global var
* Save API key in var to remove need to re-obtain
* logging change
---------
Co-authored-by: James C Scott III <jcscottiii@users.noreply.github.com>
Remove the enterprise feature choice when creating a new feature.
Make enterprise feature creation accessible via url only.
Ensure only the enterprise fields are shown on the feature, edit and edit all pages for enterprise features.
* Write and delete data for dev environments
* Add 2nd feature entry
* write old Feature entities as well
* More thorough commenting
* Make sure endpoints can only be used locally
* update return statements
* devtrial_instructions is a link
* changes suggested by @jrobbins
* comment change
* Remove all references to django
Replace any functionality with flask
* more cleanup
* fix template test after removing empty comment
* remove unused test_app
* Remove inline_file. Use external links for js/css
Refer to #2326 fo reasoning
Changes in this commit:
- Remove inline_file function
- For js: use script src=""
- Due to this change, there were some minor tweaks:
- change from VIEWS to global window.VIEWS in feature-page.js and features.html. This is so the external loaded feature-page.js can access the data loaded via templates. Before it was all inlined.
- For css: use link rel="stylesheet" href=""
- Add helper function "get_static_path" to get the path to the static folder
Part 1 of 2 to fix#2326
* Create helper function to avoid using global window
Create loadFeatureLegendViews to avoid having to change window.VIEWS
* Add version query parameter
* remove redundant get_static_path
* revert this change.
will fix this in the bigger testing PR when I will move the get_template_path function to the testing config.
It is not needed for the actual app. only needed for the unit tests
* Replace django templates for email with jinja2 templates
This commit converts the email templates from django templates to jinja2
templates.
It also creates a new helper function: flask_compat_get_template_path
This function uses the existing configuration for django templates and
uses it to return a string used to locate the templates for jinja2.
Fixes#2030
* Add rendered test templates for email notifications
* ignore testdata folder for gcloud
* Define and use chromedash-textarea. Use sl-input.
* Fix problems. Use setCustomValidity() as intended.
* Add tests of valid and invalid input.
* Add missing newline and remove extra space.
* wrote code
* Simplify and add tests
* Revert unneeded file
* Revert unneeded file
* Addressed review comments
* Made code more robust during unit testing
* Mock the needed response code
* Fix detection of DEV_MODE when running on local server.
* removed debugging import
* Avoid undefined GAE_ENV when running unit tests
* Check both py2 and py3 indications
* Upgrade from GAE taskqueue to Google Cloud Tasks.
* added unit tests
* Add link to Monorail file that I referenced.
* Add grpcio to travis build
* Try installing grpcio locally first
* Try installing grpcio via sudo
* Try a smaller set of deps for travis.
* Debug travis config
* Avoided missing imports while running unit tests on travis
* Removed travis debugging lines
* Implemented unlisted feature entries.
* added tests
* Reduce HTTP caching of JSON feeds.
* Use one space after period.
Co-authored-by: Jason Robbins <jrobbins@chromium.org>