Render organization logos by 'slug'

This avoids leaking org IDs in the URL, and makes it possible to have a
district-specific root mock that works in both dev and prod.
This commit is contained in:
Eli Ribble 2026-01-24 19:13:55 +00:00
parent 45868e4bde
commit f549243c10
No known key found for this signature in database
10 changed files with 259 additions and 17 deletions

View file

@ -87,6 +87,15 @@ var Organizations = Table[
Generated: false,
AutoIncr: false,
},
Slug: column{
Name: "slug",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: organizationIndexes{
OrganizationPkey: index{
@ -182,11 +191,12 @@ type organizationColumns struct {
ImportDistrictGid column
Website column
LogoUUID column
Slug column
}
func (c organizationColumns) AsSlice() []column {
return []column{
c.ID, c.Name, c.ArcgisID, c.ArcgisName, c.FieldseekerURL, c.ImportDistrictGid, c.Website, c.LogoUUID,
c.ID, c.Name, c.ArcgisID, c.ArcgisName, c.FieldseekerURL, c.ImportDistrictGid, c.Website, c.LogoUUID, c.Slug,
}
}