aboutsummaryrefslogtreecommitdiffstats
path: root/app/workers
AgeCommit message (Collapse)Author
2017-11-03Merge pull request #106 from ↵Robert Dober
af83/4782-create-worker-for-compliance-check-copy--rb201710301748 4782 create worker for compliance check copy rb201710301748
2017-10-31Refs: #4817@0.3h; Hotfix for wrong message for spurious directories in zip file4817-better-traductionRobert
2017-10-31Refs: #4817@0.1h; CodeReview related fix filename instead of import nameRobert
2017-10-31Fixes: #4817@0.35; Translations changed, Specs adpated to new translation ↵Robert
param name
2017-10-30ComplianceControlSetCopyWorker: Pass ComplianceCheckSet ID to JavaTeddy Wing
Previously I had been passing the `ComplianceControlSet` ID to the Java API. The API actually expects the ID of the `ComplianceCheckSet`. In order to get this ID, have the `ComplianceControlSetCopier` return the `ComplianceCheckSet` that it creates, and use that to pass the the ID to the Java API. Refs #4782
2017-10-30ComplianceControlSetCopyWorker: Call Java validation APITeddy Wing
Call the Java API URL to launch a validation after having copied the `ComplianceControlSet` into a `ComplianceCheckSet`. Copied the format with error logging from `NetexImport#launch_java_import`. In the test, make the ID variables global by putting them in `let`s. Add `config.iev_url` to the Rails `test` environment so that we can access this from our tests. TODO: I just realised I'm sending the wrong ID. I should be sending the check set ID. Refs #4782
2017-10-30Add ComplianceControlSetCopyWorkerTeddy Wing
A new worker that launches the work to copy a `ComplianceControlSet` to a `ComplianceCheckSet`. Currently only handles a single control set and referential pair. Probably want to extend this to handle multiple lists of these objects. Also need to add in a call to the Java API to validate the check. Refs #4782
2017-10-24Fixes: #4633;@0.5h; CR changesRobert
2017-10-24Fixes: #4633@0.5h; Implenting correct message for inconsistent zip fileRobert
2017-10-24Refs: #4633@1h; Implenting correct message for corrupt zip fileRobert
2017-10-24Refs: #4633@0.5h; WorkbenchImportWorker implements message creation for ↵Robert
spurious directories - Speced and implemented Missing: - Exact message parameters (change key from xxx, how to add names of spurious directories)
2017-10-24Refs: #4633@3h:Robert
- Discussing Spec - Speced and implemented the corrupt zipfile part Next: - Spec incorrect directory structure part - Implement incorrect directory structure part
2017-10-17Fixes: #4727@0.1h; Added organisation to clone for and rebased master4727-clone-compliance-control-setRobert
2017-10-17Fixes: #4727@0.5h; Worker speced and implementedRobert
2017-09-06Fix import messages when referential can't be created. Delete unused sass ↵Luc Donnet
files. Refs #4259
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-29Set started_at & ended_at for WorkbenchImportWorker#performXinhui
Refs #4293
2017-08-28Don't use directly Rails.root/tmp directory (no writable on servers). Refs #4315Alban Peignier
2017-08-27Add .zip to uploaded filename (mandatory for java import ?). Refs #4273Alban Peignier
2017-08-27Make NetexImport#parent mandatory. Refs #4273Alban Peignier
2017-08-27Disable authentication in NetexImportsController for the moment. Refs #4273Alban Peignier
2017-08-25WorkbenchImportWorker#params: Remove unpermitted `referential_id`Teddy Wing
This param isn't permitted by the controller and we're currently not using it for anything. It produces a warning message in the logs, so I figured we should remove it. We may want to change the architecture to create referentials outside of the API, and thus would have to add this param in, but until then it's not needed.
2017-08-23Transferring code to Teddy; allowing him to do git push --force-with-leaseRobert
2017-08-22Refs: 4273@5h; Still debugging zip file upload inside post to Rails api; ↵Robert
Retry removed (but not the deadcode yet) [amend me]
2017-08-22Refs: #4273@3h;Robert
Debugging Java Integration (ZipService -> HTTPService -> Object Creation) - Created an ErrorFormat concern to see what went wrong in the HTTP call as so many things can go wrong due to: * Timeout Issues * Illegal database setup or cleaning before tests
2017-08-21Refs: #4273@20h; Reverse Engeneeiring RubyZip fixed ZipServiceRobert
- Replzed Lazy Enum over get_next_entry and group by with explicit looping and yielding to an instance level enumerator that yields streams per subdir (wich represents a referential). - Fixtures and Specs that use a REAL usecase. Next: Get rid of metadata kludge (should fix failing specs)
2017-08-11initialRobert
2017-08-08Microfix local renaming and codegeneration artefact removalRobert
2017-08-03renamingRobert
2017-08-01Refs: #3507@2h; CR Step 4Robert
- Added tests for HTTPService (regression) - Removed some dead code (Workbench model spec, Import factory) - Changed front_end_host to rails_host in config
2017-07-31Refs: #3507@3h; CR finishedRobert
2017-07-31Refs: #3507@2h CR 2nd legRobert
2017-07-31Refs: #3507_1726@6h Code ReviewRobert
2017-07-27Refs: 3507@2.5h; Specing WorkbenchImportWorker failure and DB behaviorRobert
- speced and implemented Import instance behavior (status, total_steps, current_step) - failure behavior and it's impact to the above
2017-07-27Fixes: #3507@1.5h Retries & Error Handling in WorkbenchImportWorkerRobert
2017-07-26Refs: #3507@4h; Finished Basic WorkbenchImportWorkerRobert
- speced but missing error treatment
2017-07-25Refs: #3507;20h Specing and Implementing the ZipServiceRobert
2017-07-21Sketching out the unzip/zip process, need to change Tempfile to ↵Robert
File.open(..., r) in a configurable directory [amend me]
2017-07-21Refs: #3507@4.5h spec setup and refactoring, using Faraday in workerRobert
- Setting up correct headers for the Webmock request (Oh Boy) - Refactoring all Faraday requests into `lib/af83/http_fetcher.rb` - Implementing the Download
2017-07-20Refs: #3507@1hRobert
Introduction of Presence Validation in Import model, for: - workbench - referential
2017-07-20bup working on WorkbenchImportWorker's integration spec [amend me]Robert
2017-06-09refs 3604 @12h all tests passRobert
2017-06-06Refs: #3604; rewriting schema cloner in RubyRobert
2017-06-06Refs: #3604; added tests for cloning with data ⇒ ✓Robert
2017-06-05Refs: #3604; Bad schema renaming and removal fixedRobert
2017-06-05xxxRobert
2017-05-31Refs: #3604; using default sidekiq queueRobert
2017-04-19removed obsolete migration 20170123131243_set_user_permissions.rb; Refs #3105Robert
2017-04-18clone_schema fixed -> lib/sql/clone_schema.sql; ↵RobertDober
lib/af83/stored_procedures.rb for sql stored procedure management; Refs #2864
2017-03-06ReferentialDestroyWorkerXinhui
Refs #2695