History log of /ontohub/features/support/env.rb
Revision Date Author Comments Expand
22f8827cd8892a298f9764ce862db6867307828d 10-Aug-2016 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

1620 deletion of child ontologies (#1748) * Make removed child ontologies "not present". * Scope default children association of acts_as_tree to present ontologies. * Show only present ontologies of this file. * Fix ontology factory. * Add cucumber features. * Fix restoring children. * Fix restoring a child ontology. * Add specs for restoring children. * Really fix restoring a child ontology. * Only save the ontology if it has changed or if it is a new record.

/ontohub/app/models/ontology/associations_and_attributes.rb /ontohub/app/models/ontology/class_methods_and_scopes.rb /ontohub/app/models/ontology/distributed.rb /ontohub/app/models/ontology_version/parsing.rb /ontohub/app/views/files/_show_dir.html.haml /ontohub/app/views/files/_show_file.html.haml /ontohub/features/RepositoryEditFile.feature /ontohub/features/RepositoryFileBrowser.feature /ontohub/features/step_definitions/ontology_search_steps.rb /ontohub/features/step_definitions/ontology_state_steps.rb /ontohub/features/step_definitions/ontology_versions_steps.rb /ontohub/features/step_definitions/repository_edit_file_steps.rb /ontohub/features/step_definitions/repository_file_browser_steps.rb env.rb /ontohub/lib/hets/dg/node_evaluation_helper.rb /ontohub/lib/hets/dg/node_evaluator.rb /ontohub/spec/factories/ontology_factory.rb /ontohub/spec/fixtures/ontologies/casl/test2_child_deleted.casl /ontohub/spec/fixtures/ontologies/casl/test2_child_renamed.casl /ontohub/spec/models/ontology_spec.rb /ontohub/spec/support/common_helper_methods.rb
d327eb79653cf7820fe583473ab35816d44cd757 02-Aug-2016 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

1555 patch url for (#1745) * Move monkey patches to one place and document them. * Make url_for consider LocIdBaseModel. * Use url_for instead of locid_for everywhere. * Remove now unused locid_for methods.

/ontohub/app/controllers/application_controller.rb /ontohub/app/controllers/metadata_controller.rb /ontohub/app/controllers/ontologies_controller.rb /ontohub/app/controllers/proof_attempts_controller.rb /ontohub/app/helpers/link_helper.rb /ontohub/app/helpers/navigation_helper.rb /ontohub/app/helpers/state_helper.rb /ontohub/app/serializers/application_serializer.rb /ontohub/app/serializers/axiom_serializer.rb /ontohub/app/serializers/mapping_serializer.rb /ontohub/app/serializers/ontology_member/symbol_serializer.rb /ontohub/app/serializers/ontology_serializer.rb /ontohub/app/serializers/ontology_version_serializer.rb /ontohub/app/serializers/proof_attempt_configuration_serializer.rb /ontohub/app/serializers/proof_attempt_serializer.rb /ontohub/app/serializers/prover_output_serializer.rb /ontohub/app/serializers/sentence_serializer.rb /ontohub/app/serializers/theorem_serializer.rb /ontohub/app/views/axioms/_axiom.html.haml /ontohub/app/views/axioms/index.html.haml /ontohub/app/views/children/_child.html.haml /ontohub/app/views/mappings/_mapping.html.haml /ontohub/app/views/ontologies/_info.html.haml /ontohub/app/views/proof_attempts/_result.html.haml /ontohub/app/views/proof_attempts/_sentences_list.html.haml /ontohub/app/views/proof_attempts/index.html.haml /ontohub/app/views/proof_attempts/show.html.haml /ontohub/app/views/prover_outputs/show.html.haml /ontohub/app/views/symbols/_list.html.haml /ontohub/app/views/symbols/_node.html.haml /ontohub/app/views/theorems/_theorem.html.haml /ontohub/app/views/theorems/_theorem_large.html.haml /ontohub/doc/list_of_monkey_patches.md /ontohub/features/step_definitions/combination_steps.rb /ontohub/features/step_definitions/loc_id_routing_steps.rb /ontohub/features/step_definitions/ontology_state_steps.rb env.rb /ontohub/lib/extend/action_dispatch/routing/polymorphic_routes.rb /ontohub/lib/extend/file.rb /ontohub/spec/controllers/api/v1/proof_attempt_configurations_controller_spec.rb /ontohub/spec/controllers/api/v1/proof_attempts_controller_spec.rb /ontohub/spec/controllers/ontologies_controller_spec.rb /ontohub/spec/controllers/proof_attempts_controller_spec.rb /ontohub/spec/support/common_helper_methods.rb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13a 01-Jul-2016 Sascha Graef <sgraef@informatik.uni-bremen.de>

Improve locId (#1618) * introduce new model to ontohub * introduce new locid behavior * adding try to prevent undefined method for nil * generate the locids by object creation * introduce method to simulate an attribute * generate Locids correctly for ontologies * correct creation of child_ontology locids * remove old uniqueness validation for ontology locid * use better names vor locidportion * correct behaviour for locid creation * generate loc_id correctly for ontology * use correct class for inherritanc * remove locids on deletion of objects * rename the base model * introduce data-migration to move the locids * remove double naming in the cat ontology * obey hound * correct behaviour of external repository for locid * change factory behaviour for locid * fix missing comma * begin to fix test * change ontology factory to new locid * change factories for new LocId Model * remove unneeded test * Use proper class retrieval in factories. * Always use to_s on the class call in LocIdBaseModel. * Always use .class.to_s instead of .class when used for the database. * Fix external repository. * Be clean and unstub again. * Fix sentence factory. * Quick fix the destruction of locids. * Fix code style. * Generate locids during create process: Base class. * Generate locids during create process: Mapping. * Generate locids during create process: Sentence. * Generate locids during create process: Symbol. * Generate locids during create process: ProofAttempt. * Generate locids during create process: ProverOutput. * Generate locids during create process: Ontology #1. * Generate locids during create process: Ontology #2. * Generate locids during create process: Ontology #3. * Generate locids during create process: Factories. * Fix seeds errors. * Fix ontology spec on error while parsing The ontology needs to be reloaded because sidekiq does so as well. It always fetches a fresh record from the database. The test failed before because `NodeEvaluationHelper#clean_ontology` called destroy on all the ontology's symbols which existed in the object, but were not really persisted because of an aborted transaction. * Remove redundant space. * Move comment to the correct line. * Fix worker_spec In the production code, the locid is never set before saving the ontology. * Add gems pry-stack_explorer, awesome_print for debugging purposes. * Only start hets if there was a hets error and rollback the changes. * Destroy dependent prover output. * Fix ProofAttempt factory. * Rename assorted_object to specific and fix migration. * Fix migration code style. * Reanalyze ontologies with duplicate locids. * Fix code style. * Remove redundancies. * Remove useless association. * Obey Hound. * Directly query in the LocIdBaseModel. * Add locid routing feature. * Cache LocId query results This should speed up the routing in a great extent. For each matching `specified_get`, the LocIdRouterConstraint fetched the element once from the database. This resulted in 8 times the same SQL query for a ProofAttempt. The implemented cache reduces this to a single query. * Clear the elements cache periodically to prevent memory leaks. * Add missing dependent: :destroy. * Add Recreating repository feature. * Combine if statements. * Change Given to When. * Catch ambiguous locid error. * Fix i18n key usage. * Fix code style. * Comment on error suppression. * Add spec for Syntax Error. * Use single-quoted strings. * Fix error message check: language. * Keep parameter assignment DRY. * Rename RecreatingRepository feature to Repository. * Use local_variable_get instead of eval. * Change locid column type to text. * Implement (implicit) down-migration. * Implement (explicit) down migration. * Add migration to create missing locids. * Fix nil error. * Really fix nil error. * Fix migration. * Fix sentence migration accessing association. * Force old Mappings to have a name. * Add missing locids to symbols.

/ontohub/Gemfile /ontohub/Gemfile.lock /ontohub/app/models/loc_id.rb /ontohub/app/models/loc_id_base_model.rb /ontohub/app/models/mapping.rb /ontohub/app/models/ontology.rb /ontohub/app/models/ontology/associations_and_attributes.rb /ontohub/app/models/ontology/class_methods_and_scopes.rb /ontohub/app/models/ontology/mappings.rb /ontohub/app/models/ontology/sentences.rb /ontohub/app/models/ontology/symbols.rb /ontohub/app/models/ontology/validations.rb /ontohub/app/models/ontology_member/symbol.rb /ontohub/app/models/proof_attempt.rb /ontohub/app/models/prover_output.rb /ontohub/app/models/sentence.rb /ontohub/config/locales/en.yml /ontohub/db/data/20160310132620_move_loc_id_to_own_model_data.rb /ontohub/db/migrate/20160110133824_create_loc_ids.rb /ontohub/db/migrate/20160310132618_enter_name_for_mappings.rb /ontohub/db/migrate/20160310132619_create_missing_locids.rb /ontohub/db/migrate/20160310132620_move_loc_id_to_own_model.rb /ontohub/db/seeds/040-git.rb /ontohub/features/LocId.feature /ontohub/features/LocIdRouting.feature /ontohub/features/Repository.feature /ontohub/features/step_definitions/loc_id_routing_steps.rb /ontohub/features/step_definitions/loc_id_steps.rb /ontohub/features/step_definitions/repository_steps.rb env.rb /ontohub/lib/external_repository.rb /ontohub/lib/hets/dg/node_evaluation_helper.rb /ontohub/lib/hets/dg/node_evaluator.rb /ontohub/lib/hets/errors.rb /ontohub/lib/ontology_saver.rb /ontohub/lib/permissionable.rb /ontohub/lib/router_constraints.rb /ontohub/spec/controllers/api/v1/proof_attempts_controller_spec.rb /ontohub/spec/controllers/api/v1/prover_outputs_controller_spec.rb /ontohub/spec/factories/axiom_factory.rb /ontohub/spec/factories/mapping_factory.rb /ontohub/spec/factories/mapping_version_factory.rb /ontohub/spec/factories/ontology_factory.rb /ontohub/spec/factories/proof_attempt_factory.rb /ontohub/spec/factories/sentence_factory.rb /ontohub/spec/factories/symbol_factory.rb /ontohub/spec/factories/theorem_factory.rb /ontohub/spec/fixtures/ontologies/casl/sentence_and_symbol_with_same_name.casl /ontohub/spec/hets_helper.rb /ontohub/spec/lib/ontology_batch_parse_worker_spec.rb /ontohub/spec/lib/worker_spec.rb /ontohub/spec/models/ontology_spec.rb /ontohub/spec/models/ontology_version/parsing_spec.rb /ontohub/spec/support/common_helper_methods.rb /ontohub/spec/support/fixtures_generation/pipeline_generator.rb
66a3b29f673b0163731b4f4178db18ee2ed60bdc 27-Apr-2016 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Disable TestUnit Autorunner.

6712dc6136cec06e2277530af5c2cb6ee5b3cdef 17-Jan-2016 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Put VCR config into shared_helper Cucumber did not save VCR cassettes in the fixtures/vcr directory because VCR was not configured.

7763b15e92547adf2b843a563f49a23221d1d7d1 30-Nov-2015 Eileen Bolloff <ebolloff@tzi.de>

Replace deprecated capybara config the right way.

7fe36520172b8531583454a10bdbd97beb5855b4 30-Nov-2015 Eileen Bolloff <ebolloff@tzi.de>

Replace deprecated capybara config.

d9fd37626358bb665838a4ddd23114b1f68e93f7 24-Oct-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Merge simplecov reports for RSpec and Cucumber.

e3334a4a0ab1ea6e44e84f807dc87acdf5960c7f 07-Jun-2015 Tim Reddehase <robustus@rightsrestricted.com>

fix bundle-handling of vcr/webmock Every http-request is blocked if webmock is loaded during development. So we switch loading of and perform the requiring manually in the spec-helper and the rake-task.

dca1e74407ea4cab39b5da1c2af73f8efe68d395 27-May-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add cucumber formatter: Hybrid of pretty and progress.

9d87d87825ff0216f8aeccc246c892735fe5ca57 19-Apr-2015 Tim Reddehase <robustus@rightsrestricted.com>

fix sidekiq-handling in cucumber explicitly require sidekiq and add hooks to clear redis and sidekiq before each scenario.

c829cb13b4875500efbe54aaa3d3c013564d9a8d 05-Apr-2015 Tim Reddehase <robustus@rightsrestricted.com>

move helper methods into common file This allows both specs and features to benefit from the helper methods.

4b9a733337443ca239a69e6e2c63734b1f8e8da1 24-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Add method to manually wait for ajax.

63db7a0e27d37cc5e556c6e37f6e284bb89b5c95 09-Mar-2015 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Use gem poltergeist for integration tests.

c60c299761578bc2581874085c3a6b1d050ccbed 20-Feb-2015 Tim Reddehase <robustus@rightsrestricted.com>

provide ontology-state feature integration test.

dca8e84db91cb5a99bbe25b83c731fa3b96263d6 15-Dec-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

Move shared_helper to spec directory.

3db216c51466a97db1ba17765859b5cf3286b229 11-Aug-2014 Eugen Kuksa <eugenk@informatik.uni-bremen.de>

use transaction strategy in minitest and cucumber

7593dcbdc13b8c0dd3f3dbebad8c0497fcc3089e 24-Jun-2014 Sascha Graef <sgraef@informatik.uni-bremen.de>

adding cucumber to coveralls tests for travis

50c9d222a71ff7562256e5ca705893858121a63e 16-Jun-2014 Sascha Graef <sgraef@informatik.uni-bremen.de>

including warden for easy login in tests

8d1e503c3cccc3a2553be6922cb7444557ffca60 16-Jun-2014 Sascha Graef <sgraef@informatik.uni-bremen.de>

allow real http connections

36bc39c96f5716ba14eb8dcbc6158db0f8afc34f 16-Jun-2014 Sascha Graef <sgraef@informatik.uni-bremen.de>

set webkit as driver for Capybara

5abfcf8aac0fc94c987fdddfba6ce6f3f9bf06a7 22-May-2014 Sascha Graef <sgraef@informatik.uni-bremen.de>

introducing cucumber files