From d7ace69fe3957a49e319708f3a2f10d2e2db5e24 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 13 Oct 2015 18:14:52 -0400 Subject: [PATCH] Add a vulnerability_found event for notice when we detect a vuln Fixes #637 Note: This PR does *not* actually raise the event; it merely adds support for it --- .../versions/50925110da8c_add_event_specific_config.py | 1 - initdb.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/migrations/versions/50925110da8c_add_event_specific_config.py b/data/migrations/versions/50925110da8c_add_event_specific_config.py index 4a7672b70..8b67fe51a 100644 --- a/data/migrations/versions/50925110da8c_add_event_specific_config.py +++ b/data/migrations/versions/50925110da8c_add_event_specific_config.py @@ -14,7 +14,6 @@ from alembic import op import sqlalchemy as sa from util.migrate import UTF8LongText - def upgrade(tables): ### commands auto generated by Alembic - please adjust! ### op.add_column('repositorynotification', sa.Column('event_config_json', UTF8LongText, nullable=False)) diff --git a/initdb.py b/initdb.py index 8b095b002..bc474fd03 100644 --- a/initdb.py +++ b/initdb.py @@ -95,7 +95,7 @@ def __create_subtree(repo, structure, creator_username, parent, tag_map): for path_builder in paths: path = path_builder(new_image.storage.uuid) store.put_content('local_us', path, checksum) - + new_image.security_indexed = False new_image.security_indexed_engine = maxsize new_image.save()