Граф коммитов

47 Коммитов

Автор SHA1 Сообщение Дата
Daniel Smith bdf12e24d9
Add dev API to write and delete test data (#2475)
* 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
2022-11-16 22:48:38 -08:00
Daniel Smith 2602d06d81
Update and handle deprecated views fields (#2484)
* Update and handle deprecated views fields

* value reference consistency

* changes suggested by @jrobbins
2022-11-16 16:09:14 -08:00
Daniel Smith df1059f044
Remove standard maturity backfill script (#2477)
* Remove standard maturity backfill script

* remove from cron.yaml
2022-11-15 11:17:11 -08:00
Daniel Smith d331c4540e
Add new route dataclass (#2456)
* Add new route dataclass

* add blank line
2022-11-09 10:06:59 -08:00
Daniel Smith deed5e0d78
Add default value to updated field (#2453)
* Add default value to updated field

* change name

* commas

* explicit dates in testing
2022-11-08 13:09:54 -08:00
Daniel Smith 583cff4df5
Move schema migration cron jobs to different url (#2403)
* Move schema migration cron jobs to different url

* remove test line
2022-10-26 14:01:28 -07:00
Jason Robbins 8586ace822
Implement simple full-text search using NDB (#2392)
* Progress

* Code complete

* Started writing tests

* local mypy

* Finished tests for now and fixed some defects
2022-10-26 12:09:01 -07:00
Daniel Smith 6bcc97ea9d
Migrate votes and set Gate state separately (#2374)
This change is to handle the timeout issues for the schema migration script.

It includes:
- Separating Vote migration into a separate script.
- Evaluating Gate state in a separate script.
- Removing convoluted entity count tracking from main script.
2022-10-24 16:54:05 -07:00
Jason Robbins e87c77ce8f
Show a message to anyone that visits /samples. (#2382)
* Show a message to anyone that visits /samples.

* fix test
2022-10-24 11:40:33 -07:00
Daniel Smith 49fb21595d
Run mypy in Github continuous integration checks (#2324)
* run mypy in CI

* more type hint fixing

* Update requirements.txt

* google.cloud import workaround

https://github.com/python/mypy/issues/10360

* Revert "google.cloud import workaround"

This reverts commit e03dbc7bbeb67acc81f57b9c5d905b9141952dbc.

* mypy google.cloud workaround

https://github.com/python/mypy/issues/12985

* fix regular tests

* remove --install-types flag

* last mypy fix

* type fixes for address_reasons

* move email lists creation

* update for newly merged changes

* Fix regular tests

* Changes suggested by @jrobbins

* Catch invalid requests

* small type hint

* Change methods to properly override

* revert to previous implementation

* revert test

* add back original validate request type method

* remove unused import and rearrange methods

* remove comment string casting; add test back

* add ndb ignore

* Update test_html_rendering.html

* mypy fix

* remove merge addition
2022-10-24 06:40:21 -07:00
Daniel Smith 7dc0dc12a0
Move most entities to single migration script (#2325)
* Move most entities to single migration

* comma typo

* Move additional entity writes into special handler
2022-10-13 09:09:53 +02:00
Daniel Smith c422b05881
Migrate Approval entities to Vote entities (#2279)
* migrate approvals to votes

* cron boilerplate

* refactor using generic function
2022-10-03 10:54:32 -07:00
Daniel Smith 2eab43d7af
Migrate Feature entities to FeatureEntry entities (#2275)
* migrate Feature entities to FeatureEntry entities

* fix test

* Handle cc_recipients and comments fields

* Check for already migrated features efficiently

* typo

* remove square brackets from comprehension

* remove spaces

* comments on renaming

* refactor for generic function use
2022-10-03 10:10:15 -07:00
Jason Robbins 84cbd9016a
Refactored reminders and added prepublication notice. (#2262)
* Refactored reminders and added prepublication notice.

* Added links to references

* Improved tests

* Update internals/reminders.py

Co-authored-by: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com>

* Updated comment

Co-authored-by: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com>
2022-09-23 10:23:55 -07:00
Daniel Smith a49ef32b30
Handle inactive users (#2243)
* handle inactive users

Notify inactive users at 6 months and remove inactive users at 9 months

* Changes suggested by @jrobbins

* update comment
2022-09-15 13:43:22 -07:00
Daniel Smith 43cf1ef933
migrate Comment entities to Activity entities (#2244) 2022-09-15 12:55:48 -07:00
Kuan-Hsuan (Kevin) Shen a9844400b1
Launch the SPA (#2224)
* Launch the SPA

* Remove unused imports

* Address comments

* Avoid pushState when url has already matched
2022-09-13 14:54:32 -04:00
Kuan-Hsuan (Kevin) Shen 34f38346b2
Move display field defs to JS and remove fielddefs API (#2219)
* Migrate guide/stage page forms to JS

* Complete migration of forms to JS

* Move display field defs to JS and remove fielddefs API

* Fix line separation bug

* Filter out `['']` values due to the anticipated spec change field change

* Fix typo

* Change anticipated_spec_changes to regular textarea
2022-09-08 18:28:30 -04:00
Daniel Smith 5f584d30f3
Populate standard_maturity field with deprecated standardization field (#2195)
* create standard_maturity backfill cron

* new line

* Update cron.yaml
2022-09-05 09:08:07 -07:00
Kuan-Hsuan (Kevin) Shen 984455c18c
Populate blink components form field options via an API (#2187)
* Populate blink components form field options via an API

* remove console.log

* Add missing spaces
2022-08-31 13:42:50 -04:00
Jason Robbins 86561da513
Replace RSS with notice that it is not offered. (#2151) 2022-08-22 10:34:33 -07:00
Jason Robbins 547e77515a
Delete write_creator because it is done. (#2134) 2022-08-16 10:16:18 -07:00
Kuan-Hsuan (Kevin) Shen 1ae5da72d4
Convert guide/edit page into a component (#2118)
* Remove guide.scss and convert edit page subheader

* Add progress API and convert rest of edit page

* Refine loading skeletons and unit tests
2022-08-15 12:04:36 -04:00
Jason Robbins 03ed01a8f0
Replace more obsolete page handlers with ConstHandler. (#2114)
* Replace more obsolete page handlers with ConstHandler.

* Also replace the user settings page.
2022-08-14 08:05:17 -07:00
Jason Robbins 1c729b2208
Replace metrics timeline handlers with ConstHandler. (#2108) 2022-08-12 15:21:36 -07:00
Daniel Smith 6cdddfa2e9
Add form for feature owners to verify feature data accuracy (#2090)
* Add accuracy verification page

* remove cron check and fix tests

* More tests added

* change text to match design doc

* fix tests and naming

* refactoring for clarity
2022-08-09 12:56:09 -04:00
Daniel Smith 8625cf3c61
Send reminders to verify accuracy of data before important milestones (#2078)
* accuracy notifications cron job

* send emails in staging environment

* Update templates/accuracy_notice_email.html

Co-authored-by: Joe Medley <jmedley@google.com>

* changes suggested by @jrobbins

* remove unnecessary type conversion

* typo fix

Co-authored-by: Joe Medley <jmedley@google.com>
2022-08-08 11:33:18 -04:00
Kuan-Hsuan (Kevin) Shen 692a6cb3b6
Set up a partial SPA (#2059)
* Set up partial SPA at /spa route

* Remove console.log

* Fix header active page indicator for SPA

* Simplify SPA route rules

* remove header and banner slots in the app element

* Update variable name in _base.html

* Fix variable names and remove unnecessary block
2022-07-27 00:09:48 -04:00
Daniel Smith 8ee81f5d82
Create new creator field for features (#2034)
* add creator field

* cron job to add creator field

* changes suggested by @jrobbins

* add logging
2022-07-20 09:43:19 -07:00
Jason Robbins 93a746a208
Make roadmap page the site homepage. (#2025) 2022-07-15 09:57:51 -07:00
Daniel Smith 8e42e5ca0c
Create scheduled DataStore backups. (#2021)
* create cron job to back up data

* use settings.py for referencing bucket names
2022-07-14 17:04:45 -07:00
Kuan-Hsuan (Kevin) Shen 15a582228b
Add settings API and settings page component (#1993)
* Add settings API and settings page component

* Fix lint error
2022-07-05 17:38:02 -04:00
Kuan-Hsuan (Kevin) Shen 40f7323144
Add permissions API and move all feature content and js scripts into feature-page component (#1972)
* Add process and fieldDefs APIs and move components

* Add processes, cues, fielddefs tests

* Fix typos

* Add `permissions_api` and clean up `feature.html`

* Add permissions_api test and improve feature page test

* Change TODOs, rename test response variables
2022-06-25 10:54:02 -04:00
Kuan-Hsuan (Kevin) Shen ae669d7159
Add `do_get` for `processes_api`, `fielddefs_api`, and `cues_api` (#1970)
* Add process and fieldDefs APIs and move components

* Add processes, cues, fielddefs tests

* Fix typos

* change the process route and function names
2022-06-24 19:34:24 -04:00
Jason Robbins df4aec4cf2
Send and receive emails in py3 using GAE legacy libraries (#1923)
* Progress

* Send and receive emails in py3 using GAE legacy libraries.

* No need to run py2 unit tests when there are none

* Addressed review comments.
2022-06-10 14:56:40 -07:00
Jason Robbins 988c11948e
Set up the new feature list page initially as a feature table. (#1821) 2022-04-07 17:40:39 -07:00
Jason Robbins c5b4f276df
Remove obsolete pages: /schedule and /samples. (#1787) 2022-03-14 16:13:01 -07:00
Jason Robbins f29a2ff916
Avoid needing to run py2 on workstations. (#1734)
* Avoid needing to run py2 on workstations.

* Use gunicorn instead of dev_appserver

* Add comment to explain that dev-default.yaml is not currently used.

* Use venv pip to install py3 deps.

* Auto-activate and stop referencing lib/.

* Make gunicorn use libs in cs-env.
2022-02-15 13:31:27 -08:00
Jason Robbins e13a4cbea0
Addressed some code scanning warnings. (#1699)
* Addressed some code scanning warnings.

* Use urlparse as recommended by code scanner
2022-01-25 11:11:39 -08:00
Jason Robbins 6d86f9e31b
Implement a new approval config datastore entity type and API (#1625)
* progress

* Added tests and csClient call.

* Added date format ValueError exception handler
2021-12-01 13:40:00 -08:00
Jason Robbins 2d60a480e6
Add some APIs needed for approvals dialog. (#1585)
* Add some APIs needed for approvals dialog.

* Addressed review comments

* clarified comment
2021-10-19 16:56:37 -07:00
Jason Robbins b59e9308c0
Enable Cloud Debugger in py3. (#1576)
* Enable Cloud Debugger in py3.

* Update main.py

Co-authored-by: Kyle Ju <kyleju@google.com>

Co-authored-by: Kyle Ju <kyleju@google.com>
2021-10-07 12:48:30 -07:00
Kyle Ju 9353bc4356
Set up GCL for python3 (#1573)
* Set up gcl

* move gcl to py3 only

* Update main.py
2021-10-05 15:15:47 -07:00
Jason Robbins a450fd02a0
Get inbound email and route it to py3 code for processing (#1561)
* 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
2021-09-28 14:57:37 -07:00
Jason Robbins e77396a8cc
Make app deployable with py3. (#1559)
* Make app deployable with py3.

* Handle empty API posts
2021-09-24 15:19:17 -07:00
Jason Robbins 527c49abed
Move routing configuration to main.py. (#1552)
* Move routing configuration to main.py.

* inline_file works so we dont need this directive

* rebased

* Removed __future__s
2021-09-23 13:01:43 -07:00
Jason Robbins ecd96ba8dd
Split app into py2 and py3 services. (#1460)
* Split app into py2 and py3 services.

* fix typo

* Also deploy app-py3 and upgrade skipfiles to .gcloudignore.

* fix typo

* addressed review comments
2021-08-17 15:35:08 -07:00