GithubHelp home page GithubHelp logo

simple-bug's Introduction

CI

SIMPLE-BUG

This Project is a pet project which is insipred by simp[le-bug-tracker as mentioned in reference

Set ups

  • To Set up MySQL Docker image
docker run -d -p 3306:3306 --name=simple-bug-db --env="MYSQL_ROOT_PASSWORD=root" --env="MYSQL_PASSWORD=root" --env="MYSQL_DATABASE=simple-bug" mysql
  • To Setup MySQL DB via docker compose
docker-compose -f docker/docker-mysql.yml up --remove-orphans
  • To Setup Sonar via docker compose
docker-compose -f docker/docker-sonar.yml up --remove-orphans
  • To backup sonar report run below command from project home directory
docker exec docker_db_1 /bin/bash -c "export PGPASSWORD=sonar && /usr/bin/pg_dump -U sonar sonar" > sonar-backup\backup.sql
  • To restore sonar report run below command from project home directory
# For Windows
type sonar-backup\backup.sql | docker exec -i docker_db_1 /bin/bash -c "export PGPASSWORD=sonar && /usr/bin/psql -U sonar sonar"
# For Linux
cat sonar-backup\backup.sql | docker exec -i docker_db_1 /bin/bash -c "export PGPASSWORD=sonar && /usr/bin/psql -U sonar sonar"
# To run Sonar scan make sure to get update from backup.sql and generate new one post scan 
mvn clean install sonar:sonar

References

Release Note

  • 2020.06.07
    • Removed the complete logic of updating Bug History table as it is error prone, need to find an alternative to get that fixed
    • Removed the support for multiLingual as need to find alternative of Using MessageSource along with ConfigurableProperties
    • Adding the logic to update existing bug and Junit around that to reach coverage of 28% as per Sonar
  • 2020.06.06
  • 2020.06.05
    • Updating JUnit and reached upto ~25% coverage as per Sonar
    • Add Endpoint to add Bug which is accessible to all type of user
  • 2020.06.02
    • Updating JUnit and reached upto 17% coverage as per Sonar
  • 2020.06.01
    • Updating JUnit
    • Earlier Jococo report was not getting scanned by Sonar, so updating the pom to achieve the same.
  • 2020.05.27
    • Use of MapStruct for mapping RO to EO
    • Use JPA inheritance to reduce no. of Database tables
  • 2020.05
    • Change in the version pattern, will use YYYY.MM and adding .DD for patch release
    • Leverage the new Secured annotation
    • Updating JUnit for UserController
  • 0.0.1-SNAPSHOT
    • Initial release

simple-bug's People

Contributors

hbothra15 avatar

Watchers

 avatar

simple-bug's Issues

Fix Sonar Issues

Severity Class name Line no Message
CRITICAL io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/controller/UserController.java 42 Replace this persistent entity with a simple POJO or DTO object.
MAJOR io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/controller/UserController.java 43 Replace this use of System.out or System.err by a logger.
CRITICAL io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/eo/User.java 77 Make "roles" transient or serializable.
MINOR io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/eo/User.java 36 Remove the 'NamedEntityGraphs' wrapper from this annotation group
CRITICAL io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/eo/User.java 40 Rename this class.
MAJOR io.github.hbothra:simple-bug-tracker:src/test/java/io/github/hbothra/simplebugtracker/repo/UserRepoTest.java 83 Swap these 2 arguments so they are in the correct order: expected value, actual value.
MAJOR io.github.hbothra:simple-bug-tracker:src/test/java/io/github/hbothra/simplebugtracker/repo/UserRepoTest.java 85 Swap these 2 arguments so they are in the correct order: expected value, actual value.
MAJOR io.github.hbothra:simple-bug-tracker:src/test/java/io/github/hbothra/simplebugtracker/repo/UserRepoTest.java 100 Swap these 2 arguments so they are in the correct order: expected value, actual value.
MINOR io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/service/UserDetailsImpl.java 27 Remove the declaration of thrown exception 'org.springframework.security.core.userdetails.UsernameNotFoundException' which is a runtime exception.
MINOR io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/service/UserDetailsImpl.java 35 Remove useless curly braces around statement
MINOR io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/eo/listener/BeanListener.java 14 Remove the declaration of thrown exception 'org.springframework.beans.BeansException' which is a runtime exception.
CRITICAL io.github.hbothra:simple-bug-tracker:src/main/java/io/github/hbothra/simplebugtracker/eo/listener/BeanListener.java 15 Make the enclosing method "static" or remove this set.
BLOCKER io.github.hbothra:simple-bug-tracker:src/test/java/io/github/hbothra/simplebugtracker/SimpleBugTrackerApplicationTests.java 12 Add at least one assertion to this test case.

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.