aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2017-11-17Refs: #4461@1.5h; Repaired netex_import factory, adapted spec/models/import_specRobert
2017-11-13Refs #4952 Fix bug related to compliance control set action links displaycedricnjanga
2017-11-09Remove model route_sectionsXinhui
2017-11-06Refs #4849 Change compliance control name setting during compliance control ↵cedricnjanga
set cloning
2017-10-30ComplianceControlSetCopyWorker: Pass ComplianceCheckSet ID to JavaTeddy Wing
Previously I had been passing the `ComplianceControlSet` ID to the Java API. The API actually expects the ID of the `ComplianceCheckSet`. In order to get this ID, have the `ComplianceControlSetCopier` return the `ComplianceCheckSet` that it creates, and use that to pass the the ID to the Java API. Refs #4782
2017-10-30Merge pull request #104 from af83/4726-breadcrumbLuc Donnet
4726 breadcrumb
2017-10-26Remove bootstrap breadcrumbs libXinhui
2017-10-25Refs #4759cedricnjanga
Fix bug on dashboard to show the 5 first referentials of the current_organisation's first workbench. Added a small changes dashboard.rb to avoid '@workbench is not defined error' With the same logic we list only the first 5 calendars
2017-10-24Make erd patch for multi relationships and add merge png in outputLuc Donnet
2017-10-23Hotfix ComplianceControlSet.cloneRobert
2017-10-17Fixes: #4727@0.1h; Added organisation to clone for and rebased master4727-clone-compliance-control-setRobert
2017-10-17Refs: #4727@2h; Debugged test setup to comply to new validationRobert
2017-10-17Refs: #4727@3h; Specing and implementing lib function to clone ↵Robert
ComplianceControlSet
2017-10-17add ci jest task Refs #4737Guillaume
2017-10-17fix ci spec task Refs #4737Guillaume
2017-10-14Fix translations for compliance_control type translation, compliance_control ↵Luc Donnet
validation, compliance_control module
2017-10-12Refs: #4709@0.75h;Robert
DONE: - Copied all node atts for ComplianceChecks - Migration of CompliancCheck#criticity int -> string TODO: - Check what to do with attribute ComplianceCheck#type
2017-10-12Refs: #4709@1h; Preparing tests for correctly copy of data and migrationRobert
2017-10-12Use yarn and not npm anymoreLuc Donnet
2017-10-11Merge pull request #89 from af83/4707-simplify-compliance-control-copyLuc Donnet
Fixes: #4707@1.5h;
2017-10-11add dev and staging file for wepack config, modify spec taskGuillaume
2017-10-11delete bundle exec for spec taskGuillaume
2017-10-11remove tespoon test, prefer rspec for testingGuillaume
2017-10-10Fixes: #4707@1.5h;Robert
2017-10-09Refs: #4629@1h; Implementing CR + missing worker specRobert
2017-10-09Fixes: #4629@4.5h; Implemented copyRobert
2017-10-06ComplianceControl#new target fieldXinhui
Refs #4687
2017-09-30Create DashboardController with STIF implementation. Refs #4655Alban Peignier
2017-09-28Refs #4635 Add permissions translations regarding the news models ↵cedricnjanga
(Compliance Control)
2017-09-28Merge branch 'master' into 4466-compliance_check_setsGuillaume
2017-09-28fix locales translations, remove unused array for date filtersGuillaume
2017-09-26Specs fixed (from logical merge errors)Robert
2017-09-26Refs: #4440@1h; ImportPolicy applied in views and controllerRobert
2017-09-26Refs: #4440@1.5h;Robert
ImportPolicy changing *.imports →' imports.*
2017-09-26Refs: #4440@0.5h Added import permissionRobert
2017-09-25add compliance_check_sets structure Refs #3564Guillaume
2017-09-25ModelAttribute#==: Check for matching class typeTeddy Wing
Thanks to Robert for this suggestion, of course it makes a lot of sense to verify class equivalence when checking equality. Refs #4401
2017-09-25ModelAttribute.classes: Move `#uniq` call higherTeddy Wing
Call `#uniq` right after mapping over the `klass` attribute. Recommendation from Robert (thanks!). This means there are less elements to deal with in the subsequent maps. Refs #4401
2017-09-22Merge pull request #75 from ↵teddywing
af83/4401-create-compliance-control-model-attribute-class 4401 create compliance control model attribute class
2017-09-22ModelAttribute: Add `#from_code` methodTeddy Wing
Enables finding a `ModelAttribute` by a string code combining klass and name. Refs #4401
2017-09-22ModelAttribute: Add `.group_by_class` methodTeddy Wing
This returns all defined `ModelAttribute`s as a hash of class keys containing lists of the attributes they contain. Refs #4401
2017-09-22ModelAttribute: Add `.classes` methodTeddy Wing
This allows people to get a list of the classes defined in `ModelAttribute`. The classes are turned into constant-cased strings. Not sure if that's useful, but this is how it was described in the ticket. Refs #4401
2017-09-22ModelAttribute: Add `.methods_by_class_and_type` methodTeddy Wing
This enables filtering by class like `.methods_by_class` and additionally only selecting attributes matching a certain data type. Refs #4401
2017-09-19ModelAttribute.methods_by_class: Take symbol parameter instead of stringTeddy Wing
Didn't like how `#initialize` takes a different type for `klass` than `.methods_by_class`. Make these types and values uniform. If we need to change it, we should make a separate mechanism to do so. I think. Refs #4401
2017-09-19ModelAttribute: Add `.methods_by_class` methodTeddy Wing
Allows us to get all `ModelAttribute`s given a certain class name. Needed an `#==` method to be able to test object equality more easily so I added one in. I don't like that the `klass` is a lowercase symbol and the `klass` attribute to `.methods_by_class` is a constantized string. Want to correct that and make them uniform. Only did it this way because that's how it was suggested in the ticket. Refs #4401
2017-09-19ModelAttribute: Make `@@all` a class instance variableTeddy Wing
Robert argues that the class variable is not ideal because its value gets shared with subclasses, violating the Liskov substitution principle: 17:44:23 < robert> ```133] pry(main)> class A; @@greeting = :hello end 17:44:23 < robert> => :hello 17:44:23 < robert> [134] pry(main)> class B < A; end 17:44:23 < robert> => nil 17:44:23 < robert> [135] pry(main)> B.class_variable_get '@@greeting' 17:44:23 < robert> => :hello Instead, go with his suggestion to use a class instance variable instead, which gives us the same amount of availability of the `all` list while not sharing it indiscriminately and making it easier to test. Refs #4401
2017-09-19ModelAttribute: Add `#code` methodTeddy Wing
A method that returns a string representation of the attribute, in the form `:class#:name". This will be used to store a reference to the attribute in the database. For example, a validation will reference a `ModelAttribute` in a database column using this `#code` string. Refs #4401
2017-09-19ModelAttribute: Add `ModelAttribute`s for a bunch of models&attributesTeddy Wing
We want to define `ModelAttribute`s for an initial set of `Chouette` models: * Chouette::Route * Chouette::JourneyPattern * Chouette::VehicleJourney * Chouette::Footnote * Chouette::TimeTable * Chouette::RoutingConstraintZone I added these by looking at the `schema.rb` as well as some form views for these models. Given that information, I made some guesses about what attributes it might make sense to add here. We want to end up with a collection of only editable attributes for these models, so this excludes things like `created_at`, foreign keys, and programmatically set fields. This is my guess at what those fields are. We can refine the list later. We'll be using this list for Compliance Control to get a set of fields of a given type in order to create custom validations using those fields. Refs #4401
2017-09-19Fix spec on mission compliance controls permissionsXinhui
2017-09-19ModelAttribute spec: Allow test to handle existing elements in `@@all`Teddy Wing
When `ModelAttribute` instances are added to `@@all` directly in the class, the test breaks. Make it a little more robust by checking change in array size instead of total size. Refs #4401