2017 © Pedro Peláez
 

tao-extension extension-tao-sync

TAO synchronisation for offline client data.

image

oat-sa/extension-tao-sync

TAO synchronisation for offline client data.

  • Tuesday, July 31, 2018
  • by oat-lionel
  • Repository
  • 18 Watchers
  • 0 Stars
  • 330 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 30 Versions
  • 156 % Grown

The README.md

TAO Sync Extension

TAO Logo, (*1)

GitHub GitHub release GitHub commit activity, (*2)

The purpose of this extension is to synchronize a local and a remote server., (*3)

All types of data and results can be synchronized. All HTTP requests are required to be signed following the OAuth 2 standard, also are all data encrypted., (*4)

Important note: While this article uses American spelling, some of the command line instructions are in British spelling for historical reasons, e. g. synchronisation instead of synchronization!, (*5)

Installation instructions

These instructions assume that you already have a TAO installation on your system. If you don't, go to package/tao and follow the installation instructions., (*6)

Add the extension to your TAO composer and to the autoloader:, (*7)

composer require oat-sa/extension-tao-sync

Install the extension on the CLI from the project root:, (*8)

Linux:, (*9)

sudo php tao/scripts/installExtension oat-sa/extension-tao-sync

Windows:, (*10)

php tao\scripts\installExtension oat-sa/extension-tao-sync

As a system administrator you can also install it through the TAO Extension Manager: - Settings (the gears on the right-hand side of the menu) -> Extension manager - Select taoSync on the right-hand side, check the box and hit install, (*11)

Synchronization

Data synchronization

In preparation of a delivery execution, the synchronization process needs to fetch data objects of the following types from the central server:, (*12)

  • test-center
  • administrator
  • proctor
  • test-taker
  • eligibility
  • delivery

Set the chunkSize parameter in the taoSync/syncService configuration to define the amount of data per request, $type refers to the list above, e. g. test-center, (*13)

$ sudo -u www-data php index.php '\oat\taoSync\scripts\tool\synchronisation\SynchronizeData' [--type=$type]

When a delivery is published it exports a sanpshot of a QTI test package. This snapshot will be used during synchronization., (*14)

Result synchronization

Once the Client Server has the delivery result, a script sends it to the Central Server. Only completed delivery executions will be sent, results will be submitted only once. When a delivery execution is sent, the synchronization history will be updated to log the action. You can set the deleteAfterSend parameter to true to delete results after the synchronization., (*15)

To configure the amount of data per request, use the chunkSize parameter in the taoSync/resultService configuration., (*16)

Execute the following command to synchronize the result:, (*17)

$ sudo -u www-data php index.php '\oat\taoSync\scripts\tool\synchronisation\SynchronizeResult'

Synchronizing all data and results

To synchronize data and results at the same time, use the following command:, (*18)

$ sudo -u www-data php index.php '\oat\taoSync\scripts\tool\synchronisation\SynchronizeAll'

OAuth credentials

Generating credentials to allow a user to connect to the platform

This command creates a consumer with OAuth credentials., (*19)

$ sudo -u www-data php index.php '\oat\taoSync\scripts\tool\OAuth\GenerateOAuthCredentials'

The output of this command will contain the following data: - key - secret - tokenUrl, (*20)

Note: Add the -cmd flag to this command to execute it on the Client Server., (*21)

Importing OAuth credentials to Client Server

The following command will import the consumer you have created above into the Client Server. The arguments are the output from the previous command, $rootUrl is the domain name of the host server., (*22)

$ sudo -u www-data php index.php 'oat\taoSync\scripts\tool\OAuth\ImportOAuthCredentials' -k $key -s $secret -tu $tokenUrl -u $rootUrl

Scoping synchronization to a test center identifier

To be able to bind a synchronization to the organzition ID of a test center, the platform needs to register a test-center property. The SyncService has also to register new synchronizers to process by organisation id., (*23)

$ sudo -u www-data php index.php '\oat\taoSync\scripts\tool\RegisterSyncServiceByOrgId'

Note The test center organization id is http://www.taotesting.com/ontologies/synchro.rdf#organisationId_, (*24)

The Versions

31/07 2018

dev-feature/TAO-6520_allow-multiple-sync-manager

dev-feature/TAO-6520_allow-multiple-sync-manager http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

27/07 2018

dev-develop

dev-develop http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

27/07 2018

dev-master

9999999-dev http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

27/07 2018

v1.4.0

1.4.0.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

18/07 2018

v1.3.0

1.3.0.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

13/07 2018

v1.2.1

1.2.1.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

29/06 2018

v1.0.2

1.0.2.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

15/06 2018

v1.0.1

1.0.1.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

01/06 2018

v0.14.3

0.14.3.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

01/06 2018

dev-release-0.14.3

dev-release-0.14.3 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

01/06 2018

dev-hotfix/pass-app-key-to-taks/0.12.3

dev-hotfix/pass-app-key-to-taks/0.12.3 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

01/06 2018

v0.12.3

0.12.3.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

30/05 2018

dev-fix/non-existing-elig-should-not-sync

dev-fix/non-existing-elig-should-not-sync http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

30/05 2018

v0.14.2

0.14.2.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

30/05 2018

v0.12.2

0.12.2.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

28/05 2018

dev-breaking/TAO-6182_adapt-sync-handshake-endpoint

dev-breaking/TAO-6182_adapt-sync-handshake-endpoint http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

18/05 2018

v0.14.1

0.14.1.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

04/05 2018

v0.12.1

0.12.1.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

27/04 2018

dev-fix/TAO-6250/fix-some-sync-issue

dev-fix/TAO-6250/fix-some-sync-issue http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

20/04 2018

v0.12.0

0.12.0.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

18/04 2018

dev-fix/use-POST-instead-of-GET

dev-fix/use-POST-instead-of-GET http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

12/04 2018

v0.11.1

0.11.1.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

03/04 2018

v0.11.0

0.11.0.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

28/03 2018

v0.10.3

0.10.3.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

 

by Moyon Camille

tao oat computer-based-assessment

23/03 2018

v0.10.1

0.10.1.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

  • php >=7.0

 

by Moyon Camille

tao oat computer-based-assessment

16/03 2018

dev-integration_branch_org_id_and_encrypt

dev-integration_branch_org_id_and_encrypt http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

  • php >=7.0

 

by Moyon Camille

tao oat computer-based-assessment

14/03 2018

dev-feature/TAO-5788_sync-data

dev-feature/TAO-5788_sync-data http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

  • php >=7.0

 

by Moyon Camille

tao oat computer-based-assessment

08/03 2018

dev-integration/iave-synchronisation

dev-integration/iave-synchronisation http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

  • php >=7.0

 

by Moyon Camille

tao oat computer-based-assessment

23/02 2018

dev-deve

dev-deve http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

  • php >=7.0

 

by Moyon Camille

tao oat computer-based-assessment

23/02 2018

v0.1.0

0.1.0.0 http://www.taotesting.com

TAO synchronisation for offline client data.

  Sources   Download

GPL-2.0-only

The Requires

  • php >=7.0

 

by Moyon Camille

tao oat computer-based-assessment