CottageLabs / idfind

An identifier identifier
1 stars 0 forks source link

overwriting identifiers in the cache #32

Closed emanuil-tolev closed 12 years ago

emanuil-tolev commented 12 years ago

Right now, an when a "test" succeeds, its id will be given to the "identifier" created in the index. This means that if a test succeeds more than once on 2 different identifiers, the latter success will overwrite the previous one in the index (since they have the same id - the test's id). This needs fixing since the "cache" functionality is seriously broken like this.

emanuil-tolev commented 12 years ago

4fa49fd2812cc3cf37611dd8d95e3874129db7c5: now deleting the "id" key as the "identifier" doc is created from the successful "test" docs. Thus, the new "identifier" doc is given a new unique id before being indexed into elasticsearch (instead of taking the one from the first successful "test").