Git Product home page Git Product logo

ix's People

Contributors

mmcclimon avatar rjbs avatar robn avatar wolfsage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

ix's Issues

Virtual properties should come back in response to create

For any entity types that have virtual properties, those properties should come back in the response to creating new entities. This way a client stays in sync with the data on the server.

In the current implementation, these virtual properties are only filled in on responses to getFoo calls.

Why a $$ based $schema cache?

DBIx::Class is already fork and thread safe - so I'm not sure why you don't just ->connect a single $schema early on and hang on to it?

How do virtual properties work with state tracking

Right now, virtual properties can be anything. For example, a virtual property could be "is_recent" that compares the creation time of an entity against now() and returns true if created in the last hour or false otherwise.

The problem here is that apparent data on the objects can change value but not change the 'state' of the class of objects.

Say our current state is 0, and we call setFoos/create. Our state becomes 1, and our object has a is_recent of true.

In 2 hours, is_recent is now false, but state is still 0. Now our client and server are out of sync, and if the client says getFooUpdates sinceState => 1, the server will say nothing has changed.

Is this something we can defend against consumers mistakenly doing, or should we minimize these types of issues through the documentation?

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.