Giter Club home page Giter Club logo

djangoevents's Issues

New eventsourcing version

Hi guys,

I released a new major version of the eventsourcing library. https://pypi.python.org/pypi/eventsourcing/2.1.1

It's not backwards-compatible with the 1.x.x, there are some significant changes. If you wanted to update djangoevents to use the new version, you would need to make a few changes. Would be very happy to help you work through them, if you wanted some help with it.

Hope all's well,

John

Better name for publish method

Currently we are using publish name for storing events as it is used directly from eventsourcing library. This might be misleading however - it's actually storing an event. We should call it simply store_event instead.

Not sure if we want to keep old method. djangoevents is not mature yet so we can change API without deprecating it first. OTOH, we might want to inform all users by issuing deprecationwarning (https://docs.python.org/3/library/warnings.html#default-warning-filters).

Allow to configure event store table name

Currently we have hardcoded event_journal name for the table (https://github.com/ApplauseOSS/djangoevents/blob/devel/djangoevents/models.py#L19). As not default value might be surprising for library users. Let's use default name (djangoevents_event) but allow to configure this.

Tasks

  • Create djangoevents.config module which should read DJANGOEVENTS_CONFIG variable from settings.py
  • Have a default djangoevents_event for table name
  • Use table name from configuration at the model's Meta
  • Use table name from configuration at the migration
  • Document this at the readme
  • Updated changelog and let users know of potentially breaking change (they would need to manually rename table or set table name to event_journal

Example project

Hi,

I am very interested in doing event sourcing with django.
It is not easy to understand how to use this library in a new or existing django project.
Also, how easy is it to use it with other django apps in parallel ?

Could you please provide an example project using this module in parallel with django.contrib.auth ?

Does an open source project on github or elsewhere using this module exist that we could refer to ?

Many thanks.
M0dM

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.