GithubHelp home page GithubHelp logo

durex's People

Contributors

qigao avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hehongwei1026

durex's Issues

apply env vars

set env vars from dotEnv for test task is not working

Introduce public jooq

I as a developer, want to use a public jooq config for both reactive and imperative programming
when a public config is provided
then any repo like crud ops will use this with proper config

introduce spotbug

I as a system designer, wanna check potential bugs without ide or sonar
given the gradle building system
when running check
then it will print potential bug before submitting code

introduce redisson

I as a system designer, wanna leverage redis in future development
then some redis examples should be introduced

scenario 1: redis service
scenario 2: redis example for web app

separate db config file

I as a developer
when updating db config, i want a separate db config file
then i can use it as usual

processing large json/csv file

processing large json/csv file should be carefully as it will needs lots of mem and time,

  • generating large json (10k,100k,1000k,10M)
  • Ser/De
  • add unit test
  • benchmarking(jmh?)

find node from json string

look into the json string below, we only need the text part

{
	"widget": {
		"debug": "on",
		"window": {
			"title": "Sample Konfabulator Widget",
			"name": "main_window",
			"width": 500,
			"height": 500
		},
		"image": {
			"src": "Images/Sun.png",
			"name": "sun1",
			"hOffset": 250,
			"vOffset": 250,
			"alignment": "center"
		},
		"text": {
			"data": "Click Here",
			"size": 36,
			"style": "bold",
			"name": "text1",
			"hOffset": 250,
			"vOffset": 100,
			"alignment": "center",
			"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
		},
		"div": [
			{
				"width": 20,
				"height": 30,
				"id": "dev01",
				"name": "avatar01"
			},
			{
				"width": 20,
				"height": 30,
				"id": "dev02",
				"name": "avatar02"
			},
			{
				"width": 20,
				"height": 30,
				"id": "dev03",
				"name": "avatar03"
			}
		]
	}
}

Add reactive responses to exception handler

I as a reactive service wanna return reactive exception response

When an exception was throwed
Then the handler should return a uni
Scenario 1:
reactive exeption response in a reactive app
Scenario 2:
imperative exceptin response in a imperative app

introduce r2dbc

I as a designer, want to implement reactive sql crud operations
given we already implemented sql lib by jooq
then I should use the reactive feature of jooq to implement them

config.properties for datasource

quarkus uses Argol as datasource connection pool, while we're trying integrate jooq and hikari, so we need to load datasource config from property file
dotEnv should be supported

Interceptor will block reactive endpoints

I as a developer wanna implement reactive endpoint
when applied RequestInteceptor from jakarta-utils
then quarkus will not boot with an error hints, having block io

generating test report without running test

Sat, 23 Oct 2021 08:16:32 GMT

Sat, 23 Oct 2021 08:16:32 GMT
> Task :springboot:rest-assured:test
Sat, 23 Oct 2021 08:16:32 GMT

Sat, 23 Oct 2021 08:16:32 GMT
BookTest > testEqualsBook() PASSED
Sat, 23 Oct 2021 08:16:49 GMT

Sat, 23 Oct 2021 08:16:49 GMT
BookApplicationTest > shouldCreateBook() PASSED
Sat, 23 Oct 2021 08:16:49 GMT

Sat, 23 Oct 2021 08:16:49 GMT
BookServiceTest > Get 1 book when BookService has books PASSED
Sat, 23 Oct 2021 08:16:49 GMT

Sat, 23 Oct 2021 08:16:49 GMT
BookServiceTest > Get book not exists PASSED
Sat, 23 Oct 2021 08:16:49 GMT

Sat, 23 Oct 2021 08:16:49 GMT
BookServiceTest > Get 1 book when BookService has no books PASSED
Sat, 23 Oct 2021 08:16:50 GMT

Sat, 23 Oct 2021 08:16:50 GMT
BookControllerTest > shouldAllowBookRetrievalWithoutAuthenticationShort() PASSED
Sat, 23 Oct 2021 08:16:50 GMT

Sat, 23 Oct 2021 08:16:50 GMT
BookControllerTest > shouldAllowBookRetrievalWithoutAuthentication() PASSED
Sat, 23 Oct 2021 08:16:50 GMT

Sat, 23 Oct 2021 08:16:50 GMT
BookControllerTest > shouldBlockBookCreationForNonAdminUsers() PASSED
Sat, 23 Oct 2021 08:16:50 GMT

Sat, 23 Oct 2021 08:16:50 GMT
BookControllerTest > shouldAllowBookCreationForAuthenticatedAdminUsers() PASSED
Sat, 23 Oct 2021 08:16:51 GMT
2021-10-23 08:16:51.017  INFO 2198 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
Sat, 23 Oct 2021 08:16:51 GMT
2021-10-23 08:16:51.018  INFO 2198 --- [ionShutdownHook] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
Sat, 23 Oct 2021 08:16:51 GMT
2021-10-23 08:16:51.037  INFO 2198 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
Sat, 23 Oct 2021 08:16:51 GMT
2021-10-23 08:16:51.046  INFO 2198 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
Sat, 23 Oct 2021 08:16:52 GMT

Sat, 23 Oct 2021 08:16:52 GMT
> Task :springboot:rest-assured:jacocoTestReport

refactor sql by jooq

already tried varies method, either of them works ideas

  1. blaze query , failed to work for native build
  2. querydsl , lombok issues, no plugin in universe,maybe try it later
  3. jpa , not so flexable

will try jooq as it can also work for native build
as the no-sql or other query like elastic search, should be used in spring when needed

introduce reactive example

I as a developer, wanna a reactive example
when reading/writing data to music, all the code should be reactive

clear test case log msg

I as a developer, wanna make the error info and log more clear and readable
when something happened, we'll know it clearly
Scenario 1:
when an exception occured,
then a log it triggered should have the reason

Scenario 2:
when a function or method goes smoothly,
then we can find the info and what it has done

jacoco coverage for IT

jacoco coverage excluded entity dir from unit test, and turn to real db(from docker) for db testing in Integration test, this should be calculated, and the coverage may not necessary set to 1.0(maybe 0.85?), as real db testing for exception is really annoying

integration test issue

  • Quarkus integration test runs after unit test each time, should be run separately
  • separate test needs separate profile
  • spring boot apps

introduce cucumber

I AS a develop, need a sketelon cucumber demo
when an api is finished
then need to test the endpoint

drop sonarqube

a wasting of time and effort as we already has jacoco

introduce cache capability

I as a system designer,wanna cache a lot of data to accelarating response speed.
given a query or objects need further process during the runtime of a process,
a bunch of data was generated, it may bring trouble when processing need more
resources and/or time, we need to cache the data to fasted the speed
Scenario 1:
when data is stored in remote systems like database or cloud services
then data should be pulled to local to accelarte the speed

Scenario 2:
when data is too big or too complex and will need lots of time for pre/pos process,
then data or middle data of some process should have these data cached to reduce the process time

Scenario 3:
when aggerageting some data
then we should cache them to make the process more easy

introduce workflow for CI

as this is a multi-module project, we should have templates for varies tasks, also each module can use these templates too.
templates should include these(not limited):

  • build module
  • test/integration test
  • sonar check

split toml into 3 files

for now, only versions.toml is used, better to split it into 3 files:
libs.version.toml -> libs
testlibs.version.toml ->test libs
gradlelibs.version.toml -> gradle related

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.