Opened 11 years ago

Closed 10 years ago

Last modified 3 years ago

#420 closed enhancement (implemented)

Implement DB callbacks bound to hierarchy

Reported by: westram Owned by: westram
Priority: normal Milestone: arb7.0
Component: Library (DB) Version: SVN
Keywords: Cc:

Description

To be able to implement #418 w/o binding callbacks to ANY of the involved sequences (which normally means "to allmost all species in DB") , ARBDB shall provide a generic mechnism to bind callbacks to some "position" in the DB-hierarchy.

In the case needed, the position might be sth like

/species_data/species/ali_dna/data

Has to create minimal possible overhead (e.g. by first testing for matching GBQUARK).

Change History (9)

comment:1 Changed 11 years ago by westram

  • Status changed from new to assigned

comment:2 Changed 11 years ago by westram

  • Resolution set to implemented
  • Status changed from assigned to closed

comment:3 follow-up: Changed 11 years ago by epruesse

How does the "API" look like? Do change events now simply propagate upwards in the database hierarchy? (maybe until caught?)

comment:4 in reply to: ↑ 3 Changed 11 years ago by westram

Replying to epruesse:

How does the "API" look like? Do change events now simply propagate upwards in the database hierarchy? (maybe until caught?)

No - it simply allows to bind one hierarchy callback e.g. to

/species_data/species/full_name

Whenever any full_name changes, the callback will trigger, even if the DB-entry did not even exist when the callback has been bound.

It just avoids binding callbacks to all existing entries (and maintain that state for any newly created entries), in case you need a callback for all of them.

comment:5 follow-up: Changed 10 years ago by westram

  • Resolution implemented deleted
  • Status changed from closed to reopened

forgot method to remove these callbacks. blocks #418

comment:6 Changed 10 years ago by westram

  • Status changed from reopened to _started

comment:7 in reply to: ↑ 5 Changed 10 years ago by westram

  • Resolution set to implemented
  • Status changed from _started to closed

forgot method to remove these callbacks. blocks #418

by log:branches/alilink@12854,12856:12861,12863,12865:12868

comment:8 Changed 9 years ago by westram

  • Milestone changed from work2013 to arb6.1

mark changes that got fixed after arb 6.0.x

comment:9 Changed 3 years ago by westram

  • Milestone changed from arb6.1 to arb7.0

Milestone renamed

Note: See TracTickets for help on using tickets.