Commit Graph

830 Commits (2.4.0-dev)

Author SHA1 Message Date
Kevin Chung fb6b30ab1b Fix lint 2020-05-04 01:29:28 -04:00
Kevin Chung 2c4259c999 Bump release date 2020-05-04 01:04:37 -04:00
Kevin Chung 625c17db30 Invalidate any previously cached attributes on user login 2020-05-03 20:47:25 -04:00
Kevin Chung 7779175eea Set date 2020-05-03 03:22:43 -04:00
Kevin Chung f559c7d8fc
Merge pull request #1373 from CTFd/bulk-table-profile-actions
* Convert Admin Panel User/Team submission actions to be bulk actions
* Add "Mark Missing" feature for Teams
2020-05-03 01:10:35 -04:00
Kevin Chung 1befbedee0 Fix lints 2020-05-02 23:57:54 -04:00
Kevin Chung ba4fce4736 Update changelog 2020-05-02 23:18:54 -04:00
Kevin Chung 0ff9d142f7 Use sessionStorage to store most recently used tabs instead of the location hash 2020-05-02 23:04:58 -04:00
Kevin Chung 494052fb44 Bump min-vh 2020-05-02 20:38:15 -04:00
Kevin Chung 0d904d0628 Run yarn build 2020-05-02 19:37:26 -04:00
Kevin Chung a2e5aa4b9e Add team mark missing 2020-05-02 15:04:04 -04:00
Kevin Chung 76bd626c36 Make bulk mark correct work for users 2020-05-02 14:35:47 -04:00
Kevin Chung c101204879 Add bulk user page actions 2020-05-02 14:23:15 -04:00
Kevin Chung 5a9d79f2bb Add bulk table actions for team page 2020-05-02 14:09:52 -04:00
Kevin Chung 735faf0e23 Mark new version and add rough changelog 2020-05-02 02:49:03 -04:00
Kevin Chung 073c8c713d Remove small 2020-05-01 21:10:10 -04:00
Kevin Chung 3d652a968e Clean up some ui interactions 2020-05-01 21:03:15 -04:00
Kevin Chung 9003c29846 Fix up some of the tables when data is too long 2020-05-01 17:26:06 -04:00
Kevin Chung fe97385f69
Merge pull request #1371 from CTFd/ip-address-admin-modal
* IP Tracking cache returns the IPs used by the user in the last hour. This way we can track the "Last Seen" value better for GET requests. 
* Moves IP addresses in the Admin Panel for Users and Teams into a modal
* Closes #1146
2020-05-01 02:44:33 -04:00
Kevin Chung 512a7d546b
Merge pull request #1372 from CTFd/better-spacing-without-solves
* Use some better utility CSS classes for better spacing when there isn't any content
2020-05-01 02:34:50 -04:00
Kevin Chung 0614bc9cf2 Run make format and yarn build 2020-04-30 22:23:14 -04:00
Kevin Chung 95d581ed33 Add better spacing for when there aren't solves to populate dtta 2020-04-30 22:14:32 -04:00
Kevin Chung c47955ff4f Always record IP usage on non-GET and clean up HTML 2020-04-30 21:10:43 -04:00
Kevin Chung e5814592c4 Run yarn build and add empty line to end of files 2020-04-30 20:36:57 -04:00
Kevin Chung 01f2d50a34 Rewrite IP tracking code to only return recent IPs. Move IPs into a modal for admin panel. 2020-04-30 20:32:26 -04:00
Kevin Chung 1c10643537
Merge pull request #1367 from CTFd/cache-user-ips-for-tracker
* Cache user IPs and only update IP usage on new IPs or on non-GET requests
2020-04-30 16:04:46 -04:00
Kevin Chung b4f39e843d
Merge pull request #1368 from CTFd/update-jquery-3.5.0
* Update jQuery to 3.5.0 to resolve potential security issue (https://github.com/advisories/GHSA-jpcq-cgw6-v4j6)
2020-04-30 15:57:33 -04:00
Kevin Chung 2f1b3265f8 Run make lint 2020-04-30 14:39:42 -04:00
Kevin Chung 7d35e552bc Merge remote-tracking branch 'origin/2.4.0-dev' into update-jquery-3.5.0 2020-04-30 14:34:47 -04:00
Kevin Chung c69633b479 Remove testing data 2020-04-30 03:33:55 -04:00
Kevin Chung b3b654bf03 Rebase 2.4.0-dev 2020-04-30 03:21:13 -04:00
Kevin Chung 0bd6c0d958 Merge remote-tracking branch 'origin/2.4.0-dev' into cache-user-ips-for-tracker 2020-04-30 03:10:31 -04:00
Kevin Chung 431c35cb51
Merge pull request #1363 from CTFd/is_admin_func_cache_hit
* Make the `is_admin()` function avoid DB hits and mostly hit cache. This is accomplished by creating a cached object that mimics the actual User model object. This object should be invalidated every time that the User object is modified.
* Add `get_current_user_attrs`, `get_current_team_attrs` and `get_ip` to Jinja
* Update `flask-profiler` to 1.8.1 and fix `flask-profiler` configuration to work better
2020-04-30 03:07:59 -04:00
Kevin Chung 0d97c3539a Update jQuery to 3.5.0 2020-04-30 02:57:22 -04:00
Kevin Chung 87895918f5 Fix tracker code to fix tests 2020-04-30 02:45:12 -04:00
Kevin Chung 232a4468b0 Run format 2020-04-30 02:22:44 -04:00
Kevin Chung e99f4f11a5 Merge remote-tracking branch 'origin/2.4.0-dev' into is_admin_func_cache_hit 2020-04-30 00:31:21 -04:00
Kevin Chung 4e28e30cb8 Fix memoize call 2020-04-29 23:10:39 -04:00
Kevin Chung 4a47805c41 Reduce attr cache to 30 seconds instead of 300 secs 2020-04-29 22:48:03 -04:00
Kevin Chung 740ea36f7a Fix tokens using too-random of a value 2020-04-29 22:45:11 -04:00
Kevin Chung 541d7e9cfa Add a wrapper for get_user_ips 2020-04-29 22:34:33 -04:00
Kevin Chung 46ca4c7283 Add newline at end of .gitignore 2020-04-29 22:27:39 -04:00
Kevin Chung 0dc42605ac Handle other cases for attrs invalidation 2020-04-29 22:24:52 -04:00
Kevin Chung 3f3109f589 Add team attrs and cache banning SQL query 2020-04-29 20:33:51 -04:00
Kevin Chung 0d8b0ee966 Merge branch 'is_admin_func_cache_hit' of github.com:CTFd/CTFd into is_admin_func_cache_hit 2020-04-29 20:19:50 -04:00
Kevin Chung 674c08c19a Switch to get_user_attrs strategy 2020-04-29 20:19:40 -04:00
Kevin Chung 805b48d00d Test clear_user_session and clear sessions on user modifications 2020-04-29 20:19:40 -04:00
Kevin Chung e1e22eddb3 Make CTFd.utils.user.is_admin wrap a cached function so we avoid a DB hit on page loads 2020-04-29 20:19:40 -04:00
Kevin Chung f86b7ae18f Switch to get_user_attrs strategy 2020-04-29 20:19:05 -04:00
Kevin Chung a9aa80af89
Merge pull request #1366 from CTFd/extract-banned-code-from-tracker
* Extract the banning function from the IP tracking code to start moving it into cache
2020-04-29 19:50:46 -04:00