Skip to content

Return the first org if lead org doesn't exist#5697

Merged
tomodwyer merged 2 commits intomainfrom
tomodwyer/show-org-project
Mar 20, 2026
Merged

Return the first org if lead org doesn't exist#5697
tomodwyer merged 2 commits intomainfrom
tomodwyer/show-org-project

Conversation

@tomodwyer
Copy link
Copy Markdown
Member

@tomodwyer tomodwyer commented Mar 16, 2026

Closes #5614

Initially I updated the code to return the first org if the lead didn't exist - this worked for the project page, but was adding many more SQL queries to other pages on the site.

For that reason, I worked backwards to make sure that we didn't add in any new queries on pages outside of the project view that needed to be updated.

To do

@tomodwyer tomodwyer self-assigned this Mar 16, 2026
@tomodwyer tomodwyer force-pushed the tomodwyer/show-org-project branch from 18297d8 to 43d0f0a Compare March 17, 2026 13:49
@tomodwyer tomodwyer marked this pull request as ready for review March 17, 2026 13:49
* One query to check for a lead org
* Another query to fall back to the first org
@tomodwyer tomodwyer force-pushed the tomodwyer/show-org-project branch from 43d0f0a to e369b08 Compare March 20, 2026 14:57
@tomodwyer tomodwyer merged commit 8a2a28f into main Mar 20, 2026
9 checks passed
@tomodwyer tomodwyer deleted the tomodwyer/show-org-project branch March 20, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug report: Organisation URL and logo not displayed on project detail page after edit

2 participants