aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2018-02-13Merge pull request #291 from ↵Johan Van Ryseghem
af83/4758-cron-job-to-finalise-compliance_check_set-validations-- 4758 cron job to finalise compliance check set validations
2018-02-12Add CHOUETTE_DEPLOY_DISABLED to disable deploy in ci taskAlban Peignier
2018-02-09Merge branch 'master' into 4126-add-i18n-jsLuc Donnet
2018-02-09Fix ci build chain for i18n:js:export to use rails environment test Refs ↵Luc Donnet
#4126 @1
2018-02-09Fix ci build chain Refs #4126 @1Luc Donnet
2018-02-09Refs #4126 @6h; Add i18n to JSZog
2018-02-09Merge pull request #296 from af83/5807-update-webpackerLuc Donnet
5807 update webpacker
2018-02-09Refs #5669 @2h; Fix SpecsZog
2018-02-09Refs 5807; Force jest specs5807-update-webpackerZog
2018-02-08schedule.rb: Add cron job to finalise `ComplianceCheckSet`sTeddy Wing
A new recurring job that does exactly the same thing as the import job. This finalises `ComplianceCheckSet`s. First we need to abort all unfinished `ComplianceCheckSet`s older than four hours. Then we finalise the imports by doing the same work in `Api::V1::Internals::ComplianceCheckSetsController#notify_parent`, namely calling `#notify_parent` on `ComplianceCheckSet`s (here, only on the ones that are finished). Add a couple new Rake tasks for compliance check sets that mirror those for imports, and do the work required by the cron job. Refs #4758
2018-02-08imports.rake(notify_parent): Use `ParentNotifier`Teddy Wing
Replace `ParentImportNotifier` with the new generalised `ParentNotifier`. This will allow us to use the same service for parent notification of both imports and compliance check sets. Delete the `ParentImportNotifier` class and spec as these are now superseded by `ParentNotifier`. Refs #4758
2018-02-07Merge branch 'master' into 5683-add_workgroup_id_to_calendarscedricnjanga
2018-02-07Add workgroup to erd diagramsLuc Donnet
2018-02-06Fix yarn installation with no production for ci and force yarn install ↵Luc Donnet
before jest launch du to webpacker bug
2018-02-06Add env variable to disable ci:jest if needed. Refs #5802Alban Peignier
2018-02-06Fix Reflex importZog
2018-02-06imports.rake: Change `abort_old` to `netex_abort_old`Teddy Wing
After re-reading the ticket, I see now that the aborting of old imports should only apply to `NetexImport`s. Update the code to make this happen. Refs #4963
2018-02-06schedule.rb: Abort old imports before import notificationTeddy Wing
As a result of a new requirement, before doing the existing work we were doing in the imports cron job (notifying parent imports), we first need to clear out old imports and mark them as 'aborted'. Refs #4963
2018-02-01Fix yarn installation with no production for ci and force yarn install ↵Luc Donnet
before jest launch du to webpacker bug
2018-02-01Add env variable to disable ci:jest if needed. Refs #5802Alban Peignier
2018-01-31Fix Reflex importZog
2018-01-31Refs #5683 @2H; Fix specs and refactor action_linksZog
Note: Did not fix the missing workgroup in the calendar mailer
2018-01-30Merge branch 'master' into 5683-add_workgroup_id_to_calendarscedricnjanga
2018-01-25ComplianceControlDecorator: Convert to new action links interfaceTeddy Wing
* Decorate the `ComplianceControl` so we can show the action links from the decorator in the header. * Add a `decorates` to get `object_class` to work inside the decorator. * Define `AF83::Decorator.define_instance_class_method` in order to enable the `@compliance_control.class.METHOD` calls in the view to work. Thanks very much to Johan for figuring out a way to do that. Refs #5586
2018-01-25AF83::Decorator::Link: Add `data-method` to HTML optionsTeddy Wing
Previously, we weren't correctly adding the HTTP method to the links in the header. This is because it's called `link_method` in the class. Put this value in `method`/`data-method` when converting the link to HTML so that the links work properly. Discovered this when deactivating and activating stop areas on http://stif-boiv.dev:3000/stop_area_referentials/1/stop_areas/139429 . Refs #5586
2018-01-25AF83::Decorator::Link: Delete `#default_class`Teddy Wing
This method was overriding classes that were added by `#add_class` in addition to those added by `#class`. Obviously, the argument to `#add_class` should be appended to the default. That seemed like a pain to do, so instead I'm getting rid of the concept of a default class. Instead, we're going to force all links to use the template-defined styles for now. That goes in line with Luc's desire to be more consistent in the links, as he stated yesterday. Refs #5586
2018-01-25PurchaseWindowDecorator: Convert to new action links interfaceTeddy Wing
Also add a new method `AF83::Decorator.define_instance_method`. Thanks to Johan for suggesting that and walking me through writing it. This new method allows us to define methods on the instance decorator. We need this to preserve the `#bounding_dates` method that was defined in `PurchaseWindowDecorator`. Refs #5586
2018-01-25AF83::Decorator::Link: Change #class? to #default_classTeddy Wing
Instead of checking for an existing class and then setting the class, provide a method to set a default class when one hasn't been defined. This does effectively the same thing but moves the condition inside the method. Thanks Johan for the suggestion! Refs #5586
2018-01-25Imports#index: Move 'New import' button to action linksTeddy Wing
Begin the process of converting the `ImportDecorator` to the new action links interface. For now, only the "New import" button on the top right of the index page is converted. The rest of the links are commented out for now and will be treated in a subsequent commit. Add a new `#class?` method to `AF83::Decorator::Link` that tells callers whether a CSS class has been defined on the link. This allows us to determine whether we should force a class or use the one provided in `_page_header.html.slim`. We need a way to specify the class of the link in the header because the "New import" button is supposed to be blue (`.btn-primary`), but the default for primary action links is white. Refs #5586
2018-01-25Refs #5586; CR #2Zog
2018-01-25Refs #5586 @2h; Fix specsZog
2018-01-25Refs 5586; CR #1Zog
2018-01-25Refs #5586; Add more specs on AF83::Decorator::LinkZog
2018-01-25Refs #5586; Add shortcut actions and refactor already migrated decoratorsZog
2018-01-25Refs #5586 @1h; Refactor ReferentialDecoratorZog
Plus: - Fix a bug on `html_options` in AF83::Decorator::Link - Add a `t` helper in AF83::Decorator to handle i18n
2018-01-25Refs #5586; Add a `feature` option on the `action_links`Zog
2018-01-25Refs #5586 @1.5h; Migrate more decoratorsZog
- Remove ApiKeyDecorator (never used) - Migrate CalendarDecorator - Migrate CompanyDecorator - Migrate TimeTableDecorator
2018-01-25Refs #5586 @1h; Migrate TimeTableDecoratorZog
2018-01-25refs #5586; Slight improvementsZog
2018-01-25Refs #5586 @1h; Ensure retrocompatibilityZog
And remove snapshots (we don't need it anymore)
2018-01-25Refs #5586 @2h; Refactor the whole thingZog
We now have a ModelDecorator and an "instance" decorator, all in the same file, with the same API.
2018-01-25Refs #5586 @2h; Better implementation of groupsZog
Used it in Lines#index and Lines#show, probably broke everything else
2018-01-25Refs #5586 @1h; Primary and secondary lonks implementationZog
As well as the `to_html` method
2018-01-25Refs #5586 @4h; First `action_links` refactorZog
- Implement new API - Migrate the LineDecorator - ensure no change on the "lines/index" view
2018-01-24update calendar build_links for table buildercedricnjanga
2018-01-23First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2018-01-19Refs #5593; Fix typo5593-task-to-update-checksumZog
2018-01-17Refs #5593; Add same task for all referentials in given organisationZog
2018-01-17Refs #5593 @1h;Zog
- Register all models that implement checksums - Add a simple rake task that updates all checksums within a given referential
2018-01-07embed packs dir into release packageFlorent Peyraud