Open eswenson1 opened 1 year ago
Not all the features work from moving to Scala 3, I filed this bug: https://github.com/kyledinh/zio-petclinic-scala-3/issues/4 I'll look at this soon!
Turns out that the scala 2 version had the same issue for me. However, it is a browser-dependent issue. It doesn’t work in Firefox, but appears to work in Chrome — at least in the Scala 2 version — I haven’t tried this with Chrome yet in your Scala 3 fork.
I tried with Chrome and was able to added 3 new owners. I am getting an error, and I can't seem to seed the POST to create. I'll keep digging.
WHOA: Does NOT work on Firefox, CORS issues? I dunno.... (guess)
I checked the Postgres Database and the new owners were added:
*[issue-12-manual-fix][~/src/github.com/kyledinh/zio-petclinic-scala-3]$ make postgres-check
List of relations
Schema | Name | Type | Owner
--------+-------+-------+----------
public | owner | table | postgres
public | pet | table | postgres
public | vet | table | postgres
public | visit | table | postgres
(4 rows)
id | first_name | last_name | address | phone | email
--------------------------------------+------------+-----------+---------------------------------------------+------------------+---------------------------------
5ab7c340-0af3-4c26-a069-0844873f46cd | Marcus | Aurelius | 1 Birdwell Island, New York, NY | 212-215-1928 | marcus@rome.com
f2d65ae0-2973-4487-bcd3-46e2a1a14f6a | Sherlock | Holmes | 221B Baker St, London, England, UK | +44-20-7224-3688 | sherlock@sherlockholmes.com
f0361ad4-eb9e-4f7e-afaf-b3c43220edee | Fern | Arable | Arable Farm, Brooklin, ME | 207-711-1899 | fern@charlottesweb.com
199de740-a2a1-4b77-b357-775b8070659d | Elizabeth | Hunter | Ontario, Canada | 807-511-1918 | elizabeth@incrediblejourney.com
7cd0e144-224d-4e9f-b4f8-159d01a5420f | Peter | Hunter | Ontario, Canada | 807-511-1918 | peter@incrediblejourney.com
20c07037-67a8-4599-810d-0dae465e3433 | Timmion | Hunter | Ontario, Canada | 807-511-1918 | jim@incrediblejourney.com
15248da8-4d69-4baf-9047-3aba860ce416 | Harry | Potter | 4 Privet Drive, Little Whinging, Surrey, UK | +44-20-7224-3688 | harry@hogwarts.edu
f1277405-866b-40f1-8e3e-62b33cced855 | Jim | Arbuckle | 711 Maple St, Muncie, IN | 812-728-1945 | jon@garfield.com
bafd41e9-bee5-47b8-87c2-4e4f1aec2ba4 | Biblo | Baggs | 1 Hobbition. | 415-425-8888 | bilgo@baggs.com
18dd68c0-df31-41ee-b819-7a96b8c34c7b | New | Kid | 2 Pleaston | 415-898-9999 | new@kid.com
9be82489-16d4-4a31-ba6a-8487837a7913 | Koko | Beware | 2 Hampton. | 415-888-9999 | koko@beware.com
If you click the "Add Owner" button from the Owners page, you get a form to fill out. If you fill it out and press Save, the form disasppears, but the new owner doesn't show up in the list. In fact, it doesn't appear that a POST HTTP request is made to the backend at all.