aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-12-20Fix purchase window date filtercedricnjanga
2017-12-20Merge pull request #155 from af83/5325-use-policies-for-calendars-sharingAlban Peignier
Use policies for calendar sharing. Refs #5325
2017-12-20Take review into accountcedricnjanga
2017-12-20Refs #5334@3h; Add support fort NullDB in ApartmentZog
This will allow us to compile assets with a null_db adapter.
2017-12-20Fix spec after rebase5325-use-policies-for-calendars-sharingZog
2017-12-19Fix compliance check set feature to use the correct titleLuc Donnet
2017-12-19Fix i18n for compliance_check_setsLuc Donnet
2017-12-19Use stop_areas count and not size to display stop_area counterLuc Donnet
2017-12-19Replace have_link_for_each_stop_area by have_link_for_each_item as espected. ↵Alban Peignier
Refs #5291 @5m
2017-12-19Refs #5325; Fix calendat policyZog
Remove the "!archived?" condition which makes no sense here.
2017-12-19Refs #5291@0.1h; Fix rebaseZog
Fix integration_spec_helper after rebase
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug
2017-12-19Refs #5325@0.5h; Use policies for calendar sharingZog
Use policies to determine if a user is allowed to share a calendar, instead of a hardcoded string
2017-12-19ComplianceControl.dynamic_attributes: Use `stored_attributes`Teddy Wing
This method must return the keys of all `control_attributes` in subclasses of `ComplianceControl`. Now that we're not using `hstore_accessor`, this breaks. Use `stored_attributes` to get the keys since we create virtual attributes using Rails' `store_accessor`. Refs #5316
2017-12-19Merge pull request #153 from ↵Luc Donnet
af83/5291-disable-useless-checkboxes-on-referentials-index 5291 disable useless checkboxes on referentials index
2017-12-19Add `down` to 20171218174509 Hstore to JSON migrationTeddy Wing
Copy Cédric's JSON to Hstore migration for the `down` here to give us the ability to roll back. I'm guessing the solution probably comes from here: https://stackoverflow.com/questions/28315948/casting-json-to-hstore-in-postgres-9-3/28319295#28319295 Refs #5316
2017-12-19Refs #5291@0.1h; Fix rebase5291-disable-useless-checkboxes-on-referentials-indexZog
Fix integration_spec_helper after rebase
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug
2017-12-19Refs #5291@0.1h; Add missing stylesZog
Add missing styles for disabled checkboxes
2017-12-19Refs #5291@0.5h; Update viewZog
Update the view to match the actual controller behaviour.
2017-12-19Refs: #5291@1h; Update TableBuilderHelperZog
Update TableBuilderHelper to allow the `selectable` param to be a lambda, thus allowing us to have row-based granularity.
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug
2017-12-19Gemfile: Remove `hstore_accessor`Teddy Wing
We're no longer using this gem. See: * b54daa7b2d7925131572e5e5d5181cf3515a6057 * 993650cd1739a3c4c2dd6a4dc01110b57ef88f36 Refs #5316
2017-12-19Remove `hstore_accessor` usageTeddy Wing
The places we were using `hstore_accessor` have now been converted to Postgres JSON fields. Thus we no longer need `hstore_accessor` in order to add accessors for the fields. Instead we can use Rails' built-in support for Postgres JSON fields and create accessors for our JSON hash keys with `store_accessor`. We get rid of the data types because `store_accessor` doesn't work like that and JSON already types our values with primitive data types. Finally, add some extra validation tests now that the vaildation for our JSON fields should work. Refs #5316
2017-12-19Change `compliance_{controls,checks}` `control_attributes` to JSONTeddy Wing
Make these columns JSON fields again. Do this because of bugs trying to validate types with `hstore_accessor` (https://github.com/devmynd/hstore_accessor/issues/78). With a JSON field, types are preserved and we don't have to deal with casting back and forth. Previously we had converted to Hstore because the Java IEV application used an older ORM version (maybe Hibernate) that didn't support the Postgres JSON type. Because of the validation problems with Hstore, the Java application has been updated to support JSON fields. Thanks to this Stack Overflow post from 'a_horse_with_no_name' that describes how to convert from Hstore to JSON types in Postgres: https://stackoverflow.com/questions/33732529/postgres-how-to-convert-hstore-to-json-datatypes#comment55234342_33732529 Converting in this direction seems to me to be much safer because we're not losing type information. All the values should be hashes of strings, which should convert without issue into JSON. Refs #5316
2017-12-19Merge pull request #160 from af83/5307_referential_lines_menuRobert Dober
#5307 Remove update & create links
2017-12-19BusinessCalendar => PurchaseWindowcedricnjanga
belongs_to referential
2017-12-19Merge pull request #152 from af83/5287-clean-links-in-stop-areas-indexLuc Donnet
5287 clean links in stop areas index
2017-12-19Refs #5287; Uniformize actions5287-clean-links-in-stop-areas-indexZog
2017-12-19Remove update & create links5307_referential_lines_menuXinhui
Refs #5307
2017-12-19Refs #5287@0.5h; Use I18n in dashboardZog
For calendars panel, instead of hardcoded string
2017-12-19Fix link use in StopArea name into stop_areas#index. Refs #5287Alban Peignier
2017-12-19Refs #5287; CR 1Zog
- Get rid of ActiveSupport::Concern in the spec helpers - Rename misnamed spec files
2017-12-19Refactor stopareas index specsZog
2017-12-19- Fix specs on connections_links/indexZog
- Fix specs on connections_links/show - Update pundit view specs helper to use the current referential when it has already been defined
2017-12-19Refs #5287;Zog
Add specs for the view. Refactor to come
2017-12-19Remove duplicate links in StopArea index viewZog
Refs #5287
2017-12-19Refs #5333; Minor CR improvementZog
2017-12-19Refs #5333@1.5h; Use permissions to sync StopAreas and LinesZog
- add missing policies - update permissions translator - update views to check for the permission - update views helper to check for the permission - uipdate controllers to check for the permission
2017-12-19Refs #5291@0.1h; Fix rebaseZog
Fix integration_spec_helper after rebase
2017-12-19Refs #5291@0.1h; Add missing stylesZog
Add missing styles for disabled checkboxes
2017-12-19Refs #5291@0.5h; Update viewZog
Update the view to match the actual controller behaviour.
2017-12-19Refs: #5291@1h; Update TableBuilderHelperZog
Update TableBuilderHelper to allow the `selectable` param to be a lambda, thus allowing us to have row-based granularity.
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug
2017-12-19Merge branch '5287-clean-links-in-stop-areas-index'Zog
2017-12-19Controller spec AutocompleteStopAreasXinhui
Refs #5305
2017-12-19Referentials#create: Add flash message on referential duplicationTeddy Wing
When a "duplicate referential" action is initiated, show a flash message to let users know that it started and is in progress (and will take a while since it's an asynchronous task). Refs #5317
2017-12-19Refs #5331; Show user's name ...Zog
... instead of user's username in the top bar
2017-12-19Referentials#validate: Remove `I18n.` prefixTeddy Wing
Call `#t` directly since we can and because the rest of the controller does this without the `I18n.` prefix. Refs #5317
2017-12-19Referentials#validate: Update flash messageTeddy Wing
* Luc specified a new flash message string to use here. Update the old one with the new version. * Move the translation key to `notice.referentials.validate` because we have multiple "operation_in_progress" messages (this one for validation, and another for referential cloning/duplication). * Add a test to confirm that the flash message is set. Refs #5317