aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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-26Create STIF organisations with custom_view 'stif'. Refs #4735Alban Peignier
2017-11-26Add Organisation#custom_view and associated helper render_custom_view. Refs ↵Alban Peignier
#4735
2017-11-26Move STIF seed in db/seeds/stif.rb. Refs #5074Alban Peignier
2017-11-26Uses (sorted) .rb files found in db/seeds (instead of db/seeds.rb content). ↵Alban Peignier
Refs #5074
2017-11-22Merge pull request #123 from af83/transport_modes_fixesteddywing
Fix transport modes and submodes modules
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-21Merge pull request #122 from ↵0Napster
af83/5005-make-style-of-Oui-label-in-tables-consistent-with-the-normal-text-style 5005 make style of oui label in tables consistent with the normal text style
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-20Merge pull request #121 from ↵Robert Dober
af83/4991-netex-import--check-that-associated-referential-exists-before-trying-to-destroy-it NetexImport: Don't destroy non-existent Referentials
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-17Fix workbench name in breadcrumb Refs #4990Luc Donnet
2017-11-17Merge pull request #113 from af83/4823-compliance_check_showteddywing
4823 compliance check show
2017-11-17Merge pull request #118 from af83/4461-netext_import_error_wo_referentialteddywing
4461 netext import error wo referential
2017-11-17Refs: #4823; Rebase fixedRobert
2017-11-17bupRobert
2017-11-17Refs: #4823@0.2h; Last CRRobert
2017-11-17Refs: #4823@0.2h; Code Review Part VRobert
2017-11-17Refs: #4823@0.1h; Code Review Part IVRobert
2017-11-17Refs: #4823@0.3h; Code Review Part IIIRobert
2017-11-17Refs: #4823@0.2h; Code Review Part IIRobert
2017-11-17Refs: #4823@0.6h; Code Review Part IRobert
2017-11-17Fixes: #4823@0.5h; Fixed regression in Ransack button "Effacer" implicit ↵Robert
path does not work anymore
2017-11-17Refs: #4823@2h; Chasing and fixing regressions in feature specsRobert
2017-11-17Refs: #4823@0.2h; Changed title of compliance_check_set#executedRobert
2017-11-17Refs: #4823@0.5h; Translations changedRobert
2017-11-17Refs: #4823@1.7h; CodeReview #show -> #executedRobert
2017-11-17Refs: #4823@0.1h; Hotfix for ComplianceCheckControllerRobert
2017-11-17Fixes #4823@1h;Robert
- I18n.t explicit in helper so that it can be used in specs. - Typo in spec db setup fixed and setup of blocks put into create instead of later update.
2017-11-17Refs: #4823@4h; Fixed Transport(Sub)mode validation bugRobert
2017-11-17Refs: #4283@16h;Robert
- Implements the view Missing: - Spex failing (xpath navigation inside the display blocks is still faulty) - Links to compliance_checks#show do not work (actually not this page's problem)
2017-11-17Refs: #4823@1h; scaffolding feature spec, but blocked by #4826 [amend me] ↵Robert
[skip-ci]
2017-11-17Refs: #4461@0.75h; Fixing netex_import after_create callback to ↵Robert
after_commit on: :create
2017-11-17Refs: #4461@1h; CodeReviewRobert
- using webmock instead of mocking Net::HTTP therefore removing the connascence between the spec and the HTTP lib used in the implementation, thank you Teddy
2017-11-17Fixes: #4461@2h; Specing and ImplementingRobert
2017-11-17Refs: #4461@1.5h; Repaired netex_import factory, adapted spec/models/import_specRobert
2017-11-17Merge branch '4516_cleanup_rule_parameter_set'Xinhui
2017-11-17Remove migration4516_cleanup_rule_parameter_setXinhui
Refs #4516
2017-11-17Merge pull request #116 from ↵Luc Donnet
af83/4962-when-WorkbenchImport-is-deleted-also-delete-associated-Referential-if-ready-false 4962 when workbench import is deleted also delete associated referential if ready false
2017-11-15Merge pull request #117 from ↵Robert Dober
af83/4951-spec-to-validate-that-primary-and-foreign-keys-in-the-database-are-type-bigint 4951 spec to validate that primary and foreign keys in the database are type bigint
2017-11-15schema_spec: Make regex more readable with whitespace4951-spec-to-validate-that-primary-and-foreign-keys-in-the-database-are-type-bigintTeddy Wing
Thanks again to Robert. Today I learned what the `x` flag is. It ignores whitespace inside the regex pattern. This way we can add spaces to make the pattern more readable and still match what we were matching before when the code was more condensed. Nice! Refs #4951