Skip to content
Snippets Groups Projects
Forked from ICS Control System Infrastructure / csentry
Source project has a limited visibility.
  • Benjamin Bertrand's avatar
    d9516a98
    Use sqlalchemy events hook to trigger tasks · d9516a98
    Benjamin Bertrand authored
    Use the before_flush hook to trigger the core services update.
    It's much nicer than having to call a method in several places.
    
    The core services update is triggered on creation/modification/deletion
    of an Interface.
    
    In the before_flush we can manipulate the session (add objects) but we
    shouldn't call commit.
    The db.session.commit() was removed from the launch_task method.
    d9516a98
    History
    Use sqlalchemy events hook to trigger tasks
    Benjamin Bertrand authored
    Use the before_flush hook to trigger the core services update.
    It's much nicer than having to call a method in several places.
    
    The core services update is triggered on creation/modification/deletion
    of an Interface.
    
    In the before_flush we can manipulate the session (add objects) but we
    shouldn't call commit.
    The db.session.commit() was removed from the launch_task method.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.