~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/jobs/ingest.py

[r=sinzui][bug=][author=benji] - Remove useless try/except accidentally left in store_bundles from last
  branch
- add migration 018 which removes all bundles from the DB and ES (they
  will be repopulated at the next ingestion)
- add an explicit construct_search_id so it is easier to see the
  semantics of ID creation when reading the code

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
        super(UpdateBundleJob, self).__init__()
292
292
 
293
293
    def store_bundles(self, deployer_config, owner, basket_id):
294
 
        try:
295
 
            store_bundles(self.db.bundles, deployer_config, owner, basket_id)
296
 
        except TypeError:
297
 
            pass
 
294
        store_bundles(self.db.bundles, deployer_config, owner, basket_id)
298
295
 
299
296
    @staticmethod
300
297
    def set_basket_info(data, revno):