Coder Social home page Coder Social logo

arena-core's People

Contributors

gh-action-bump-version avatar minotogna avatar ramirobg94 avatar sorja avatar stericcio avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arena-core's Issues

Publish package

set up publish package procedure and add instructions to the README

datetimeISO = `yyyy-MM-dd'T'HH:mm:ss.SSS'Z'`, not working well

seems that there is a bug with the timezone and the iso date at the date-fns, this si crucial as these values are stored in the nodes and records. When some dateModified or dateCreated is created there is a bug and the time appears with a wrong timezone.

Captura de pantalla 2023-07-22 a las 12 17 11 Captura de pantalla 2023-07-22 a las 12 18 12 Captura de pantalla 2023-07-22 a las 12 18 22 Captura de pantalla 2023-07-22 a las 12 39 28

Bug updating some code attributes

Some values are not updating well ( 141 worked )

Could be related with -> #185
Or the evaluation of expressions or default values

Captura de pantalla 2023-07-28 a las 18 42 29

node {"created": true, "dateCreated": "2023-07-28T16:40:29.865Z", "dateModified": "2023-07-28T16:40:29.865Z", "meta": {"defaultValueApplied": true, "h": ["df4513c2-c067-42f6-8700-0125f8a9b50e"]}, "nodeDefUuid": "c9b7b69b-847c-44bb-b990-d2c217c29c7f", "parentUuid": "df4513c2-c067-42f6-8700-0125f8a9b50e", "recordUuid": "99689808-46de-4b94-98c9-ba01c6169cda", "surveyUuid": "85af7410-4041-48c1-9e6f-37f63c40a3df", "updated": true, "uuid": "5017d4d5-da84-4800-9fd2-00f1e2e0c567", "value": {"itemUuid": "e3828bdf-9fdc-4421-88ad-6a6cd801d4b6"}}

 const updateResult = await RecordUpdater.updateNode({
    survey,
    record,
    node,
  });

updateResultForThisNode {"created": true, "dateCreated": "2023-07-28T16:40:29.865Z", "dateModified": "2023-07-28T16:40:29.865Z", "meta": {"defaultValueApplied": true, "h": ["df4513c2-c067-42f6-8700-0125f8a9b50e"]}, "nodeDefUuid": "c9b7b69b-847c-44bb-b990-d2c217c29c7f", "parentUuid": "df4513c2-c067-42f6-8700-0125f8a9b50e", "recordUuid": "99689808-46de-4b94-98c9-ba01c6169cda", "surveyUuid": "85af7410-4041-48c1-9e6f-37f63c40a3df", "updated": true, "uuid": "5017d4d5-da84-4800-9fd2-00f1e2e0c567", "value": {"itemUuid": "73f12826-8a18-44d5-a5c6-c93a81609c4b"}}

1.3 JavascriptExpressionEvaluator

interface ExpressionFunction {
name:string
minArity:number
maxArity:number
executor()
}

Class with two main instance variables

functions<string, ExpressionFunction>
evaluators<ExpressionNodeType,ExpressionNodeEvaluator>

main methods

addFunction(exprFunction:ExpressionFunction):void

addNodeEvaluator(type:ExpressionNodeType, ExpressionNodeEvaluator)

evaluate(expression:string):any

1.1 Factory Objects

  • Common interface Factory { createInstance():T }
  • User
  • Survey
  • NodeDef
  • Record
  • Node
  • Category
  • CategoryLevel
  • CategoryItem
  • Taxonomy
  • Taxon
  • VernacularName

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.