Skip to content

Instantly share code, notes, and snippets.

@jdavcs
Last active April 20, 2021 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdavcs/ad7f31bd780ea9c8abd87f3ab480bb0c to your computer and use it in GitHub Desktop.
Save jdavcs/ad7f31bd780ea9c8abd87f3ab480bb0c to your computer and use it in GitHub Desktop.
pre and post flush difference between SA 1.3 and 1.4 at checkpoint 4
PRE-FLUSH:
(Pdb) pp items
<galaxy.model.MetadataFile(None) at 0x7fb433652b20>,
<galaxy.model.Job(1) at 0x7fb4336496a0>,
<galaxy.model.User(1) at 0x7fb4336432e0>,
<galaxy.model.JobToOutputDatasetAssociation(1) at 0x7fb4336a5cd0>,
<galaxy.model.HistoryDatasetAssociation(1) at 0x7fb4336a5880>,
<galaxy.model.Dataset(1) at 0x7fb4336a5d00>
(Pdb) pp ins[1].__dict__ # <galaxy.model.Job(1) at 0x7fb4336496a0>
1.4:
+ '_empty_collections': {}
+ 'mapper': <Mapper at 0x7fb4904d0100; Job>
(Pdb) pp ins[2].__dict__ # <galaxy.model.User(1) at 0x7fb4336432e0>
1.3: 'load_path': CachingEntityRegistry((<Mapper at 0x7fdc03d01070; User>,)),
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cac0; user>, <Mapper at 0x7fb49078f4c0; User>)),
+ <Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cac0; user>
(Pdb) pp ins[3].__dict__ # <galaxy.model.JobToOutputDatasetAssociation(1) at 0x7fb4336a5cd0>,
1.3: 'load_path': {<ColumnProperty at 0x7fdc03c28c70; id>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c28c70; id>)),
<ColumnProperty at 0x7fdc03c28d60; job_id>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c28d60; job_id>)),
<ColumnProperty at 0x7fdc03c28e50; dataset_id>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c28e50; dataset_id>)),
<ColumnProperty at 0x7fdc03c36040; name>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c36040; name>)),
<RelationshipProperty at 0x7fdc03c8e740; job>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e740; job>)),
<RelationshipProperty at 0x7fdc03c8e9c0; dataset>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e9c0; dataset>))},
+ a lot of stuff^
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>, <Mapper at 0x7fb4906b1a30; JobToOutputDatasetAssociation>)),
(Pdb) pp ins[4].__dict__ # <galaxy.model.HistoryDatasetAssociation(1) at 0x7fb4336a5880>,
1.3: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e9c0; dataset>, <Mapper at 0x7fdc03d88d30; HistoryDatasetAssociation>)),
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>, <Mapper at 0x7fb4906b1a30; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fb4906a8540; dataset>, <Mapper at 0x7fb49080dfa0; HistoryDatasetAssociation>)),
+ <Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>,
(Pdb) pp ins[5].__dict__ # <galaxy.model.Dataset(1) at 0x7fb4336a5d00>
1.3: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e9c0; dataset>, <Mapper at 0x7fdc03d88d30; HistoryDatasetAssociation>, <RelationshipProperty at 0x7fdc03d6a9c0; dataset>, <Mapper at 0x7fdc03d2a6d0; Dataset>)),
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>, <Mapper at 0x7fb4906b1a30; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fb4906a8540; dataset>, <Mapper at 0x7fb49080dfa0; HistoryDatasetAssociation>, <RelationshipProperty at 0x7fb490800940; dataset>, <Mapper at 0x7fb4907aca30; Dataset>)),
+ <Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>
+ 'mapper': <Mapper at 0x7fb4907aca30; Dataset>,
------------------------------------------------------------------------------
session.__dict__ more or less identicall (-some internal impl details)
------------------------------------------------------------------------------
POST-FLUSH:
(Pdb) pp ins[0].__dict__ # <galaxy.model.MetadataFile(None) at 0x7fb433652b20>,
1.4: 'expired_attributes': +
'history_dataset',
'library_dataset',
(Pdb) pp ins[1].__dict__ # <galaxy.model.Job(1) at 0x7fb4336496a0>,
1.4:
+ '_empty_collections': {},
'expired_attributes': +
'container',
'data_manager_association',
'external_output_metadata',
'galaxy_session',
'history',
'history_dataset_collection_associations',
'implicit_collection_jobs_association',
'input_dataset_collection_elements',
'input_dataset_collections',
'input_datasets',
'input_library_datasets',
'interactivetool_entry_points',
'job',
'library_folder',
'numeric_metrics',
'output_dataset_collection_instances',
'output_dataset_collections',
'output_datasets',
'output_library_datasets',
'parameters',
'post_job_actions',
'state_history',
'text_metrics',
'user',
'workflow_invocation_step'
+ 'mapper': <Mapper at 0x7fb4904d0100; Job>,
(Pdb) pp ins[2].__dict__ # <galaxy.model.User(1) at 0x7fb4336432e0>,
1.4:
'expired_attributes': +
'_preferences',
'active_histories',
'addresses',
'api_keys',
'cloudauthz',
'cloudauthzs',
'custos_auth',
'data_manager_histories',
'default_permissions',
'galaxy_sessions',
'groups',
'histories',
'histories_shared_by_others',
'non_private_roles',
'pages_shared_by_others',
'quotas',
'reset_tokens',
'roles',
'social_auth',
'stored_workflow_menu_entries',
'stored_workflows',
'values',
'visualizations_shared_by_others',
'workflows_shared_by_others'
1.3: 'load_path': CachingEntityRegistry((<Mapper at 0x7fdc03d01070; User>,)),
1.4: 'load_path': + SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cac0; user>, <Mapper at 0x7fb49078f4c0; User>)),
(Pdb) pp ins[3].__dict__ # <galaxy.model.JobToOutputDatasetAssociation(1) at 0x7fb4336a5cd0>,
1.3: 'expired_attributes': {'dataset_id', 'id', 'job_id', 'name'},
1.4: 'expired_attributes': {'job_id', 'id', 'dataset', 'dataset_id', 'name', 'job'},
1.3: 'load_path': {<ColumnProperty at 0x7fdc03c28c70; id>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c28c70; id>)),
<ColumnProperty at 0x7fdc03c28d60; job_id>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c28d60; job_id>)),
<ColumnProperty at 0x7fdc03c28e50; dataset_id>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c28e50; dataset_id>)),
<ColumnProperty at 0x7fdc03c36040; name>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <ColumnProperty at 0x7fdc03c36040; name>)),
<RelationshipProperty at 0x7fdc03c8e740; job>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e740; job>)),
<RelationshipProperty at 0x7fdc03c8e9c0; dataset>: PropRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e9c0; dataset>))},
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>, <Mapper at 0x7fb4906b1a30; JobToOutputDatasetAssociation>)),
(Pdb) pp ins[4].__dict__ # <galaxy.model.HistoryDatasetAssociation(1) at 0x7fb4336a5880>,
1.4: 'expired_attributes': +
'annotations',
'copied_from_history_dataset_association',
'copied_from_library_dataset_dataset_association',
'copied_to_history_dataset_associations',
'copied_to_library_dataset_dataset_associations',
'creating_job_associations',
'dataset',
'dependent_jobs',
'extended_metadata',
'hidden_beneath_collection_instance',
'history',
'implicitly_converted_datasets',
'implicitly_converted_parent_datasets',
'ratings',
'tags',
1.3: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e9c0; dataset>, <Mapper at 0x7fdc03d88d30; HistoryDatasetAssociation>)),
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>, <Mapper at 0x7fb4906b1a30; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fb4906a8540; dataset>, <Mapper at 0x7fb49080dfa0; HistoryDatasetAssociation>)),
(Pdb) pp ins[5].__dict__ # <galaxy.model.Dataset(1) at 0x7fb4336a5d00>
1.4: 'expired_attributes': +
'actions',
'active_history_associations',
'active_library_associations',
'genome_index_tool_data',
'hashes',
'history_associations',
'job',
'job_export_history_archive',
'library_associations',
'purged_history_associations',
'sources',
1.3: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fdc03c1fa00; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fdc03c8e9c0; dataset>, <Mapper at 0x7fdc03d88d30; HistoryDatasetAssociation>, <RelationshipProperty at 0x7fdc03d6a9c0; dataset>, <Mapper at 0x7fdc03d2a6d0; Dataset>)),
1.4: 'load_path': SlotsEntityRegistry((<Mapper at 0x7fb4904d0100; Job>, <RelationshipProperty at 0x7fb49051cec0; output_datasets>, <Mapper at 0x7fb4906b1a30; JobToOutputDatasetAssociation>, <RelationshipProperty at 0x7fb4906a8540; dataset>, <Mapper at 0x7fb49080dfa0; HistoryDatasetAssociation>, <RelationshipProperty at 0x7fb490800940; dataset>, <Mapper at 0x7fb4907aca30; Dataset>)),
1.4: + 'mapper': <Mapper at 0x7fb4907aca30; Dataset>,
session.__dict__ more or less identicall (-some internal impl details)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment