-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Django Upgrade] [Reference PR] The rest of the fixes #10048
Closed
Johnetordoff
wants to merge
85
commits into
CenterForOpenScience:feature/django_upgrade
from
Johnetordoff:django-3-onmibus
+3,704
−17,348
Closed
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
7c3b9ad
remove post-migrate signals from migration stream (#9964)
Johnetordoff 4a8bd61
move createcachetable to post migrate signal (#9944)
Johnetordoff bf7eb21
[ENG-3836] Investigate waffle flags (#9950)
Johnetordoff 15f15e9
[ENG-3865] Create Licenses using post-migrate signal (#9961)
Johnetordoff 5746a84
[ENG-3863] Move schema ensuring and schema blocks update to post-migr…
cslzchen c2c5e4e
[ENG-3868] Move blocked email domains to post-migrate signal (#9958)
Johnetordoff f22e531
[ENG-3866] Move citation style population out of migration stream (#9…
Johnetordoff 250b832
[ENG-3867] Create Storage Regions on post migration signal (#9965)
Johnetordoff 8052ea4
[ENG-3836] Follow-up: Add PyYAML to Requirements (#9993)
cslzchen 65b344b
[ENG-3862] Move post-migrate signal out of migration stream for defau…
Johnetordoff 205e560
Remove unused password change view/route (#9985)
Johnetordoff 1675f6f
Update import paths and fix deprecated modules for Django 3 (#9983)
Johnetordoff 391af60
Update postgres backend and remove failover router for Django 3 (#10011)
Johnetordoff c9c7f44
Move file metadata population to unit test fixtures (#9994)
Johnetordoff 721ef90
Remove password_reset from installed apps
cslzchen 75ffbb0
Merge remote-tracking branch 'upstream/develop' into feature/django_u…
cslzchen 285d9a6
[Django Upgrade] Fix one sub-query slicing issue (#10012)
Johnetordoff 06f6fe9
[Django Upgrade] Upgrade django-elasticsearch-metrics (#10021)
Johnetordoff 724f59a
[Django Upgrade] Replace M2M direct assignment (#10010)
Johnetordoff afa62a7
[Django Upgrade] Upgrade markdown and mdx_del_ins (#9984)
Johnetordoff d15c88f
[Django Upgrade] Move schema activeness/visibility update to pytest f…
cslzchen 3f162f1
Remove osf migrations
cslzchen f971149
Remove addon migrations
cslzchen f41eb8a
Init migrations - osf
cslzchen dab1bbc
Init migrations - addons
cslzchen 994fcfd
Fix migration for NotableEmailDomain
cslzchen a54bbbe
Fix circular import with built-in admin migrations
cslzchen 699fc1c
Add a RunSQL migration to update indexes
cslzchen 0dc9220
Merge pull request #10028 from cslzchen/feature/clean_squash
mfraezz cfb012e
Merge remote-tracking branch 'upstream/develop' into feature/django_u…
cslzchen cb25d71
Upgrade django to 3.2.15 (and related dependencies)
cslzchen 720b6ec
Make fields defined on typedmodels subclasses nullable
cslzchen 6b7ce7f
Add required on_delete=CASCADE (default) to FKs missing it
cslzchen 0192907
Fix django CORS whitelist settings due to orgin definition update
cslzchen 51f4f48
Add/Enable missing templates and middlewares in api settings
cslzchen 41d4b50
Comment out admin permissions that clash with built-in "view" ones
cslzchen 65f39c8
Add migrations for django upgrade base fixes
cslzchen 0ad3f7c
Fix system check warnings for django admin
cslzchen a2dc7ba
Merge branch 'longze/django3-upgrade-base' into feature/django_upgrade
cslzchen 2a0aa6e
Fix django cache table creation
cslzchen 66edda0
Enable django.contrib.sessions.middleware.SessionMiddleware
cslzchen 37bd4e4
Use default truthy and falsy values from upgraded DRF 3.13.1
cslzchen bcd2c6e
Use JsonField from django.db.models and django.forms
cslzchen 88c057e
Merge branch 'longze/django3-json-field-update' into feature/django_u…
cslzchen 0ce6496
Fix session cookie encoding/decoding by using ensure_str()
cslzchen fc0d032
Merge branch 'fix-django-session-issues' into feature/django_upgrade
cslzchen 2fbc057
Use prefetch instead of Django include
eb93348
Merge branch 'replace-django-include-with-prefetch' into feature/djan…
cslzchen 07ee7e6
Fix CORS for ORIGINS_WHITELIST
cslzchen 9e9c487
Merge branch 'django-3-update-cors' into feature/django_upgrade
cslzchen 4e19413
Rename auto generated migration for django3 upgrade fixes
cslzchen d10824f
Remove QuickFile check from get_serializer_class for FileDetail view
cslzchen 4e56c87
Merge remote-tracking branch 'upstream/develop' into feature/django_u…
cslzchen 68acb17
clear cached property for storage region.
57e81a6
turn off notify emails for tests in Django 3 upgrade
0bc3d5c
upgrade Django factory models for Django 3
7d3c644
remove update_version_metadata with tests
51a6b1b
remove django-include and other unused egap backfill tests
e21b460
Make DFR serializer fixes
1a70f61
make registration metadata use real schema
f30f1ce
Fix changed test due to DRF upgrade issues
fca9e81
fix duplication of 'view_node' for admin app
dffad34
fix test issues by reloading refferents
db10898
add DEFAULT_AUTO_FIELD to end warnings for Django 3 upgrade
0c1cc03
fix DRF issue
494e396
Fix an issue where get_node() is not avaialbe from context view
cslzchen 6548110
Add registration_schema to DraftRegistrationDetailSerializer
cslzchen 0bb5fc5
Add id to DraftRegistrationDetailSerializer
cslzchen d69128c
Merge branch 'fix-draft-registration-serializers' into feature/django…
cslzchen 7f6219b
Merge branch 'feature/django_upgrade' of https://github.com/CenterFor…
3f97cd6
sort out query issue for `visible_contributor_to` for Django 3 upgrade
ec4da2f
update schema code
6f64b38
skip test_validate_social_profile_website_many_different due to it br…
6dcb706
fix more draft registrations mro problems
b1845e4
refactor url to re_path for django 3 update to avoid annoying depreci…
95c9c83
Fix middleware order and replace deprecated staticfiles with static
ba02936
remove nullboolean fields to prevent depreciation warning
fd42db4
fix admin app depreciating staticfiles for Django 3 upgrade
dd377cc
Fix and rework from_db_value & to_python for EncryptedJSONField
cslzchen 5f7fd3b
Merge branch 'feature/django_upgrade' of https://github.com/CenterFor…
b57c74e
fix admin login failure for django upgrade
93081d4
Fix admin login failure for django upgrade
b58c17f
upgrade to end dependabot warnings
Johnetordoff 5a24b8f
Merge branch 'feature/django_upgrade' of https://github.com/CenterFor…
3f6a665
more dependabot updates
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix make sense since we need to make sure that the invisible contributor on the project must be the
self
user.Without it,
visible_contributor_to
returns two projects (in unit tests) with the following contributor set for each.Apparently, if we only have
contributor__visible=True
, the query find nodes as long as one of the contributor is visible. I am not sure why this happens after the upgrade, might be an issue with the related manager.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update/Example:
We have user
7773344
and8079719
; we have Project9qnbu
andx8jc3
Project
9qnbu
has contributor7773344
as visibleProject
x8jc3
has contributor7773344
&8079719
as visibleThe above returns 3 items instead of 2. Apparently,
contributor__visible=True
is looped on each contributor.My concern is, even with
contributor__user=self
, it still loops each contributor on every project ... this makes sense why adding it fix the tests but it might be too costly?