Skip to content

Commit

Permalink
Update seed data to bay area counties (#158)
Browse files Browse the repository at this point in the history
* merge cruft

* update seed data to bay area coutnies

* fix test

* remove merge cruft

* include Sesame Street data

* update sesame street lat lon too

* lint
  • Loading branch information
phattya committed Jun 9, 2023
1 parent 72240ae commit 2e4c660
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 152 deletions.
30 changes: 15 additions & 15 deletions backend/core/archer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ export const ArcherListing: Listing = {
applicationDropOffAddress: null,
applicationDropOffAddressOfficeHours: null,
applicationMailingAddress: null,
countyCode: CountyCode["San Jose"],
countyCode: CountyCode["Solano"],
jurisdiction: {
id: "id",
name: "San Jose",
name: "Bay Area",
publicUrl: "",
},
depositMax: "",
Expand All @@ -265,7 +265,7 @@ export const ArcherListing: Listing = {
postmarkedApplicationsReceivedByDate: new Date("2019-12-05"),
applicationDueDate: new Date("2019-12-31T15:22:57.000-07:00"),
applicationMethods: [],
applicationOrganization: "98 Archer Street",
applicationOrganization: "98 Archer Place",
// TODO confirm not used anywhere
// applicationPhone: "(408) 217-8562",
assets: [
Expand Down Expand Up @@ -319,13 +319,13 @@ export const ArcherListing: Listing = {
id: "id",
createdAt: new Date(),
updatedAt: new Date(),
city: "San Jose",
county: "Santa Clara",
street: "98 Archer Street",
zipCode: "95112",
city: "Dixon",
county: "Solano",
street: "98 Archer Place",
zipCode: "95620",
state: "CA",
latitude: 37.36537,
longitude: -121.91071,
latitude: 37.44522,
longitude: -121.81524,
},
leasingAgentEmail: "mbaca@charitieshousing.org",
leasingAgentName: "Marisela Baca",
Expand Down Expand Up @@ -354,13 +354,13 @@ export const ArcherListing: Listing = {
id: "buildingId",
createdAt: new Date(),
updatedAt: new Date(),
city: "San Jose",
county: "Santa Clara",
street: "98 Archer Street",
zipCode: "95112",
city: "Dixon",
county: "Solano",
street: "98 Archer Place",
zipCode: "95620",
state: "CA",
latitude: 37.36537,
longitude: -121.91071,
latitude: 37.44522,
longitude: -121.81524,
},
neighborhood: "Rosemary Gardens Park",
petPolicy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ describe("CombinedListingTransformer", () => {
id: "7c84c0e6-b9ac-48a8-b55c-daf20ddbfe67",
},
building_address: {
city: "Oakland",
county: "Alameda",
city: "Sausalito",
county: "Marin",
state: "CA",
street: "3300 Hawley Street",
street: "3 Rodeo Ave",
street2: null,
zipCode: "94621",
latitude: 37.7549632,
longitude: -122.1968792,
zipCode: "94965",
latitude: 37.86863,
longitude: -122.54015,
},
features: {
elevator: false,
Expand Down
12 changes: 6 additions & 6 deletions backend/core/src/seeder/seeds/listings/external-listings-seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ export const getExternalListingSeedData = () => {
},
],
buildingAddress: {
county: "Alameda",
county: "Santa Clara",
city: "Anytown",
street: "123 Sesame Street",
zipCode: "90210",
state: "CA",
latitude: 37.7549632,
longitude: -122.1968792,
latitude: 37.42797,
longitude: -122.159,
},
features: {
elevator: true,
Expand Down Expand Up @@ -169,13 +169,13 @@ export const getExternalListingSeedData = () => {
reservedCommunityType: null,
units: [],
buildingAddress: {
county: "Alameda",
county: "Sonoma",
city: "Anytown",
street: "123 Sesame Street",
zipCode: "90210",
state: "CA",
latitude: 37.7549632,
longitude: -122.1968792,
latitude: 38.31136,
longitude: -122.50595,
},
features: null,
utilities: null,
Expand Down
34 changes: 17 additions & 17 deletions backend/core/src/seeder/seeds/listings/listing-coliseum-seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ const coliseumListing: ListingSeedType = {
applicationOpenDate: getDate(-10),
applicationOrganization: "John Stewart Company",
applicationPickUpAddress: {
county: "Alameda",
city: "Oakland",
street: "1701 Martin Luther King Way",
zipCode: "94621",
county: "Marin",
city: "Sausalito",
street: "3 Rodeo Ave",
zipCode: "94965",
state: "CA",
latitude: 37.7549632,
longitude: -122.1968792,
latitude: 37.86863,
longitude: -122.54015,
},
accessibility:
"Fifteen (15) units are designed for residents with mobility impairments per HUD/U.F.A.S. guidelines with one (1) of these units further designed for residents with auditory or visual impairments. There are two (2) additional units with features for those with auditory or visual impairments. All the other units are adaptable. Accessible features in the property include: * 36” wide entries and doorways * Kitchens built to the accessibility standards of the California Building Code, including appliance controls and switch outlets within reach, and work surfaces and storage at accessible heights * Bathrooms built to the accessibility standards of the California Building Code, including grab bars, flexible shower spray hose, switch outlets within reach, and in-tub seats. * Closet rods and shelves at mobility height. * Window blinds/shades able to be used without grasping or twisting * Units for the Hearing & Visually Impaired will have a horn & strobe for fire alarm and a flashing light doorbell. The 44 non-ADA units are built to Adaptable standards.",
amenities: "Community room, bike parking, courtyard off the community room, 2nd floor courtyard.",
buildingAddress: {
county: "Alameda",
city: "Oakland",
street: "3300 Hawley Street",
zipCode: "94621",
county: "Marin",
city: "Sausalito",
street: "3 Rodeo Ave",
zipCode: "94965",
state: "CA",
latitude: 37.7549632,
longitude: -122.1968792,
latitude: 37.86863,
longitude: -122.54015,
},
buildingTotalUnits: 58,
developer: "Resources for Community Development",
Expand Down Expand Up @@ -104,13 +104,13 @@ const coliseumListing: ListingSeedType = {
disableUnitsAccordion: true,
displayWaitlistSize: false,
leasingAgentAddress: {
county: "Alameda",
city: "Oakland",
county: "Marin",
city: "Sausalito",
street: "1701 Martin Luther King Way",
zipCode: "94621",
zipCode: "94965",
state: "CA",
latitude: 37.7549632,
longitude: -122.1968792,
latitude: 37.86863,
longitude: -122.54015,
},
leasingAgentEmail: "coliseum@jsco.net",
leasingAgentName: "Leasing agent name",
Expand Down
36 changes: 18 additions & 18 deletions backend/core/src/seeder/seeds/listings/listing-triton-seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ const tritonListing: ListingSeedType = {
commonDigitalApplication: false,
paperApplication: false,
referralOpportunity: false,
countyCode: CountyCode.alameda,
countyCode: CountyCode.bay_area,
accessibility:
"Accessibility features in common areas like lobby – wheelchair ramps, wheelchair accessible bathrooms and elevators.",
amenities: "Gym, Clubhouse, Business Lounge, View Lounge, Pool, Spa",
buildingAddress: {
city: "Foster City",
county: "San Mateo",
city: "Fairfield",
county: "Solano",
state: "CA",
street: "55 Triton Park Lane",
zipCode: "94404",
latitude: 37.5658152,
longitude: -122.2704286,
street: "2550 Hilborn Rd",
zipCode: "94534",
latitude: 38.2780166,
longitude: -122.0540528,
},
buildingTotalUnits: 48,
developer: "Thompson Dorfman, LLC",
neighborhood: "Foster City",
neighborhood: "Fairfield",
petPolicy:
"Pets allowed except the following; pit bull, malamute, akita, rottweiler, doberman, staffordshire terrier, presa canario, chowchow, american bull dog, karelian bear dog, st bernard, german shepherd, husky, great dane, any hybrid or mixed breed of the aforementioned breeds. 50 pound weight limit. 2 pets per household limit. $500 pet deposit per pet. $60 pet rent per pet.",
servicesOffered: null,
Expand All @@ -46,12 +46,12 @@ const tritonListing: ListingSeedType = {
applicationOpenDate: getDate(-10),
applicationOrganization: "Triton",
applicationPickUpAddress: {
city: "Foster City",
city: "Fairfield",
state: "CA",
street: "55 Triton Park Lane",
zipCode: "94404",
latitude: 37.5658152,
longitude: -122.2704286,
street: "2550 Hilborn Rd",
zipCode: "94534",
latitude: 38.2780166,
longitude: -122.0540528,
},
images: [],
applicationPickUpAddressOfficeHours: null,
Expand All @@ -67,12 +67,12 @@ const tritonListing: ListingSeedType = {
disableUnitsAccordion: true,
displayWaitlistSize: false,
leasingAgentAddress: {
city: "Foster City",
city: "Fairfield",
state: "CA",
street: "55 Triton Park Lane",
zipCode: "94404",
latitude: 37.5658152,
longitude: -122.2704286,
street: "2550 Hilborn Rd",
zipCode: "94534",
latitude: 38.2780166,
longitude: -122.0540528,
},
leasingAgentEmail: "thetriton@legacypartners.com",
leasingAgentName: "Francis Santos",
Expand Down
32 changes: 16 additions & 16 deletions backend/core/src/seeder/seeds/listings/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ export const defaultListing: ListingSeedType = {
accessibility: "Custom accessibility text",
amenities: "Custom property amenities text",
buildingAddress: {
city: "San Francisco",
county: "San Francisco",
city: "San Ramon",
county: "Contra Costa",
state: "CA",
street: "548 Market Street",
street: "548 Market Place",
street2: "Suite #59930",
zipCode: "94104",
latitude: 37.789673,
longitude: -122.40151,
zipCode: "94583",
latitude: 37.763062,
longitude: -121.95328,
},
buildingTotalUnits: 100,
developer: "Developer",
Expand All @@ -175,13 +175,13 @@ export const defaultListing: ListingSeedType = {
applicationOpenDate: getDate(-10),
applicationOrganization: "Application Organization",
applicationPickUpAddress: {
city: "San Francisco",
city: "San Ramon",
state: "CA",
street: "548 Market Street",
street: "548 Market Place",
street2: "Suite #59930",
zipCode: "94104",
latitude: 37.789673,
longitude: -122.40151,
zipCode: "94583",
latitude: 37.763062,
longitude: -121.95328,
},
applicationPickUpAddressOfficeHours: "Custom pick up address office hours text",
buildingSelectionCriteria: "https://www.example.com",
Expand All @@ -194,13 +194,13 @@ export const defaultListing: ListingSeedType = {
displayWaitlistSize: false,
images: [],
leasingAgentAddress: {
city: "San Francisco",
city: "San Ramon",
state: "CA",
street: "548 Market Street",
street: "548 Market Place",
street2: "Suite #59930",
zipCode: "94104",
latitude: 37.789673,
longitude: -122.40151,
zipCode: "94583",
latitude: 37.763062,
longitude: -121.95328,
},
leasingAgentEmail: "hello@exygy.com",
leasingAgentName: "Leasing Agent Name",
Expand Down
2 changes: 1 addition & 1 deletion backend/core/test/lib/url_helper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ describe("listingUrlSlug", () => {
buildingAddress: listing.buildingAddress,
},
})
expect(slug).toEqual("archer_studios_98_archer_street_san_jose_ca")
expect(slug).toEqual("archer_studios_98_archer_place_dixon_ca")
})
})
32 changes: 16 additions & 16 deletions backend/core/test/utils/make-test-listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ export function makeTestListing(jurisdictionId: string): Omit<ListingCreateDto,
applicationMethods: [],
applicationPickUpAddress: {
placeName: null,
city: "San Francisco",
city: "San Ramon",
county: null,
state: "CA",
street: "548 Market Street",
street: "548 Market Place",
street2: "Suite #59930",
zipCode: "94104",
latitude: 37.789673,
longitude: -122.40151,
zipCode: "94583",
latitude: 37.763062,
longitude: -121.95328,
},
applicationDropOffAddress: null,
applicationMailingAddress: null,
Expand All @@ -73,14 +73,14 @@ export function makeTestListing(jurisdictionId: string): Omit<ListingCreateDto,
images: [],
leasingAgentAddress: {
placeName: null,
city: "San Francisco",
city: "San Ramon",
county: null,
state: "CA",
street: "548 Market Street",
street: "548 Market Place",
street2: "Suite #59930",
zipCode: "94104",
latitude: 37.789673,
longitude: -122.40151,
zipCode: "94583",
latitude: 37.763062,
longitude: -121.95328,
},
leasingAgents: [],
listingMultiselectQuestions: [],
Expand All @@ -91,14 +91,14 @@ export function makeTestListing(jurisdictionId: string): Omit<ListingCreateDto,
amenities: "Custom property amenities text",
buildingAddress: {
placeName: null,
city: "San Francisco",
county: "San Francisco",
city: "San Ramon",
county: "Contra Costa",
state: "CA",
street: "548 Market Street",
street: "548 Market Place",
street2: "Suite #59930",
zipCode: "94104",
latitude: 37.789673,
longitude: -122.40151,
zipCode: "94583",
latitude: 37.763062,
longitude: -121.95328,
},
buildingTotalUnits: 100,
developer: "Developer",
Expand Down
Loading

0 comments on commit 2e4c660

Please sign in to comment.