• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

projecthydra / active_fedora
93%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v9.7.3
DEFAULT BRANCH: master
Repo Added 29 Oct 2014 01:57PM UTC
Files 144
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH detect_model_mismatch
branch: detect_model_mismatch
CHANGE BRANCH
x
Reset
  • detect_model_mismatch
  • 6.6-stable
  • 9.0-stable
  • 9.1-stable
  • 9.7.x-stable
  • AT_0.8.1
  • active_triples_upgrade
  • add_documentation_to_errors
  • add_id_setter
  • added_contains
  • at-0.6
  • at0.4.0
  • attached_files
  • attributes
  • authorization
  • autocommit
  • autoload
  • autosave
  • backport
  • backports
  • base_paths
  • blacklist_mutators
  • bugfix/change_set
  • bugfix/default_attributes
  • caching
  • change_attributes
  • changed_attributes
  • check_constraints
  • check_existance
  • check_reflection
  • cleaner
  • cleanup_test
  • config_fcrepo
  • configure_test_instances
  • construct_query_for_pids_dep
  • contains_association
  • correct_jms_flag
  • dce_test
  • dead-code
  • default_scopes
  • definitions
  • delegate_attribute_quad_programming
  • deprecate-sqb-solr-name
  • deprecate_add_file_3_args
  • deprecate_construct_query_for_pids
  • deprecate_datastream
  • deprecate_init_with_container
  • deprecate_property
  • deprecate_unused_methods
  • deprecations
  • digest
  • direct_container_bugs
  • directly_contains_non_files
  • directly_contains_one_association
  • disentangle_sparql_variables
  • empty-dates
  • empty_base_path
  • encapsulate_solr_escape
  • ensure_dependencies
  • enumerable_relation
  • enumerable_solr_resource
  • eradicate_option
  • error_missing_reflection
  • escape_brackets
  • existing-pid
  • extract_handler
  • facet_limit
  • faster_startup
  • fedora-4
  • fedora-4.5
  • fedora4.4-upgrade
  • fedora_config_generator
  • file-reorganization
  • file_body
  • file_mime_types
  • file_name_from_head
  • file_save
  • file_takes_block
  • file_upload_fix
  • filename_encoding
  • files_hash_with_indifferent_access
  • files_stand_alone
  • filter_marked_for_deleted
  • find-search
  • find_hash_id
  • find_on_relation
  • find_target_private
  • fix_849_check_id_before_object
  • fix_digest
  • fix_generator
  • fix_habtm
  • fix_inverse_of_has_many
  • fix_model_generator
  • fix_nil_date
  • fix_query_nil
  • fix_reindex_everything
  • fix_type
  • fixity
  • fixity_service_uri
  • fixup_yard
  • forward_port
  • generalize_server
  • generated_resource_schema
  • habtm-deleting
  • habtm-solr
  • habtm_shift
  • handle_property_on_builder
  • has_attributes_datastream_symbol
  • has_content
  • has_versions
  • id_to_file
  • include_on_contains
  • index-refactor
  • indexer
  • indirect_container_delete_bug
  • indirect_container_is_set_in_memory
  • indirect_ids_reader
  • indirect_ids_reader_fix
  • indirectly_contains
  • inherited_indexing
  • init_base_path
  • intermittent_versioning_test_failure
  • issue-352-fix
  • issue_794
  • issue_831
  • jruby
  • ldp-0.4
  • ldp-0.5
  • load_from_solr
  • load_from_solr_multivalued
  • local_configs
  • loosen_rdfxml
  • marshal_and_load
  • master
  • merge-reify-results
  • missing_reflection
  • mock_deprecation
  • move_indexing_to_the_model
  • nested_attribute_options
  • nested_attrs_destroy
  • nested_bug
  • nested_triples
  • nested_uses_autosave
  • nil_rdf
  • no_datastream
  • no_ldp_orm
  • no_load
  • no_validators_on_destroy
  • notify_contained_resources
  • one_argument_contains
  • optimize_file_retrieval
  • overridable_resource_class
  • pending
  • pending-tests
  • pin_solrizer
  • privatizing-method
  • profile_indexing_service
  • properties_are_multiple
  • property_delegates
  • property_warn
  • provide_uri_on_error
  • rails_4.2
  • rails_4_2_beta4
  • rake_refactor
  • random_port
  • rdf
  • rdf_indexing_service
  • rdf_label
  • rdf_type
  • read_only
  • refactor-habtm
  • refactor_associations
  • refactor_change_set
  • refactor_eq
  • refactor_initialize
  • refactor_reset
  • refactor_solr_keys
  • refactor_test
  • refactor_to_solr_spec
  • reflect_inverse
  • reindex_avoids_non_rdf_sources
  • remove-unused-code
  • remove_counter_cache
  • remove_cucumber_env
  • remove_deprecation
  • remove_deprecations
  • remove_duplicate_solr_query
  • remove_has_many_versions
  • remove_image
  • remove_last_modified
  • remove_primary_key_todo
  • remove_rdf_ldp_gem
  • remove_registered_predicates
  • remove_solr_mappings
  • remove_solrizer_fedora
  • remove_v4_rels-ext
  • removed_workarounds
  • rename_datastream
  • rename_method
  • resource_class_as_class_method
  • restore_permissions
  • revert_feature
  • revert_inbound
  • rsolr-dep
  • rubocop
  • rubocop_0.37.1
  • same_dirty
  • sanitize_for_mass_assignment
  • search-by-id
  • separate_deletes
  • separate_indexing
  • set_property_to_singular
  • setting-type
  • sharable_test_server
  • shift
  • silence-deprecation
  • silence_deprecation
  • single_dates
  • single_value_properties
  • single_value_rdf_fields
  • singular_hash_properties
  • size_can_be_nil
  • skip_filter
  • snapshot-versions
  • solr-config-options
  • solr-hit
  • solr-query-builder
  • solr-service-count
  • solr5
  • solr5-configs
  • solr_attributes
  • solr_indexer_service
  • solrizer_logger
  • solrizing-rdf
  • sort_versions_as_dates
  • streaming
  • sub_resources
  • terms_query
  • terrellt-update-at
  • test_rsolr
  • time_zone_fix
  • tombstone
  • translate_id_procs
  • translation_procs
  • unify-model
  • update-jettywrapper
  • update_deps
  • update_development_configs
  • update_ldp
  • update_model_generator
  • update_test
  • use-foreign-key
  • use_headers_for_name
  • use_jdk8_on_travis
  • use_uri
  • v9.0.0
  • v9.0.0.beta1
  • v9.0.0.beta2
  • v9.0.0.beta3
  • v9.0.0.beta4
  • v9.0.0.beta5
  • v9.0.0.beta7
  • v9.0.0.beta8
  • v9.0.0.rc1
  • v9.0.0.rc2
  • v9.0.0.rc3
  • v9.0.2
  • v9.0.3
  • v9.0.4
  • v9.0.5
  • v9.0.6
  • v9.0.7
  • v9.1.0
  • v9.1.0.rc1
  • v9.1.1
  • v9.1.2
  • v9.2.0
  • v9.2.0.rc1
  • v9.2.0.rc2
  • v9.2.1
  • v9.3.0
  • v9.4.0
  • v9.4.1
  • v9.4.2
  • v9.4.3
  • v9.5.0
  • v9.6.0
  • v9.6.1
  • v9.6.2
  • v9.7.0
  • v9.7.1
  • v9.7.2
  • v9.7.3
  • v9.8.0
  • v9.8.1
  • v9.8.2
  • v9.9.0
  • v9.9.1
  • validate_once
  • versionable
  • versioning_to_file
  • versions
  • vocab
  • vocabs
  • wait_jetty
  • warn_on_bad_fedora_url
  • warn_on_bar_url
  • with_metadata
  • yield_a_block
  • yield_from_indexing_service

pending completion
2124

push

travis-ci

hectorcorrea
Prevents an object from being loaded to the incorrect class. For example, when loading a batch object it should be loaded into a Batch (and not a File for example.)

    Loading an object to the incorrect class could result in loss of data when saving the object back. For example, loading a File into a Batch and then saving the Batch will blow away all the properties of the File that were not present in the Batch (which would be the majority.)

    The current version of the code still allows an object to be loaded into a parent class. For example, a BigFile object could be loaded into a File object as long as BigFile is a subclass of File. This could still result in loss of data but I wasn't sure I wanted to be too restrictive so I am leaving this open for now. We might want to prevent this altogether in the future.

3786 of 4075 relevant lines covered (92.91%)

835.46 hits per line

Relevant lines Covered
Build:
Build:
4075 RELEVANT LINES 3786 COVERED LINES
835.46 HITS PER LINE
Source Files on detect_model_mismatch
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
2124 detect_model_mismatch Prevents an object from being loaded to the incorrect class. For example, when loading a batch object it should be loaded into a Batch (and not a File for example.) Loading an object to the incorrect class could result in loss of data when sa... push 01 Apr 2015 07:41PM UTC hectorcorrea travis-ci pending completion  
2121 detect_model_mismatch Prevents an object from being loaded to the incorrect class. For example, when loading a batch object it should be loaded into a Batch (and not a File for example.) Loading an object to the incorrect class could result in loss of data when saving... push 01 Apr 2015 05:59PM UTC hectorcorrea travis-ci pending completion  
See All Builds (1419)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc