Coder Social home page Coder Social logo

zio-petclinic-scala-3's People

Contributors

adamgfraser avatar jdegoes avatar kitlangton avatar kyledinh avatar oliveiosello avatar thekojueffect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

zio-petclinic-scala-3's Issues

Fails to update Owner

Does not update owner with PATCH

    case req @ Method.PATCH -> !! / "owners" / id =>
      for {
        ownerId     <- parseOwnerId(id)
        updateOwner <- parseBody[UpdateOwner](req)
        _ <- service.update(
               ownerId,
               updateOwner.firstName,
               updateOwner.lastName,
               updateOwner.address,
               updateOwner.phone,
               updateOwner.email
             )
             ```

README.md instructions to start frontend don't work

README.md says:

Run the frontend in a separate Terminal 2

open http://localhost:3000
make frontend-up

However, the Makefile has this target:

frontend-up:
        @open http://localhost:3000
        @cd js-javascript && yarn exec vite

Note that the Makefile already includes the "open http://localhost:3000". However, this make target doesn't work because there is no js-javascript subdirectory. There is a js-frontend directory, however. The Makefile should be updated.

Fail to GET owner by uuid - Owner Detail Page

backend error parsing the Owner UUID from request:

backend[ERROR] [KQueueEventLoopGroup-2-7] INFO petclinic.server.ClinicServer.loggingMiddleware.$anon - Request: Request(Http_1_1, GET, URL(/owners/9e39f691-13f7-4dfa-b6ec-94bb2e0a1e97,Relative,Map(),None), Headers(Chunk((Host,localhost:8080),(Connection,keep-alive),(sec-ch-ua,"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"),(sec-ch-ua-mobile,?0),(User-Agent,Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36),(sec-ch-ua-platform,"macOS"),(Accept,*/*),(Origin,http://localhost:3000),(Sec-Fetch-Site,same-site),(Sec-Fetch-Mode,cors),(Sec-Fetch-Dest,empty),(Referer,http://localhost:3000/),(Accept-Encoding,gzip, deflate, br),(Accept-Language,en-US,en;q=0.9),(content-length,0))))
backend BEFORE parseOwnerID !!!!!!

fail-to-get-owner-by-id

Flyway does not do the initial migration

On a clean Postgres database, it fails to create the initial tables

sbt:pet-clinic> backend/reStart
[info] Stopping application backend (by killing the forked JVM) ...
backend ... finished with exit code 143
[info] Starting application backend in the background ...
backend Starting petclinic.Main.main()
[success] Total time: 2 s, completed Oct 21, 2022, 6:33:43 AM
backend[ERROR] [ZScheduler-Worker-4] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
backend[ERROR] [ZScheduler-Worker-4] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
backend RESETTING DATABASE!
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.license.VersionPrinter - Flyway Community Edition 9.4.0 by Redgate
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.license.VersionPrinter - See what's new here: https://flywaydb.org/documentation/learnmore/releaseNotes#9.4.0
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.license.VersionPrinter - 
backend[ERROR] [ZScheduler-4] INFO org.flywaydb.core.internal.database.base.BaseDatabaseType - Database: jdbc:postgresql://localhost:5432/postgres (PostgreSQL 14.5)

I got passes this when I originally worked on it, by manually running the 2 sqls in backend/src/main/resources/db/migration/V1_*.sql

Need to fix so it will do the initial migration.

The Add Owner functionality doesn't work

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.