-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove public site #3738
Remove public site #3738
Conversation
8e890a0
to
f4d0ee2
Compare
I have merged in all "Remove public…" PRs before this one now so this can be rebased of main. |
b579c86
to
d032b7c
Compare
ea88722
to
93bf99a
Compare
I merged in the icon PR so this can be rebased. I also see this error:
|
So nice seeing all the delete file statements in this PR! |
be57656
to
7a5603f
Compare
Remove public site - Keeps the migrations to delete the public tables - Updates and adds a global footer (admin configurable) - Update the layout of homepage - To succesfully remove the public site, go to "Wagtail Admin" > "Pages", set the "Apply Home Page" as the default page of the site. Remove the public site page Fixup: update heaader nav
7a5603f
to
154585b
Compare
70159fa
to
c2a69d9
Compare
These two warning doesn't seem to b/c of changes in the PR. If it make sense I'll update them in this PR or have them resolved in another PR. |
1c6bf74
to
c2a69d9
Compare
Unable to get the failing test reproduced locally. Will try it tomorrow. |
hypha/apply/home/templates/apply_home/includes/apply_listing.html
Outdated
Show resolved
Hide resolved
Django did had start up issues in very old versions before they introduced the |
@wes-otf you saved me hours. The solutions seems to be working and accessing the models before its initialized is a very bad idea in general. The loading of models and apps are very unpredictable. That why Django introduced https://docs.djangoproject.com/en/5.0/ref/applications/#django.apps.AppConfig.ready to you can perform any on_load activities here. I believe there are more code in the forms.py in certain apps that is initialized like this, instead of in the |
This doc need updating at some point as well: hypha/docs/getting-started/contributing/code-contributions.md Lines 19 to 34 in 50693eb
|
Updated. |
Looking into the test case failing. Let's hold on to merging before that. This something to do with the updated |
Can it be that the initial migrations created a public and apply site and set the public as default. When testing against this we get errors. |
@theskumar glad it worked!! Was a bit of a shot in the dark, weird stuff. |
Update migration to use the apply homepage as default
Yes. You are absolutely right. updated the code in b788eec Re-created by creating a fresh db, ran migration, without adding the sandbox db data |
b788eec
to
259948d
Compare
Deploying this to test now. |
- Keeps the migrations to delete the public tables - Updates and adds a global footer (admin configurable) - Update the layout of homepage Fixes #3110 #3559 ## Test Steps - [ ] Remove the public site, go to "Wagtail Admin" > "Pages", set the "Apply Home Page" as the default page of the site. Remove the public site page - [ ] Do regression of the whole site --------- Co-authored-by: Wes Appler <[email protected]>
- Keeps the migrations to delete the public tables - Updates and adds a global footer (admin configurable) - Update the layout of homepage Fixes #3110 #3559 ## Test Steps - [ ] Remove the public site, go to "Wagtail Admin" > "Pages", set the "Apply Home Page" as the default page of the site. Remove the public site page - [ ] Do regression of the whole site --------- Co-authored-by: Wes Appler <[email protected]>
- Keeps the migrations to delete the public tables - Updates and adds a global footer (admin configurable) - Update the layout of homepage Fixes HyphaApp#3110 HyphaApp#3559 - [ ] Remove the public site, go to "Wagtail Admin" > "Pages", set the "Apply Home Page" as the default page of the site. Remove the public site page - [ ] Do regression of the whole site --------- Co-authored-by: Wes Appler <[email protected]>
Description
Fixes #3110 #3559
Test Steps