aboutsummaryrefslogtreecommitdiffstats
path: root/app
AgeCommit message (Collapse)Author
2017-09-06Updated imports#index date filter : used the same logic for the ↵cedricnjanga
Calendar#index date filter (ransackable scope) I realized that we could submit the form with incomplete date which caused an 500 error. So I added a small JS script to prevent user from subnitting filter form with incomplete dates Since it was really similar with previous work I added two folders : /helpers & /filters to be more DRY The JS files are loaded in 4 views for the moment, hence the update in the assets.rb file
2017-09-06Merge branch 'master' of github.com:AF83/stif-boivLuc Donnet
2017-09-06Comment call for deleted class ReportConcernLuc Donnet
2017-09-05Merge pull request #61 from af83/workbenchimportworker--reinstate-teststeddywing
Workbenchimportworker reinstate tests
2017-09-05Model ComplianceCheckBlockXinhui
Refs #4387
2017-09-05Merge branch 'master' of github.com:AF83/stif-boivLuc Donnet
2017-09-05Comment call for deleted class ReportConcernLuc Donnet
2017-09-05Model ComplianceCheckSetXinhui
Refs #4386
2017-09-05Model ComplianceControlXinhui
Refs #4385
2017-09-05Refs #4322cedricnjanga
2017-09-05Referential#new_from :cedricnjanga
Added params to certains paths to have the workbench_id in it. The goal is to have the current workbench_id to assign it when do a Referential#new_from Then I finished the use of the functional scope to avoid potential errors I skipped some tests that hve a #TODO so we can easily find them
2017-09-05Model ComplianceControlBlockXinhui
Refs #4384
2017-09-05Model ComplianceControlSetXinhui
Refs #4383
2017-09-05Clean up compliance checks existing code Refs #4389 @1Luc Donnet
2017-09-05Delete call to pry in referential destroyLuc Donnet
2017-09-04Fix import status table views and first version for import_messages Refs #4527Luc Donnet
2017-09-04Delete AAM in import_resource model Refs #4527Luc Donnet
2017-09-04Fix start date format for workbench imports list view Refs #4256Luc Donnet
2017-09-04Merge branch 'master' of github.com:AF83/stif-boivLuc Donnet
2017-09-04Update workbench_import, netex_import and import_resources views Refs #4256 ↵Luc Donnet
#4257 #4258
2017-09-04add some change for the Referential#new_from to only have a line collection ↵cedricnjanga
regarding the functional scope of the current organozation
2017-09-01TableBuilderHelper: Fix formatting of doc exampleTeddy Wing
2017-09-01TableBuilderHelper: Add `link_to` to header documentationTeddy Wing
Add the new `link_to` argument to the example to show how it's used.
2017-09-01Revert "TableBuilderHelper::Column#link_to: Allow arbitrary number of arguments"Teddy Wing
This reverts commit 28db706443a912e8355e4c48488dc40c403e7f76. Turns out we didn't need to be able to pass an arbitrary number of arguments to the lambda after all. The URL helper objects necessary in addition to the first argument to the lambda can be retrieved from the view context directly instead of passing them into the block as parameters (which would actually make things more difficult, because the block is called in the `TableBuilderHelper`, thus outside the scope of the view).
2017-09-01table_builder_2: Use `Column#link_to` in all table builder callsTeddy Wing
Rewrite table builder calls to work with the new `TableBuilderHelper::Column#link_to` mechanism for defining the linked column and what it points to. This takes the link out of the `TableBuilderHelper`, and puts it into the hands of the view. It gives us more flexibility with regards to what can be defined as a link in our tables and what those links point to. This will be used in a more meaningful way in the `imports#show` page to list `NetexImport`s and provide links to both the referential associated with a Netex import and the imported file status page from a table row.
2017-09-01TableBuilderHelper::Column#link_to: Allow arbitrary number of argumentsTeddy Wing
This enables us to pass multiple objects into the lambda, so that we can for example build a URL using a Rails helper using multiple objects. Example: column.link_to(referential, item) lambda do |referential, item| some_path(referential, item) end
2017-09-01TableBuilderHelper#tbody: Use new `Column#link_to` for all column linksTeddy Wing
Instead of always linking to the `name` and `comment` attributes, allow any column to link to any thing by calling the new `TableBuilderHelper::Column#link_to` method. Because `linkable?`-ness is now determined at the column level, we can get rid of the `#column_is_linkable?` method here. The code is still pretty much "en désordre" as a result of the `overhead` code tornado, but we'll have to deal with that later. (Oh goodness I hope we get to deal with it.)
2017-09-01TableBuilderHelper: Test out column-specific `#link_to`Teddy Wing
Testing out the new `TableBuilderHelper::Column#link_to` method to provide the link needed to go to the row object's #show page. Seems to work in this context, which is promising!
2017-09-01TableBuilderHelper::Column: Add `#linkable?` methodTeddy Wing
This tells the markup assembler whether or not this column should be wrapped in a link (`<a>`). It intends to serve the same purpose as `TableBuilderHelper#column_is_linkable`, but at the column level. The idea is to remove that method when these links only operate by column and not by pre-defined values like before/now.
2017-09-01TableBuilderHelper::Column: Add `link_to` argumentTeddy Wing
This parameter will be used as the `href` to link the column value somewhere. We give it a lambda because this makes it easier to call any method on the row object. This means the accessor needs to take the object as an argument, like in the `#value` method, because we don't have a better way to handle that (it can't be done at initialisation time because at that point we don't have row objects, we have a collection).
2017-09-01Prefix local_id with IBOOXinhui
Refs #4237
2017-08-31Merge branch 'master' into stif_netex_objectidXinhui
2017-08-31Fix features spec connection_linksXinhui
2017-08-31Default local_idXinhui
2017-08-31Refactoring objectid support & specXinhui
2017-08-31Fix message_attributs undefined methodXinhui
2017-08-31Refs #4369: adding import status helperjpl
2017-08-31Add warning status to import Refs #4258Luc Donnet
2017-08-31WorkbenchImportWorker: Use `#update` instead of `#update_attributes`Teddy Wing
The new form is `#update` and the specs (broken as they are) mock `#update`, so this call should do the same.
2017-08-31Edit local_id with referential id & rails idXinhui
2017-08-31Remove model WorkbenchObjectIdentifierXinhui
2017-08-30Merge branch 'master' of github.com:AF83/stif-boivLuc Donnet
2017-08-30Update show data for import Refs #4258Luc Donnet
2017-08-30Merge pull request #58 from af83/import-model--clean-up-code-and-add-specsteddywing
Import model clean up code and add specs
2017-08-30Refs #4177cedricnjanga
2017-08-30Updating project-specific iconfont for page headers (in views)jpl
2017-08-30Updating project-specific iconfont for page headersjpl
2017-08-30Don't launch_java_import if NetexImport#status is finished. Refs #4338Alban Peignier
2017-08-30Import#child_change: Remove `child` argumentTeddy Wing
It isn't used any more so get rid of it. I had forgotten to remove the argument from the place it was actually called in the code when I did this previously in 61817b2e7828455021bcec66e2d6da70f879e1c4. Actually, Alban hadn't modified the method signature in the code he gave me, I shouldn't have committed that change as him, my bad. The argument was added back in because it caused `#notify_parent` to fail. Update that method so it makes the correct method call.
2017-08-29Make ready children referentials when Import is finalizedAlban Peignier