Coder Social home page Coder Social logo

oat-sa / tao-core Goto Github PK

View Code? Open in Web Editor NEW
57.0 54.0 32.0 265.99 MB

main extension of TAO

Home Page: http://www.taotesting.com

License: GNU General Public License v2.0

PHP 68.15% CSS 1.38% Shell 0.02% PLpgSQL 0.01% PLSQL 0.01% HTML 0.84% JavaScript 26.36% Smarty 0.93% TSQL 0.01% SCSS 2.29%
assessment

tao-core's Introduction

tao-core

codecov

Webhooks

Description

Webhooks allow you to send a request to remote server based on triggered event

How to use it

Register event webhook.

use command \oat\tao\scripts\tools\RegisterEventWebhook to register events that are implementing \oat\tao\model\webhooks\configEntity\WebhookInterface interface.

i.e:

$ php index.php 'oat\tao\scripts\tools\RegisterEventWebhook'
    \ -u "https://example.com"
    \ -m "POST"
    \ -e "<<Class FQN>>"

Check ACL Permissions

In order to check ACL permissions, you can use the PermissionChecker:

$permissionChecker = $this->getServiceLocator()->get(oat\tao\model\accessControl\PermissionChecker::class);

$permissionChecker->hasWriteAccess('resourceId');
$permissionChecker->hasReadAccess('resourceId');
$permissionChecker->hasGrantAccess('resourceId');

Important: It takes into consideration the current user in the session, if no user is provided.

Roles Access (rules and action permissions)

Description

Script allow you to apply (add)/revoke (remove) list of rules and/or permissions to a specific roles and actions.

How to use it

Execute the following command to apply (add) new rules/permissions:

$ php index.php 'oat\tao\scripts\tools\accessControl\SetRolesAccess' \
--config [config.json|json_string]

If you want to revoke (remove) them, add --revoke flag:

$ php index.php 'oat\tao\scripts\tools\accessControl\SetRolesAccess' \
--revoke \
--config [config.json|json_string]

Config example

{
  "rules": {
    "role": [
      {
        "ext": "extensionIdentifier",
        "mod": "actionControllerName",
        "act": "actionMethodName"
      }
    ]
  },
  "permissions": {
    "controller": {
      "action": {
        "rule1": "READ",
        "rule2": "WRITE"
      }
    }
  }
}

Environment variables

Here you can find the environment variables including feature flags

Variable Description Default value
FEATURE_FLAG_LISTS_DEPENDENCY_ENABLED Enable Remote Lists Dependency feature -
FEATURE_FLAG_ADVANCED_SEARCH_DISABLED Disable advanced search feature, if set to 1 -
FEATURE_FLAG_STATISTIC_METADATA_IMPORT Enable statistics metadata import -
FEATURE_FLAG_CKEDITOR_SOURCEDIALOG Enable source editing for ckeditor false
GOOGLE_APPLICATION_CREDENTIALS Path to GCP credentials path -
DATA_STORE_STATISTIC_PUB_SUB_TOPIC Topic name for statistic metadata Pub/Sub -
REDIRECT_AFTER_LOGOUT_URL Allows to configure the redirect after logout via environment variable. The fallback is the configured redirect on urlroute.conf.php -
PORTAL_URL The Portal url used on the back button of Portal theme -

Routing

Check more information about actions/controllers and routing here

Observer implementations

Check the current observer implementations here

tao-core's People

Contributors

alexeyvy avatar alroniks avatar anastasiaarcadia avatar antoinerobin avatar atsymuk avatar bartlomiejmarszal avatar boajer avatar btamas avatar bziondik avatar chrisphpgarcia avatar clagosarias avatar dresha-dev avatar handleman avatar ionutpad avatar jbout avatar jsconan avatar krampstudio avatar llecaque avatar martijn-tao avatar mike-ionut-mihai-sandu-tao avatar no-chris avatar oatymart avatar sergiitao avatar shpran avatar siwane avatar ssipasseuth avatar tikhanovicha avatar uncleempty avatar wazelin avatar zagovorichev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tao-core's Issues

Translation does not propose all data-languages due to typo

The "translate" feature in UI does not propose all data-languages proposed in user-settings data-languages.
The displayed lists differ due to the use of 2 different functions:

  • tao_helpers_I18n::getAvailableLangsByUsage for translation
  • tao_models_classes_LanguageService::singleton()->getAvailableLanguagesByUsage for user settings

The first function returns bad values due to the presence in database of two different properties:

  • tao.rdf#LanguageUsages (defined in tao.rdf)
  • tao.rdf#languageUsages (used in helpers\translation\class.RDFUtils.php: $doc->createElementNS($base, 'tao:languageUsages'); and in XML tag used in lang.rdf files)

failed to open Items/Tests/Test-taker/... , with following JS helpers.js error

Hi, am unsure in which repo to post this issue, I am not able to resolve the following issue, would appreciate if anyone has any suggestions.

After TAO installation using admin account not able to open Items/Tests/Test-taker/... , with following JS error:

core/logger Caught[via window.onerror]: 'Uncaught TypeError: All parts are required to build an URL' from http://13.246.10.108/tao/tao/views/js/helpers.js?buster=2023.06:118:17 Error: Caught[via window.onerror]: 'Uncaught TypeError: All parts are required to build an URL' from http://13.246.10.108/tao/tao/views/js/helpers.js?buster=2023.06:118:17 at Object.log (api.js?buster=2023.06:165:21) at Object.bound [as error] (lodash.js?buster=2023.06:1249:21) at onError (logger.js?buster=2023.06:54:14) Object log @ console.js?buster=2023.06:48 helpers.js?buster=2023.06:118

Uncaught TypeError: All parts are required to build an URL at Object._url (helpers.js?buster=2023.06:118:23) at Object.start (backoffice.js?buster=2023.06:80:40) at startController (bootstrap.js?buster=2023.06:45:32) at bootstrap.js?buster=2023.06:50:17 at Object.execCb (require.js?buster=2023.06:1696:33) at Module.check (require.js?buster=2023.06:883:51) at Module.<anonymous> (require.js?buster=2023.06:1139:34) at require.js?buster=2023.06:134:23 at require.js?buster=2023.06:1189:21 at each (require.js?buster=2023.06:59:31)

PHP 7.3 compatibility

If run with PHP 7.3 (I guess everything later than 7.1) the following error is thrown on Item save:

Fatal error: Cannot use oat\taoQtiItem\model\qti\Object as Object because 'Object' is a special class name in /var/www/html/taoQtiItem/model/qti/ParserFactory.php on line 54

(seen in Web Developer tools)

On screen you see a red box saying "Unkown error". Saving does not work.

Version 3.2.0-RC2

Any plans to support QTI3?

Are there any plans to support QTI 3? I am asking this question since my Japanese colleagues are keenly interested in the support of vertical writing and ruby, which are available in QTI 3. These features are strongly required in Japanese K12.

docker image

is there docker image for tao testing

so we can install just run docker image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.