Commit graph

56 commits

Author SHA1 Message Date
Jennifer Richards f78b050263
refactor: Streamline draft aliases api (#7607)
* chore: update add-django-cprofile-filter.patch

* fix: only use "draft" state when making aliases

* refactor: eliminate repeated get_state_slug()

On dev, reduces time for a draft-aliases api
call by by 10-15%

* refactor: only annotate inactive drafts

* refactor: de-lint

* refactor: speed up get_draft_authors_emails

Another 20% or so improvement in response time

* fix: guard against null person
2024-06-28 12:01:26 -05:00
Jennifer Richards 1efb19c8ec
chore: Update django-oidc-provider patch (#6526)
* chore: Fix line numbers in patch

File changed with django-oidc-provider v0.8.1

* chore: Limit django-oidc-provider version
2023-10-23 14:13:20 -05:00
Jennifer Richards f56dfd66eb
chore: Update django-cookie-delete-with-all-settings.patch 2023-05-18 18:00:45 -03:00
Jennifer Richards 3c2def34f9
chore: Update django-cookie-delete-with-all-settings.patch 2023-05-18 15:18:02 -03:00
Jennifer Richards e7ae72bce5
chore: Update django-cookie-delete-with-all-settings.patch 2023-05-16 13:58:06 -03:00
Jennifer Richards 329fa26ee0
chore: Remove abandoned django-password-strength package 2023-05-15 15:29:00 -03:00
Jennifer Richards 4cfe1c17d0
chore: Update django-cookie-delete-with-all-settings.patch 2023-05-12 17:28:01 -03:00
Jennifer Richards 09276150b5
chore: Update tastypie-django22-fielderror-response.patch 2023-05-12 17:25:20 -03:00
Jennifer Richards ebd28cd783
chore: Update fix-oidc-access-token-post.patch 2023-05-12 17:19:41 -03:00
Jennifer Richards 828071a582
chore: Unpin oidc-provider, update its patch 2023-05-12 17:09:32 -03:00
Jennifer Richards addc967134
chore: Update django-cookie-delete-with-all-settings.patch 2023-05-12 15:47:37 -03:00
Jennifer Richards ccb7d666ce
chore: Remove add-django-http-cookie-value-none.patch
Fixed upstream
2023-05-12 15:47:37 -03:00
Jennifer Richards 21ac8c067d
chore: Fix cookie-delete patch to work with Django 3.0 2023-05-10 16:50:11 -03:00
Jennifer Richards 57026bbb5f
Revert "chore: Remove django-cookie-delete-with-all-settings.patch"
This reverts commit 2cf2a3dee6.
2023-05-10 15:55:25 -03:00
Jennifer Richards 31fd43184c
chore: Tweak add-django-http-cookie-value-none.patch for Django 3.0 2023-05-09 15:39:12 -03:00
Jennifer Richards 2cf2a3dee6
chore: Remove django-cookie-delete-with-all-settings.patch
Patch no longer applies. Needed until Django 4.2.1, so bring it back
if we deploy something earlier than that to production.
2023-05-09 11:09:41 -03:00
Jennifer Richards 6b826fd985
refactor: Purge old migrations and update ci to build on a clean schema (#5431)
* refactor: Remove all existing migrations

* refactor: Create clean set of migrations

* chore: Skip check_statetype_slugs when DB is not yet populated

* fix: Do not cache active_groups_menu on module import

* fix: Do not patch timezone awareness out of oidc-provider

* refactor: Migrate to create postgres schema, only use pgloader for data

* ci: Use migration scripts from feat/pg-migrations branch

* Revert "ci: Use migration scripts from feat/pg-migrations branch"

This reverts commit c82f64c614241ccede4865a50d494725c8a47c15.

* ci: Run check before migrate

* fix: Remove redundant migration caused by merge error

* chore: Add casts/ALTER TABLEs to eliminate pgloader errors/warnings

* chore: Change schema name to match docker image assumptions

* chore: Clear out schema so we get a clean start in case of a retry
2023-03-28 18:06:07 +09:00
Robert Sparks 86923dfe96
chore: update dependency requirements (#3904)
* chore: cleanup requirements.txt. Unpin factory-boy, ignoring resulting mypy complaints.

* chore: remove the upper limit as many dependencies as possible

* chore: remove unintended bookmark

* chore: normalize spaces before comments

* chore: improve comment explaining pinned Tastypie

* chore: shift dependencies minimum version requirements forward
2022-04-28 11:06:17 -05:00
Robert Sparks 8e71f4113a Remove oic patch - 1.3.0 contains the fix. Commit ready for merge.
- Legacy-Id: 19214
2021-07-14 18:31:45 +00:00
Henrik Levkowetz 5931b5d778 Added another tastypie patch
- Legacy-Id: 18411
2020-08-25 13:30:01 +00:00
Henrik Levkowetz bb9bd8d469 Added a patch for tastypie under django 2.2, to catch field error exceptions that were handled differently under earlier django versions.
- Legacy-Id: 18407
2020-08-24 11:24:52 +00:00
Henrik Levkowetz 982f5ccc70 Tweaked a patch, removing an unused import.
- Legacy-Id: 18394
2020-08-20 13:48:04 +00:00
Henrik Levkowetz 278f86f275 Removed a misnamed patch file.
- Legacy-Id: 18387
2020-08-20 12:21:04 +00:00
Henrik Levkowetz 4712e8370c Added a patch to make django use the same settings when deleting a cookie as when setting it. In particular, it sets Secure if settings.SESSION_COOKIE_SECURE, which is needed if samesite='None'. Fixes issue #3056
- Legacy-Id: 18359
2020-08-13 10:47:06 +00:00
Henrik Levkowetz 6e4d8457e6 Updated django patch for SameSite cookie settings.
- Legacy-Id: 18161
2020-07-13 16:26:32 +00:00
Henrik Levkowetz b8b69b1698 Added a patch for Django to permit cookie 'samesite' setting to be explicitly set to 'None'.
- Legacy-Id: 18138
2020-07-08 13:46:34 +00:00
Henrik Levkowetz 8837eb9067 Merged in Django 2.2 changes.
- Legacy-Id: 18090
2020-06-27 20:56:10 +00:00
Henrik Levkowetz 27da6e86d4 Widgets' .render() method now must accept an additional keyword argument (renderer); adjusted the code accordingly (including a library patch -- pull request also submitted).
- Legacy-Id: 18056
2020-06-24 20:44:47 +00:00
Henrik Levkowetz 37cd5daaed Updated patch for oidc_provider, to remove tzinfo in a default datetime value.
- Legacy-Id: 17931
2020-06-08 19:12:14 +00:00
Henrik Levkowetz f9ad2346bc Updated patch for oicd_provider char field size
- Legacy-Id: 17923
2020-06-07 11:42:57 +00:00
Henrik Levkowetz 48d1cd8bb6 Increased the required version of request-profiler and updated its patch file.
- Legacy-Id: 17922
2020-06-06 21:15:10 +00:00
Henrik Levkowetz 0e24e99628 Added patches for some issues with the oic and oidc-provider modules, and updated a patch for request-profiler.
- Legacy-Id: 17920
2020-06-06 21:02:30 +00:00
Henrik Levkowetz 4de5722905 Patched a bug in pyjwkest.jwt which would cause a root logger handler to be created if none existed, resulting in logging in following code being emitted even if intentionally set up to be visible. (See https://github.com/IdentityPython/pyjwkest/pull/97 , created to fix this upstream)
- Legacy-Id: 17911
2020-06-06 16:19:14 +00:00
Henrik Levkowetz b27d5198bd Patched a bug in pyjwkest.jwt which would cause a root logger handler to be created if none existed, resulting in logging in following code being emitted even if intentionally set up to be visible. (See https://github.com/IdentityPython/pyjwkest/pull/97 , created to fix this upstream)
- Legacy-Id: 17910
2020-06-06 16:18:45 +00:00
Henrik Levkowetz 6face5ff3a Cleaned up a patch.
- Legacy-Id: 17667
2020-04-20 17:56:12 +00:00
Henrik Levkowetz 8ec63ca0e1 Removed Py2 svn-package settings, and added a patch for request_profiler.
- Legacy-Id: 17665
2020-04-20 17:51:47 +00:00
Henrik Levkowetz 6e41663a7c Removed a patch that has now been applied upstream.
- Legacy-Id: 16217
2019-05-23 14:29:00 +00:00
Henrik Levkowetz d59eb23fd4 Updated unicode comparison patch for django 1.11.18
- Legacy-Id: 15907
2019-01-21 18:04:17 +00:00
Henrik Levkowetz 27ea752100 Updated a patch and removed one from the patch list in settings.
- Legacy-Id: 15742
2018-11-09 19:57:18 +00:00
Henrik Levkowetz 5c958e7010 Consolidated the 2 patches to patch.py into one.
- Legacy-Id: 15741
2018-11-09 19:51:48 +00:00
Henrik Levkowetz 2b4fb73e49 Fixed a bad patch file
- Legacy-Id: 15692
2018-11-03 06:41:20 +00:00
Henrik Levkowetz 324dddee5d Updated the patch for patch.py
- Legacy-Id: 15691
2018-11-03 06:23:11 +00:00
Henrik Levkowetz 9c042b4f7d Tweaked the django_cprofile_middleware patch to use a query arg of psort instead of sort, to avoid conflict with app query args 'sort'.
- Legacy-Id: 15021
2018-04-06 21:21:41 +00:00
Henrik Levkowetz 6d096e7f2a Added a patch for debug mode, to add a filtering option to the django-cprofile-middleware.
- Legacy-Id: 15004
2018-04-04 17:08:26 +00:00
Henrik Levkowetz e0aed58cc1 Updated a django patch to add origin information to query sets.
- Legacy-Id: 14792
2018-03-14 17:41:11 +00:00
Henrik Levkowetz cf9804f659 Adjusted the format of a patch.
- Legacy-Id: 14756
2018-03-09 17:52:32 +00:00
Henrik Levkowetz 229d84a144 Added a patch to patch.py to not change directories during patching.
- Legacy-Id: 14755
2018-03-09 17:51:40 +00:00
Henrik Levkowetz 89470dece4 Removed unwanted path elements from a patch file.
- Legacy-Id: 14754
2018-03-09 15:50:29 +00:00
Henrik Levkowetz 0b46cbb52d Added 2 new patch files
- Legacy-Id: 14676
2018-02-22 15:16:41 +00:00
Henrik Levkowetz a7085715f5 Added some new patches, including a patch to patch.py to let us report when patching has happened.
- Legacy-Id: 14663
2018-02-21 23:47:57 +00:00