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

61 Коммитов

Автор SHA1 Сообщение Дата
Jason Robbins fe3f910336
In py3 code, replace the separate mock lib with unittest.mock. (#1665) 2022-01-11 08:20:40 -08:00
Jason Robbins 9a20012660
Add navigational context for feature detail page back arrow. (#1640) 2021-12-08 07:57:37 -08:00
Jason Robbins a6704e72d7
Revert "Add a field for next_review_date. (#1617)" (#1621)
This reverts commit 946ecfbb2f.
2021-11-29 12:32:33 -08:00
Jason Robbins 946ecfbb2f
Add a field for next_review_date. (#1617)
* Add a field for next_review_date.

* Add check for next_review_date to unit test
2021-11-24 12:49:28 -08:00
Jason Robbins 16792ca436
Better intent parsing and add extend experiment link. (#1586)
* Better intent parsing and add extend experiment link.

* Update templates/blink/intent_to_implement.html

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

Co-authored-by: Kyle Ju <kyleju@google.com>
2021-10-19 16:02:46 -07:00
Jason Robbins c57f61680e
Remove Webview DT from the UI. (#1583) 2021-10-13 18:28:22 -07:00
Jason Robbins e9ae478b7d
Remove edge signals and add other signals. (#1581)
* Remove edge signals and add other signals.

* Revert unintented file change
2021-10-13 18:28:03 -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 548828aaa0
Some easy pylint fixes. (#1557) 2021-09-23 12:04:33 -07:00
Kyle Ju b6bb10195a
Run 2to3 to detect py2 to py3 changes (#1551)
* Run 2to3 -w -n .

* Update internals/fetchmetrics.py

* Update internals/models.py

* Update internals/notifier.py

* Update pages/blink_handler.py

* Update internals/fetchmetrics.py
2021-09-22 18:23:14 -07:00
Jason Robbins 940fa4440c
Fix tests in pages/ and internals/. (#1550) 2021-09-22 10:59:55 -07:00
Kyle Ju 06ce5bc8db
Run tests on py3 (#1534)
* 8 exceptions and 3 test failures
2021-09-21 15:49:40 -07:00
Jason Robbins 1981777c20
Implement myfeatures page boxes for starred-by:me and owner:me (#1533)
* wrote code

* Added unit tests and removed unwanted CSS.

* Use warning() because warn() is deprecated.

* Update internals/models.py

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

* Incorporated review comments.

Co-authored-by: Kyle Ju <kyleju@google.com>
2021-09-17 17:20:25 -07:00
Jason Robbins 74232d20d6
Rename "Upcoming" page to "Roadmap". (#1540) 2021-09-17 10:55:56 -07:00
Jason Robbins caaa660c4b
Eliminated references to GAE users. (#1532) 2021-09-14 17:24:55 -07:00
kyleju e47788f85b Add sign_in 2021-09-14 20:23:16 +00:00
Jason Robbins c42529a172
First attemp at a unit test for templates. (#1519) 2021-09-09 07:17:39 -07:00
Tsuyoshi Horo 1cef7966bf
Fix dt_milestone_android_start (#1520)
Currently "DevTrial on android" is not printedd in "Ready for Trial"
mail becaus of the typo in estimated-milestones-table.html.
And the help_text is guideforms.py is not correct.

This PR fixes them.
2021-09-08 08:01:04 -07:00
Joseph Medley 9459686171 Upate help text for current page structure. 2021-09-01 12:51:04 -07:00
Jason Robbins 180b65d66f
Outline code for /myfeatures page. (#1481)
* Outline code for /myfeatures page.

* Update templates/myfeatures.html

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

Co-authored-by: Kyle Ju <kyleju@google.com>
2021-08-27 18:19:00 -07:00
Jason Robbins 698052a3c7
Clarified field doc for requires_embedder_support (#1440) 2021-08-02 15:33:18 -07:00
Jason Robbins 737cf34ddd
Fix another XML feed defect and add tests. (#1439) 2021-07-28 13:42:18 -07:00
Jason Robbins ab8b2c1421
Add fields for DevTrial milestones. (#1425)
* Add fields for DevTrial milestones.

* Changed wording and added android OT milestones

* Added JS to copy desktop milestones to other platforms.
2021-07-26 12:17:00 -07:00
Jason Robbins 777e7c7d5d
Use version=1 for /features.xml. (#1429) 2021-07-22 12:47:33 -07:00
Jason Robbins 450c997d69
Add standard_maturity field. (#1428) 2021-07-21 15:37:45 -07:00
Shivam Agarwal 849a8536fa
New upcoming page (#1426)
* Created Upcoming page by duplicating code from schedule page

* The new upcoming page now uses Features and Channels API to fetch data

* Fetching features of each milestone separately

* Using csClient for fetching information

* Removed unreferenced variable set from upcoming-page.js
2021-07-20 13:59:55 -07:00
Mathias Bynens 0f342016e2
Make “debuggability” field required (#1408)
Issue: #1372
2021-07-14 10:15:30 -07:00
Jason Robbins 78ce7f7123
Add target to an outbound link. (#1407) 2021-07-13 18:30:16 -07:00
Mathias Bynens 5b1ffedf4a
Update debuggability field description (#1375) 2021-07-13 13:10:23 -07:00
Shivam Agarwal d1925b675e
Channels API (#1400)
* Channels API

* Added TODOs

* Using different namespace for mocking get_omaha_data
2021-07-07 11:50:13 -07:00
Shivam Agarwal 37db1a335d
20210702 new features api (#1399)
* Added new API for all features

* Added Test for Feature API

* Added more tests
2021-07-06 19:01:43 -07:00
Mathias Bynens 783dd200d1
Fix indentify → identify typo (#1398) 2021-07-06 10:33:46 -07:00
Jason Robbins 21188cbb47
Fix FeatureOwner order() property and improve performance of /admin/blink. (#1382) 2021-07-01 13:14:25 -07:00
Jason Robbins 7c28b6f952
Add field requires_embedder_support. (#1373) 2021-06-29 15:28:44 -07:00
Shivam Agarwal fd6018bd3d
20210618 gae ndb to cloud ndb (#1365)
* Added Cloud NDB to requirements

* google-cloud-core 1.7.0 requires google-auth<2.0dev,>=1.24.0, but you'll have google-auth 1.20.1 which is incompatible.

* Running DataStore Emulator on port 15606 and setting environment variable for the same

* Replaced GAE NDB imports with Cloud NDB imports

* Solved Error: No Context for Ramcache

* Solved No NDB Context Error for Cloud NDB

* Fixed Error No object QueryOptions

* Removed clear_datstore flag

* Fixed to_dict() method

* Added explicit call to method for stashing values while editing a feature

* Using Cloud NDB in testbed

* Updated README with JRE instructions and setting the DJANGO_SETTTINGS_MODULE environment variable for django.setup

* Added Env Variable for datastore emulator

* Migrated accounts_api_test.py

* Migrated approvals_api_test.py

* Migrated Comments.py and Cues_api_test.py

* Migrated Features.py

* Migrated metricsdata_test.py

* Migrated stars_api_test.py

* Fixed Deprecation warning for query options

* Migrated token_refresh_api_test.py

* Migrated basehandlers_test.py

* Migrated permissions_test.py

* Migrated ramcache_test.py

* Migrated secrets_test.py

* Migrated xsrf_test.py

* Migrated fetchmetrics_test.py

* Migrated models_test.py

* Migrated notifier_test.py

* Migrated processes_test.py

* Migrated featuredetail_test.py

* Migrated featurelist_test.py

* Migrated guide_test.py

* Migrated intentpreview_test.py

* Migrated samples_test.py

* Removed some unused stubs

* Set the consistency of datastore emulator to be 1

* Resetting the database emulator before running the tests

* Added npm targets for starting and stopping emulator

* Updated README and Developer Docs

* Removed unused imports

* Made NDB calls DRY
2021-06-28 19:05:04 -07:00
Jason Robbins 5c3ca11a72
Update loading primary_blink_components to NDB. (#1369) 2021-06-23 09:47:07 -07:00
Jason Robbins 98a0d63084
Delete unused imports and commented-out code. (#1362) 2021-06-18 08:48:04 -07:00
Jason Robbins ba4cabcfc6
Remove a reference to GAE users. (#1363) 2021-06-18 08:43:12 -07:00
Shivam Agarwal 299516574f
GAE DB Client to GAE NDB (#1352)
* Migrated models.py

* Migrated bulkloader_helpers.py

* Migrated accounts_api.py

* Migrated models.py

* Migrated ramcache.py

* Migrated secrets.py

* Migrated basehandlers.py

* Migrated metricsdata.py

* Migrated fetchmetrics.py

* Migrated notifiers

* blink_handler

* guide.py

* users.py

* fix_data.py

* appengine.py

* Migrated all order() function calls

* Fixed filterby[]

* Migrated all filter() queries

* Migrated some left out lines

* Fixed Bug: json_dump would result in TypeError

* Fixed bug - key() is not callable

* Bug Fix: Query Filters were not working

* Fixed Bug: JSON output of feature list would not contain feature id

* Removed unused ndb import

* Fixed Bug: old_val would have properties wrappped in _BaseValue

* Migrated Tests

* Fixed Test: capstone has no attribute delete()

* Fixed Bug: A filter won't work

* Fixed Bug: Index out of range if self.Blink_components length is 0

* Fixed Bug: Some order statements won't work

* Assigning default value to Feature_blink_components

* Fixed Bug: A filter won't work

* Fetching singleton using ancestor for strong consistency

* Moved the ancestor query for strong consistency to replace the correct original query

* Replaced _pre_put_hook with _from_pb

* Fix: NDB picked up old properties while looping over self.properties

* Fix: NDB would generate diffs if None is compared with empty strings
2021-06-17 13:47:02 -07:00
Jason Robbins a79b26f595
Convert old UI-style user admin requests to JSON API. (#1326) 2021-05-19 15:21:18 -07:00
Jason Robbins d92661ffa2
Make auto-user fields non-auto. (#1310) 2021-05-06 18:12:39 -07:00
Shivam Agarwal 8fbebb7989
20210418 google sign in (#1275)
* Added Google Platform Library

* Added Meta Element for Client ID

* Added Google Sign-In Button

* Authenticating the id_token on our backend

* Saving id_token in flask session, using the id_token to fetch the current user and replaced the usages of AppEngine Users API (not from *_tests.py)

* Correct the flow on pressing SignIn and SignOut

* Code refactor

* Added Comment for is_current_user_admin

* Supporting GAE Users library for post request

* Made some fixes

* Changed Admin User condition

* Reloading only on 200 response code

* Do not require sign in and xsrf token while sending post request for login

* Sign Out using Google Sign In if cookie is not set after login

* Clearing the session if the id_token stored in the session variable becomes invalid or expires

* Replaced GAE Users from tests

* Replaced GAE users with framework users in tests.py
2021-05-06 16:37:30 -07:00
Jason Robbins f4726b7455
Allow site admins to be specified via AppUser entities. (#1288) 2021-04-27 18:56:37 -07:00
Jason Robbins d7e3213297
Remove unused field intent_template_use_count. (#1283) 2021-04-27 15:02:10 -07:00
Jason Robbins af7b485d17 Fix permission checking for unlisted features. 2021-04-23 17:12:07 -04:00
Jason Robbins a761f6ad16
Further align ChromeStatus with the launching-features doc. (#1269) 2021-04-19 11:24:57 -07:00
Jason Robbins 1f0d740be5
Add a field for devtrial instructions link. (#1265) 2021-04-14 16:06:39 -07:00
Shivam Agarwal 0c1e93f6eb
Bug Fix: Edit feature complains about multiple contact emails (#1248)
* Bug Fix: Edit feature complains about multiple contact emails

* Added Comment

* Added comment

* Removed Comments

* Reverted change to index.yaml

Co-authored-by: Jason Robbins <jrobbins@gmail.com>
2021-04-12 16:13:57 -07:00
Jason Robbins 9b18859808
Refactor code for accessing JSON parameters. (#1260) 2021-04-12 15:46:21 -07:00