Giter Club home page Giter Club logo

enonic-fp's People

Contributors

tajakobsen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enonic-fp's Issues

Add generic type Content.page

We know that Content.page.config is of the type generated by enonic-wizardry. We should be able to give that type up front.

Give Content.publish a type too.

Handle Java Throwables better

Make the mapping between Throwable from Java, and EnonicError better

  1. Get the message from the "root" Throwable
  2. Add the stackTrace field to EnonicError

Make data immutable

To follow best practices for FP, data should be immutable by adding readonly to properties. And use ReadonlyArrays.

Add unsafe version of `render` og `renderer`

Add an unsafe version, that can be used when rendering error pages.

If the rendering fails, and we return a Either<EnonicError, T>, we can end up with a endless loop, and stack overflow.

It's a bit funky, but we'll give it a shot.

Change naming of the `common` interfaces

Because of naming conflicts, it might make coding nicer, if we change the names of the interfaces in common.

  • Error (biggest problem, since there is a global Error already)
  • Response
  • Request

Tasks to do for next major release

  • Build to top level project
  • Update usage documentation
  • Add how to localize errors in README.md
  • Ensure that EnonicError-objects can be extended
  • Strategy for testing this library
  • Online documentation of problems
  • Pull out all error messages in Stacktrace
  • Don't render Exception details when req.mode === 'live'
  • Release a Beta and try out new code

Add StackTrace to Enonic error.

When parsing exceptions we should extract the stack trace from it if the stack trace exists.

We should look into how we want to return the errors from validation. Maybe the cause field should be able to take a datastructure containing the errors.

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.