Giter Site home page Giter Site logo

parleycl / earltea Goto Github PK

View Code? Open in Web Editor NEW
8.0 7.0 0.0 14.94 MB

EARLGREY. A Lightweight Java Services Framework inspired in Sails.js, ROR & Looback for quick develop of apps. Java for Sails.js and ROR Developers

License: MIT License

Java 53.56% Shell 0.03% TypeScript 25.43% JavaScript 1.01% HTML 11.65% CSS 8.32%
java java-language service-architecture framework earl-grey api-framework

earltea's Introduction

tea love

A Lightweight Java Services Framework inspired in Nodejs Express, Sails.js & Phalcon PHP and Loopback for quick develop of apps based in client server architecture. Build apps with frontend frameworks like Angular, React and Vue.js. Code and build faster and leave the machine's work to machines.

Why Earlgrey?

One day, Earlgrey born of the need to develop code and apps in java quickly. The java language and their frameworks, needs a lot of time and dependencies to make a little aplication that provide a RESTful API. In adition sometimes the dependencies generate conflicts and other own problems of apps container, make JAVA in not a great solution for quicks apps, smalls or hackaton sessions, or any project that you needs with agile coding, where you need a develop enviroment in less 5 minutes with real results, without a great knowllege about the language.

Also, the low standardization of coding rules and multiple styles using by the java developers to make web apps, in a large project maybe can generate a great problem, if don't have a structure where a good practice of coding are apply.

Earlgrey is proposed like a solution to enhanced the developer experience making apps thats use the services architecture and the client-server architecture. With Earlgrey, you can develop an Restful API in less 5 minutes with a lot of posibilities embed in the framework like ORM, Cache, Sessions, Hot Configuratios, Admin Console, Realtime logs in a web platform, etc.

Earlgrey is designed thinking in the simplicity. Each feature was born from needs of a group of developers, that needed write quickly apps in java language with a strong base that allow deploy this apps in a apps container without matter which. Each feature was design with love thinking in the coding simplicity, we want you write less code to make great results with and friendly and beatifull coding form.

The framework propose two principles used to make this possible.

  • The first is "One Framework", no matter what you use to deploy your app, the same code works in all them. if you use a app container like JBOSS, Tomcat, Weblogic, GlassFish, it's ok you can use anyone with the same code. If you decide use the server embeded in earlgrey, you can use with the same code.

  • The second is "LTMWTM" or "Let the machine's work to machines". We are obsessed with write less code, bringing part of responsibility to machine, executing automatically multiple tasks, that assist to developer in the deveping work. A lot of functions of mapping and reflection of the code provide a great admin console, when the developer can configure and extend the functions of app, with realtime functions, Hot reloading properties, etc. Also Earlgrey core provide a lot of functions to write faster API's with Database interations, using "Models with blueprints", providing a function similar to "Loopback" of IBM, using a Model oriented architecture.

Earlgrey is good to use in any type of proyect, but it's perfect to use in any small or quick project oriented to services. Earlgrey it's a great solution to use in adition with Angular, React or Vue.js when you need a API to communicate Backend with Frontend. It's a secret but Earlgrey originally was made to use with apps build in Angular and React, when we need the frontend and backend in only one "WAR or EAR" packet.

Try Earlgrey, and brew the new JAVA revolution.

Compilation and distribution

To compile and package this project you need to use Maven Apache Maven.

Installing Apache Maven

  • Linux Debian Distribution

    $ sudo apt-get install mvn
  • Linux Redhat Distribution

    $ sudo yum install mvn

Compiling and Packaging Earlgrey

mvn clean package

Compiling Console

Ealgrey use a admin console to control and configurating the operation of the framework like a subsystem. This console is built in Angular using Angular-seed and is inyected in the jar while maven made the packet. To do this posible, We need compile the console, but sometimes only it's necesary the first time when the console no have a changes in his functionallity. To build the Earlgrey with the console use this command.

mvn clean package -P console

Get Started

To use Earlgrey only you need import the jar to your web project and start the Earlgrey Kernel in a Servlet listener in the contextInitialized event. The Earlgrey System automatically read the project structure and load the Earlgrey structures to implement a lightweight system based on services architecture with an admin console with hot configuration options.

@WebListener
public class Testapp implements ServletContextListener, ServletRequestListener {
	/**
     * @see ServletContextListener#contextInitialized(ServletContextEvent)
     */
    public void contextInitialized(ServletContextEvent arg0)  { 
    	  Ealgrey earlgrey = new Ealgrey(arg0.getServletContext());
    }
}

Ealgrey Controllers

Write a controllers and API endpoints it's really easy with Earlgrey. Only you need put the controller class in a package you choose, extends the ControllerBase class. Aditional you must add the "Controller" annotation. Earlgrey System automatically recognize the controllers and map them to use in the app. To declare an Controller you need put the description, name and versiΓ³n of this controller. An example of this can be.

@Controller(description = "A test of Controller", name = "HelloWorld", version = 1)
public class HelloWorld extends ControllerBase {
	/**
     * The controller actions are code here
     */
}

The controllers have an options to extend his behaviors like Routes, Cache, UserCache, Policies, Properties, etc. If you wan't to define a context route for this endpoint only you need to use the annotation @Route like this.

@Controller(description = "A test of Controller", name = "HelloWorld", version = 1)
@Route(route = "/hello")
public class HelloWorld extends ControllerBase {
	/**
     * The controller actions are code here
     */
}

Controller actions and routing.

In this case, the controllers Actions are the way to write endpoint actions or anything you needs. To define a controller action you need declare a @ControllerAction annotation in a public static method defined into controller. Earlgrey automatically recognize the action and map them. This method receive two parameters to handle any http request and response. An example of this can be.

@Controller(description = "A test of Controller", name = "HelloWorld", version = 1)
@Route(route = "/hello")
public class HelloWorld extends ControllerBase {
    
    @ControllerAction(description = "A test action to write hello world", name = "Test", version = 1)
    public static void test(HttpRequest req, HttpResponse res) {
        System.out.println("Hello world");
        return;
    }
}

Route a Controller Action

You can add diferents options to define and endpoint. All RESTFul operations are soported, and you can use like an annotation. Also you can define a Route for this endpoint with @Route annotation like the controllers. The actions support multiple HTTP methods declaration, but it's not recomended following the semantic API guidelines. An example of this can be.

@Controller(description = "A test of Controller", name = "HelloWorld", version = 1)
@Route(route = "/hello")
public class HelloWorld extends ControllerBase {
    
    @ControllerAction(description = "A test action to write hello world", name = "Test", version = 1)
    @Route(route = "/world")
    @GET
    public static void test(HttpRequest req, HttpResponse res) {
        System.out.println("Hello world");
        res.ok();
        return;
    }
}

This definition make automatically an endpoint, following the next definition.

[http/https]://[HOST]:[PORT]/CONTEXT/api/[CONTEXT ENDPOINT]/[ACTION ROUTE]

For the test controller action the url is defined by.

[http/https]://[HOST]:[PORT]/CONTEXT/api/hello/world

Restful methods soported

The next HTTP method are supported in Earlgrey. If your application container not support a method, not problem buddy, Earlgrey bypass the application server and bring support to your app to use this method following the RESTful guidelines defined in Restfull Cookbook

  • POST (@POST)
  • PUT (@PUT)
  • GET (@GET)
  • PATCH (@PATCH)
  • DELETE (@DELETE)
  • OPTIONS (@OPTIONS)

Cache Support

Ealrgrey support cache for the controller actions in two levels, The cache can be general using the @Cache Annotation or by User using the @UserCache annotation. The general cache is a global cache for all users, while the UserCache is a cache for each user that make petitions to system, normally with diferentns results by user. Both ways define the lifetime of cache; When the lifetime are cero, Earlgrey automatically remove the register of cache memory. If the cache is not set, in the first request of client made, the cache will the take the result of petition and save into the memory. the next petitions take the result of the cache memory, enhancing the speed of response.

The way to use the cache are the next for global cache.

@Controller(description = "A test of Controller", name = "HelloWorld", version = 1)
@Route(route = "/hello")
public class HelloWorld extends ControllerBase {
    
    @ControllerAction(description = "A test action to write hello world", name = "Test", version = 1)
    @Route(route = "/world")
    @GET
    @Cache(time = 3600) // Time in seconds
    public static void test(HttpRequest req, HttpResponse res) {
        System.out.println("Hello world");
        res.ok();
        return;
    }
}

The way to use the cache are the next for user cache.

@Controller(description = "A test of Controller", name = "HelloWorld", version = 1)
@Route(route = "/hello")
public class HelloWorld extends ControllerBase {
    
    @ControllerAction(description = "A test action to write hello world", name = "Test", version = 1)
    @Route(route = "/world")
    @GET
    @UserCache(time = 3600) // Time in seconds
    public static void test(HttpRequest req, HttpResponse res) {
        System.out.println("Hello world");
        res.ok();
        return;
    }
}

Earlgrey ORM Functions.

Earlgrey implement a lightweight ORM to operate with databases in a common way. This ORM works based on Models definitions in the code write by the apps developers. Earlgrey recognize the models and map them to interact with the controllers and the configuration console. You can define Blueprints Models that implement the CRUD operations in the REST API based only in the model. The ORM provide a powerfull function set to operate with the database, with a custom querys, transaction suport and multi tenancy.

Datasbase Suport

  • Mysql
  • Oracle
  • Postgres

Model Declaration

To DO

Blueprint Model

To DO

ORM Operations

To DO

Ealgrey Console

To admin Earlgrey, you only need a web browser. Earlgrey provide a Admin interface to config the main posibilities. In this console you can config the properties, controllers, models, routes, view the logs, config the custer configuration and everything you needs to generate a great app.

To access to the console only put in your web browser the next url.

[http/https]://[HOST]:[PORT]/CONTEXT/console/

If your first time use this credentials:

Username: admin
Password: earlgrey

For example, if you need access to the console with a www.test.com domain in the 8080 port, with the testapp context, without a ssl connection, the url should be.

http://www.test.com:8080/testapp/console/

If your app run on the 80 port, you can skip the port. An example should be.

http://www.test.com/testapp/console/

Earlgrey Seed

Use Earlgrey is simple with the common archetype developed by us. Only you need code your controller and models to make quickly a strongs API's, based on REST Arquitecture. Earlgrey provide a RESTFul support, and the posibility to write Blueprints Models to get the CRUD operations with a minimal coding operations. Also you can extend the archetype to build a large projects in java technology with types, custom errors and policies, and a lot of operations in the earlgrey console.

Visit Earlgrey Seed to more information.

Earlgrey CLI

Visit Earlgrey CLI to more information.

Contributors

Thanks to all beautiful people than make be possible this project


Sebastian Gonzalez V.

πŸ“– πŸ’»

Pablo Jeldres

πŸ’» πŸ›

David Silva

πŸ› πŸ’»

Pablo cornejo V.

πŸ’»

Made with β™₯ in Chile by all us.

LICENSE

MIT

earltea's People

Contributors

acalvoa avatar dsilvap avatar pjeldres avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

earltea's Issues

Models with blueprints

Earlgrey can be add blueprints model

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Delete and update functionality

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

When using EarlGrey, the delete and update methods do not delete and update.

Expected behavior

When using EarlGrey, the delete and update methods do delete and update.

Minimal reproduction of the problem with instructions

1.- Declare a ModelCore-extended model class.
2.- Set an identifier for the class.
3.- Call the delete / update method.

What is the motivation / use case for changing the behavior?

To be able to delete and update data.

Please tell us about your environment:

Null in package and classes mapping

Occurs a problem when the resource mapping do the classes and packages mapping

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Allow content-type 'application/json'

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request

Current behavior

EarlGrey supports 'application/x-www-form-urlencoded', but not 'application/json'.

Expected behavior

EarlGrey supports API calls using 'application/json' content type.

Minimal reproduction of the problem with instructions

1.- Create an API controller using EarlGrey.
2.- Set 'application/json' content type in a REST Client (eg. Insomnia, Postman).
3.- Invoke the API.

What is the motivation / use case for changing the behavior?

To be able to invoke EarlGrey APIs using 'application/json' content type.

Please tell us about your environment:

Debian 9,
no IDE,
Apache Maven 3.3.9,
GNU Make 4.1,
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1).

Compiling console lacking module

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

When packaging EarlGrey with the "-P console" flag, compiler throws a "cannot find module" error for "./logs/logs.component".
Expected behavior

EarlGrey would compile with console support.
Minimal reproduction of the problem with instructions

1.- Run the command "mvn clean package -P console"
What is the motivation / use case for changing the behavior?

Trying to build EarlGrey with console support.
Please tell us about your environment:

Debian 9,
no IDE,
Apache Maven 3.3.9,
GNU Make 4.1,
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1).

Modify BadRequest to add error message

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Open connections on insert() ModelCore

I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

When call many times insert function, the connections continue open and show error no have free conector.

Expected behavior

Can insert and close open conection.

Minimal reproduction of the problem with instructions

  1. Call insert function many times.
  2. See error in console log.

What is the motivation / use case for changing the behavior?

Develop an API.

Please tell us about your environment:

Ubuntu 17.10
Google chrome 54.0.2840.71 (64-bit)
Java (build 1.8.0_65-b17)
JBoss EAP 6.4.0

Cors auto generated when no are an action route with options

The Cors annotation need send options request with the http verb allowed to the route when the option path is not defined

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Patch method in the properties change is not allowed

The properties change method in the proerties sections contain a POST method.

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

The actions can't be perform because obtin a 404 error.

Expected behavior

The method implemented in the console should be a Patch method, to consume the patch method defined in earlgrey.

Add models section in console

Add the models section in console admin

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Context api

When context of application is api earlgrey goes crazy

crazy

Translate to english

Translate all console text to English. It's really strange see English and Spanish in the same place.

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Annotation PATCH cant decode params

I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

The bug manifest when try to pass parameters in PATH API.

Expected behavior

The behavior would be without the bug that paramaters can be decoded.

Minimal reproduction of the problem with instructions

  1. Create PATH API.
  2. Pass any params.
  3. Print params in console log.
  4. See params without decode.

What is the motivation / use case for changing the behavior?

Develop API.

Please tell us about your environment:

Ubuntu 17.10
Google chrome 54.0.2840.71 (64-bit)
Java (build 1.8.0_65-b17)
JBoss EAP 6.4.0

Add JSONObject custom response

Add the method customResponse(JSONObject, int code) to the interface and object res.

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Backup and Load configuration need work

We need use this request

  • Backup
  • Load configuration
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Cache the controller actions

The controller action must be the posibility to cache the result in seconds.
Also should can Cache the petition by user.

Problem with the router

**I'm submitting a ** (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior
the router blocks the routes that start with the same name

Expected behavior
the router allow both routes

Minimal reproduction of the problem with instructions
this Route:

@Model(name = "Campanas", tableName = "scm_cpg_main", version = 1)
@Route(route = "campaigns")

block this:

@ControllerAction(description = "Accion para recibir ingresos de una campana", name = "campaignIncome", version = 1)
	@GET
	@ParamOptional(defaultsTo = "", name = "init_date")
	@ParamOptional(defaultsTo = "", name = "finish_date")
	@Route(route = "campaigns/:id_cpg/incomes", ignorePath = true)

What is the motivation / use case for changing the behavior?
improve the framework

Config console section

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Add console login

The admin panel needs a session login

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Fix the Slash in actions without route

When the controller route have an slash and the controller action not have a route is not accesible

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

The config have fatal error when update the previus configuration

The config throws an error in the load of config file when try to load the config object and datasource object.

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Cache not work

Cache save the petition but not is load from memory

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Fix the getheaders

Get header is not work

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

JWT support

We need a JWT support to manage tokens in headers for mantain user sessions

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Add Controllers in console

Add the controller section in console

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Add console routes sections

Add the routes in the console admin.

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

build.xml

Creo que no subiste a master el build.xml xD

Por quΓ© nos e ve en la interfaz? πŸ€”
imagen

Error in getParam function

I'm submitting a ...

[] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior
the algorithm throw a error when the value expected is a String

Expected behavior
the algorithm must parser to string the value

Caused by:

String idExecutive = req.getParam("id_executive");
org.json.JSONException: JSONObject["id_executive"] not a string.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:
ubuntu 18, eclipse Photon Release (4.8.0), wildFly 14, HTTP server,

Error: "Not have free connector. Delaying execution"

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

When ModelCore model.find().count() is called more than Database Pool is configurated, the console shows "Not have free connector. Delaying execution".

Expected behavior

The behavior would be that the conections closes after execute model.find().count()

Minimal reproduction of the problem with instructions

  1. Use model.find().count()
  2. Call this line more than Database pool is configurated.
  3. Show error in Jboss console.

What is the motivation / use case for changing the behavior?

Implement GET API with IN parameter and validate if database register exist before query.

Please tell us about your environment:

Ubuntu 17.10
Google chrome 54.0.2840.71 (64-bit)
Java (build 1.8.0_65-b17)
JBoss EAP 6.4.0

Error: find().getOneJSON() if IN parameter not exist

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

When execute find().getOneJSON() with IN parameter and not exist, error "JSONArray[0] not found".
Expected behavior

The behavior would be return an Empty JSONObject without error.
Minimal reproduction of the problem with instructions

  1. Use model.find().getOneJSON().
  2. Pass parameter with no results.
  3. See error.
    What is the motivation / use case for changing the behavior?

The motivation is get a register from Database
Please tell us about your environment:

Ubuntu 17.10
Google chrome 54.0.2840.71 (64-bit)
Java (build 1.8.0_65-b17)
JBoss EAP 6.4.0

Different verbs overwrite routes

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

When declaring a route with different verbs (eg. GET /foo and POST /foo), the route gets overwritten by the last declared route. Both routes get mapped, so in the end the GET /foo will answer the POST /foo response.
Expected behavior

Both routes are mapped and the current verb answers the correct response.
Minimal reproduction of the problem with instructions

STEPS TO REPRODUCE:
1.- Create a controller
2.- Map a method to a route (eg. /foo) using a verb (eg. GET)
3.- Map another method to the same route (eg. /foo) using a different verb (eg. POST)
4.- Deploy and access the route using the first mapping (eg. GET)
What is the motivation / use case for changing the behavior?

To be able to map different verbs to the same route (eg. GET and POST /foo).
Please tell us about your environment:

Debian 9,
no IDE,
Apache Maven 3.3.9,
GNU Make 4.1,
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1).

Earlgrey boot

Earlgrey can be boot from a java single project.

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Add config type propertie

The system need a config propertie type that no depend of enviroment selection.

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request

Annotation @DELETE causes 404 error

Annotation @delete causes 404 error

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

The bug manifest when API is tested with DELETE annotation in Controller.

Expected behavior

The behavior would be that API URL can be recognize with DELETE.

Minimal reproduction of the problem with instructions

  1. Create a method in Controller
  2. Add annotation @delete.
  3. Add Route that you Like.
  4. Test in your prefer rest client.

What is the motivation / use case for changing the behavior?

The motivation is can use annotation DELETE on Controller.

Please tell us about your environment:

Ubuntu 17.10
Google chrome 54.0.2840.71 (64-bit)
Java (build 1.8.0_65-b17)
JBoss EAP 6.4.0

Allow Routes in blank

Earlgrey will support blank routes when the main route is defined.

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Add console users in console

Earlgrey console can be add new users

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

ORM function bug in where clause call to database

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Function parse support for "between" call with string parameters

Add {{ Function }} nomenclature to the regex expression

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Current behavior

Expected behavior

The function supplied would be parsed and the resulting value would be compared.

Minimal reproduction of the problem with instructions

modelInstance.between("DATE_COLUMN", "TO_DATE('"+from+"','DD/MM/YYYY')", "TO_DATE('"+to+"','DD/MM/YYYY')");

What is the motivation / use case for changing the behavior?

To be able to pass a date convertion to a between call.

Please tell us about your environment:

Datasource creation problems

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

The datasource cannot be created from Properties section in the console.
Expected behavior

The property section allows to create datasource
Minimal reproduction of the problem with instructions

  1. Go to property section.
  2. Click in "edit environment" action.
  3. Click in running option.
  4. Set datasource properties.
  5. Click in "Agregar" button.

What is the motivation / use case for changing the behavior?

To be able to create datasource.
Please tell us about your environment:

Ubuntu 17.10
Google chrome 54.0.2840.71 (64-bit)
Java (build 1.8.0_65-b17)
JBoss EAP 6.4.0

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.