Git Product home page Git Product logo

videoshop's People

Contributors

dschoenicke avatar hamannm avatar marckandler avatar martinmo avatar mheider avatar nitwel avatar odrotbohm avatar philippmatthes avatar s-schwarz avatar schauder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

videoshop's Issues

Turn Basket into Cart

The more commonly used term to what we currently describe as Basket is called Cart. Salespoint 6 RC1 will have it's API changed to accommodate this scenario so we should align our wording accordingly.

Improve design of customer management

The customer management should be improved:

  • Create a dedicated package for all customer management related functionality
  • Extract logic of UserAccount creation and customer creation into a transactional service (currently the logic in ShopController.registerNew(โ€ฆ) consists of two steps and is not transactional).
  • Turn RegistrationForm into a domain type.
  • Extract dedicated controller and expose functionality in a more idiomatic way.

Test cases named Abstract... should be abstract classes

Test cases in Videoshop are named Abstract but aren't abstract classes, actually. The Surefire plugin is configured to skip these in a Maven build but running the test cases in the IDE will cause errors. The classes should be made abstract.

Temporarily add @EnableGlobalMethodSecurity(prePostEnabled = true) until upgrade to Salespoint 6.0 GA

Current Salespoint (6.0 RC1) doesn't have @EnableGlobalMethodSecurity(prePostEnabled = true) activated (as we just discovered in the lecture today). There's already a ticket for that in Salespoint which will be resolved for the 6.0 GA release. To keep the VideoShop working in the meantime we should temporarily add the annotation to the configuration to make sure the security constraints defined on the controllers are actually evaluated.

Exception evaluating SpringEL expression: "basket.price" (basket:52)

If i add a BlueRay to the basket and open the basket i get the following error:

org.thymeleaf.TemplateEngine:1085 - [THYMELEAF][http-nio-8080-exec-6] Exception processing template "basket": Exception evaluating SpringEL expression: "basket.price" (basket:52)

cat].[localhost].[/].[dispatcherServlet]: 182 - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "basket.price" (basket:52)] with root cause
org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 7): Property or field 'price' cannot be found on object of type 'org.salespointframework.order.Basket' - maybe not public?

saving Entitys result in HSQL: right truncation

Downgrading the hsql dependency to, e.g. 2.2.9 will fix this problem, but with the newest version 2.3.3 you have the problem described below:

Steps for reproducing:
Adding a field and corresponding getter & setter, e.g. in the Disk class:

private int fsk;

Adding a request-Mapping in Catalogcontroller:

@RequestMapping(value = "/fsk", method = RequestMethod.POST)
public String comment(@RequestParam("pid") Disc disc, @RequestParam("fsk") int fsk) {
        disc.setFsk(fsk);
        videoCatalog.save(disc);
        return "redirect:detail/" + disc.getIdentifier();
}

The .save Operation will throw a org.hsqldb.HsqlException: data exception: string data, right truncation Error.

Errors in readme

Some sections in "videoshop/readme.adoc" refer to the guestbook-tutorial, I guess they were just copy-pasted there.

Rename orderline to cartitem in carth.html

We're still using the variable name orderline in cart.html which seems to cause confusion about the type of the items held in Cart. We should rename the variable to item to reflect it not being related to OrderLines in the first place.

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.