aboutsummaryrefslogtreecommitdiffstats
path: root/app
AgeCommit message (Collapse)Author
2017-11-28Add paper_trail to modelsXinhui
2017-11-27Merge branch 'master' of github.com:af83/stif-boivcedricnjanga
2017-11-27Refs #4941 Fix objectid short version Display on viewscedricnjanga
2017-11-27Merge branch '4941-refactoring_object_id'cedricnjanga
2017-11-27Refs #5087 Take ImportResource metrics changes into account in viewscedricnjanga
2017-11-27Refs #4961 Fix typos on Import#show and ImportResource#indexcedricnjanga
2017-11-27Refs #5030 Fix missing translation for UnactivatedStopPoint ComplianceControlcedricnjanga
2017-11-27Refs #5071 #5070 Adapt view to TransportModeHelper refacto to avoid errorscedricnjanga
2017-11-26Use t('id_codif') and t('id_reflex') to prevent hardcoded strings. Refs #5081Alban Peignier
2017-11-26Provide a default Dashboard view. Refs #4655Alban Peignier
2017-11-26Provide empty main_nav_left_content custom view. Refs #4735Alban Peignier
2017-11-26Remove base part of the nav menu in STIF main_nav_left_content. Refs #4735Alban Peignier
2017-11-26Ignore indefined current_organisation in render_custom_view. Refs #4735Alban Peignier
2017-11-26Use debug message for render_custom_view. Refs #4735Alban Peignier
2017-11-26Use an helper to invoke render method safely. Refs #4735Alban Peignier
2017-11-26Update STIF navigation left menu. Refs #4735Alban Peignier
2017-11-26Create custom view for STIF main nav left. Refs #4735Alban Peignier
2017-11-26Add Organisation#custom_view and associated helper render_custom_view. Refs ↵Alban Peignier
#4735
2017-11-24Remove specs we dont need anymorecedricnjanga
2017-11-24class instance variables in Direction and ConnectionLinkType modelscedricnjanga
2017-11-24Take into account code reviewcedricnjanga
2017-11-23Stay up to date with master branchcedricnjanga
2017-11-23Add spec for stif_netex objectid_formatcedricnjanga
2017-11-23Remove get_objectid duplicate methodcedricnjanga
2017-11-23Change the call of local id on several views to avoid bugscedricnjanga
2017-11-23Fix typos on class naming for objectid formatterscedricnjanga
2017-11-22Change inclusion of StifTransportModeEnumeration in VJ modelcedricnjanga
2017-11-22Fix transport modes and submodes modulescedricnjanga
Fix Compliance Control Set flotted links to display on show page
2017-11-22Rebase master and resolve conflictscedricnjanga
2017-11-22Fix last spec and add short_id method to Netex Objectidcedricnjanga
2017-11-22Change the way we name classescedricnjanga
We now always use modules for namespaces => same structure for models, decorators, policies...
2017-11-22Change the use of namespace and remove modulescedricnjanga
2017-11-22Add some changes to the objectid constructioncedricnjanga
2017-11-22Create objectid format and integrate it in models. Work in progress. Refs #4941cedricnjanga
2017-11-22Add Cédric new objectid concernscedricnjanga
objectid_support handles reading and writing object_ids objectid_formater_support gets the right formater class include these concerns in chouette models Remove StifNetexAttributSupport modules because these are handled by the new objectid concerns Add a objectid and formater classes for each format type Add objectid formats to the factories Modify somes specs for object_ids but there are still a number of failling tests
2017-11-22Refs #4941 remove object_id_format_to_line_referential module, include just ↵Guillaume
a object_id_format_to_referential module
2017-11-22add object_id_format to migrations, create module for call Referential, Line ↵Guillaume
Referential, StopAreaReferential in models, add Enumerize in models Refs #4941
2017-11-22Merge branch 'master' into 4941-refactoring_object_idcedricnjanga
2017-11-22Fix mergecedricnjanga
2017-11-22Fix merged filecedricnjanga
2017-11-22Merge branch 'master' into 4941-refactoring_object_idcedricnjanga
2017-11-22Fix the delation of the hacking of Chouette::ActiveRecord#model_name to ↵cedricnjanga
remove the Chouette namespace off of the construction of link in the app and in other places. Added a small change in the reflex sync to set the stop_area_referential in the initialization of the object to be in sync with the work on the objectids (need a objectid_formatter)
2017-11-21Change the way we name classescedricnjanga
We now always use modules for namespaces => same structure for models, decorators, policies...
2017-11-21referentials_helper.rb#line_status: Add documentation commentTeddy Wing
Replace the existing comment, which seemed redundant, with a description of what the helper method does. Refs #5005
2017-11-21referentials_helper.rb#line_status: Fix style of text labelTeddy Wing
The label previously took on the colour of the icon (green or red) and was set in Times/browser default. It was set in the wrong style because the label was put inside the `<span>` for the icon. To fix the problem, leave the icon `<span>` empty and put the label just after it in a text DOM node. This makes the text label render correctly, in black 14px Open Sans. Also remove the unnecessary `cls` variables and ternaries as these are already handled by the outer `if` condition. Refs #5005
2017-11-20Rearrange policies and decorators folders to include them after renaming ↵cedricnjanga
class names on several models
2017-11-20Change the use of namespace and remove modulescedricnjanga
2017-11-17Add some changes to the objectid constructioncedricnjanga
2017-11-17NetexImport: Don't destroy non-existent ReferentialsTeddy Wing
Luc discovered this error in my method that destroys associated non-ready `Referential`s: > WorkbenchImport.destroy_all WorkbenchImport Load (3.0ms) SELECT "public"."imports".* FROM "public"."imports" WHERE "public"."imports"."type" IN ('WorkbenchImport') (1.5ms) BEGIN ImportMessage Load (2.7ms) SELECT "public"."import_messages".* FROM "public"."import_messages" WHERE "public"."import_messages"."import_id" = $1 [["import_id", 58]] ImportResource Load (1.9ms) SELECT "public"."import_resources".* FROM "public"."import_resources" WHERE "public"."import_resources"."import_id" = $1 [["import_id", 58]] Import Load (0.3ms) SELECT "public"."imports".* FROM "public"."imports" WHERE "public"."imports"."parent_id" = $1 [["parent_id", 58]] ImportMessage Load (0.5ms) SELECT "public"."import_messages".* FROM "public"."import_messages" WHERE "public"."import_messages"."import_id" = $1 [["import_id", 59]] ImportResource Load (4.8ms) SELECT "public"."import_resources".* FROM "public"."import_resources" WHERE "public"."import_resources"."import_id" = $1 [["import_id", 59]] SQL (1.3ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 636]] SQL (0.3ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 635]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 634]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 633]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 632]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 631]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 630]] SQL (0.1ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 629]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 628]] SQL (0.1ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 627]] SQL (0.1ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 626]] SQL (0.3ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 625]] SQL (0.3ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 624]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 623]] SQL (0.2ms) DELETE FROM "public"."import_resources" WHERE "public"."import_resources"."id" = $1 [["id", 622]] Import Load (0.3ms) SELECT "public"."imports".* FROM "public"."imports" WHERE "public"."imports"."parent_id" = $1 [["parent_id", 59]] Referential Load (0.6ms) SELECT "public"."referentials".* FROM "public"."referentials" WHERE "public"."referentials"."id" = $1 LIMIT 1 [["id", 18]] (0.2ms) ROLLBACK NoMethodError: undefined method `ready' for nil:NilClass from .../stif-boiv/app/models/netex_import.rb:20:in `destroy_non_ready_referential' Since `referential` is not a required attribute, it can be nil. That was causing this to break because I tried to destroy a `Referential` that doesn't exist. Check that there's an associated `Referential` before trying to destroy it. Refs #4991
2017-11-17Merge pull request #113 from af83/4823-compliance_check_showteddywing
4823 compliance check show