Git Product home page Git Product logo

iflux-server-node's People

Contributors

prevole avatar wasadigi avatar

Watchers

 avatar  avatar  avatar  avatar

iflux-server-node's Issues

Deleted/Disabled rule is still evaluated

It's seems that sometimes deleted rules are still evaluated by the rule engine.

Enable /Disabled rule are probably impacted.

To reproduce

  1. Create rule (was ID 42)
  2. Generate event that match the rule
  3. Deleted the rule (Should be a success. Rule doesn't not appear on the API)
  4. Generate same event as 2)

Expected : Rule is NOT evaluated
What happen : Rule IS evaluated

Name unique constraint are global

Currently, there is no proper handling of the unique constraint with the names of the different models.

There is no scoping involved in the unique constraint checks where it should be the case.

Rule evaluation testing

Make an API to be able to validate a rule with an event. This will enforce how a rule is evaluated and which transformations are applied.

Scoping issue for event source template

Private event source template created :

{
  "id": 4,
  "name": "novaserver",
  "public": false,
  "organizationId": 5
}

GET eventSourceTemplates/4

--> Possible to retrieve event source tempalte

GET eventSourceTemplates/organizationId=5

--> Possible to retrieve event source template

GET eventSourceTemplates

-> Event source template does not appear on the collection

User used is part of the organization.

ElasticSearch match event not saved with multiple ID fields in the data structure.

Investigate why the event is saved when the matched event is not saved.

{ [Error: MapperParsingException[failed to parse [rule.conditions.eventType]]; nested: ElasticsearchIllegalArgumentException[unknown property [id]]; ]
  status: '400',
  message: 'MapperParsingException[failed to parse [rule.conditions.eventType]]; nested: ElasticsearchIllegalArgumentException[unknown property [id]]; ' }

Maybe there is a limitation on the name ID multiple times present in the data.

Remove the EventType condition in the transformations

This modification will simplify the understanding of the system.

Without this condition, any transformation configured in a rule will be applied. Then, we should ensure the evaluation for the transformation of an event to the action body will not break the rule evaluation.

Event type and action type schemas are mandatory

For the moment, the schemas are mandatory even if a valid schema URL is provided.

The schema attribute should be mandatory only if the URL is not reachable or the URL is not a valid JSON Schema.

In fact, if the URL is a valid Schema, it should be downloaded and set to the event/action type schema.

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.