Git Product home page Git Product logo

Comments (4)

benjamin-heasly avatar benjamin-heasly commented on August 21, 2024

UuidRestController should have a utility for logging Registrations. And the templated POST and PUT endpoints should log successful Registrations.

from openhds-rest.

bruceMacLeod avatar bruceMacLeod commented on August 21, 2024

This would be an incredibly useful feature if you can manage it.

from openhds-rest.

benjamin-heasly avatar benjamin-heasly commented on August 21, 2024

In the code I'm working from (here) I didn't find any integration tests. So I'm making up some of the behavior in a way that seems reasonable to me.

The behavior might need to be updated by someone who understands the events requirements better. I am not going to block on this.

Here is the behavior I'm going to implement and test before moving on:

Services can create Events, which represent anything interesting. Events have a string data payload and some queryable fields like entity type, action type, date-time, and user.

Events are also associated with EventMetadata, which keep track of external systems that are interested in the Events. The EventMetadata identify an external system, the status of an event as viewed by that system, and the number of times the system has read a given Event.

External systems should not care about each other, so changes to the Metadata associated with one system should not effect the Metadata associated with another system.

If a new external system queries for events, it sees all events. As a side effect of the query, new default EventMetadata are created for that system and associated with all events.

If the same system queries for events again, the query will make use of the existing metadata. This will allow interesting queries like "get all the events that this system hasn't read yet".

from openhds-rest.

benjamin-heasly avatar benjamin-heasly commented on August 21, 2024

2bc95ac contains events model, service, and resource, and tests as described above.

from openhds-rest.

Related Issues (20)

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.