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

15 Коммитов

Автор SHA1 Сообщение Дата
Daniel Smith 9970ec3d7a
Enable new permissions system (#2174)
* enable new permissions

* review changes
2022-08-26 15:30:55 -07:00
Jason Robbins 697cf9b38d
Refactor remaining models.py code into core_models.py (#2160)
* Refactor remaining models.py to core_models.py.

* Move tests to the right _test file.
2022-08-23 16:00:02 -07:00
Jason Robbins 86561da513
Replace RSS with notice that it is not offered. (#2151) 2022-08-22 10:34:33 -07:00
Jason Robbins 0972d89600
Refactor models.py enums into core_enums.py. (#2106) 2022-08-12 15:49:32 -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
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
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 737cf34ddd
Fix another XML feed defect and add tests. (#1439) 2021-07-28 13:42:18 -07:00
Jason Robbins 777e7c7d5d
Use version=1 for /features.xml. (#1429) 2021-07-22 12:47:33 -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 af7b485d17 Fix permission checking for unlisted features. 2021-04-23 17:12:07 -04:00
Jason Robbins 55c9cd2925
Refactor models.py into internals/. (#1236)
* Refactor models.py into internals/.

* Trivial change to re-trigger travis.

* Updated an import
2021-03-24 13:13:02 -07:00
Jason Robbins 52e38880b3
Flesh out permissions.py and simplify page logic. (#1237)
* Flesh out permissions.py and simplify page logic.

* Addressed review comments
2021-03-24 10:11:13 -07:00
Jason Robbins ba3a406394
Refactor server.py into more specific files under pages/. (#1227)
* progress

* Refactor server.py into more specific files under pages/.

* remove server_test.py since tests are in specific files.

* Fix flakey test (feature ID could match part of date)
2021-03-22 15:33:02 -07:00