Coder Social home page Coder Social logo

vertx-crud-example-redhat's People

Contributors

alrubinger avatar cescoffier avatar cmoulliard avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar edewit avatar gastaldi avatar hemanik avatar ladicek avatar pmlopes avatar rdruss avatar slavokrupa avatar spisiakm avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vertx-crud-example-redhat's Issues

JdbcProductStore - assumes name *and* stock are always sent

Looking at the code for JdbcProductStore (along with testing curl requests in documentation [1]) it is apparent that the assumption is that both name and stock will always be sent in (either PUT or POST). If stock is not included, then validation breaks. I would have assumed the following behavior:

  • for Create (POST) if just the name is included, the stock should be defaulted to 0
  • for Update (PUT) if just the name is included, either the fruit for the id is retrieved and the existing stock is used or just the name is updated for that id.

One question for Update is whether you can PUT just a stock quantity to the specific id. This would have a similar effect to just doing a PUT with name in that just the stock quantity is updated using either a fetch and update or just update strategy.

[1] https://appdev.openshift.io/docs/vertx-runtime.html#mission-crud-vertx section 3.3.6 Create and Update sections

Cannot run test.sh more than once without having to delete project first

Rodneys-MacBook-Pro:vertx-crud-booster-redhat rruss$ .openshiftio/test.sh 
imagestream.image.openshift.io "my-database" unchanged
deploymentconfig.apps.openshift.io "my-database" configured
service "my-database" unchanged
template.template.openshift.io "vertx-crud-booster" unchanged
--> Deploying template "myproject/vertx-crud-booster" to project myproject

     vertx-crud-booster
     ---------
     This template creates a Vert.x application intereacting with a database.

     * With parameters:
        * Source URL=https://github.com/openshiftio-vertx-boosters/vertx-crud-booster-redhat
        * Source Branch=master
        * Source Directory=.
        * GitHub Webhook Secret=***secret*** # generated

--> Creating resources ...
    error: imagestreams.image.openshift.io "crud-vertx" already exists
    error: imagestreams.image.openshift.io "runtime-crud-vertx" already exists
    error: buildconfigs.build.openshift.io "crud-vertx" already exists
    error: secrets "my-database-secret" already exists
    error: services "crud-vertx" already exists
    error: deploymentconfigs.apps.openshift.io "crud-vertx" already exists
    error: routes.route.openshift.io "crud-vertx" already exists
--> Failed

Changes needed to update RestAssured to 4.0.0

[ERROR] testCreatingWithNoPayload(io.openshift.example.OpenShiftIT)  Time elapsed: 5.916 s <<< ERROR!
java.lang.NoClassDefFoundError: org/hamcrest/Matchers
        at io.openshift.example.OpenShiftIT.testCreatingWithNoPayload(OpenShiftIT.java:150)
Caused by: java.lang.ClassNotFoundException: org.hamcrest.Matchers
        at io.openshift.example.OpenShiftIT.testCreatingWithNoPayload(OpenShiftIT.java:150)

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.