Skip to content

Commit

Permalink
update readme, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Jun 13, 2024
1 parent 662afa8 commit f423656
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@

# 1.5.0
- PHP 8.2 compatibility: prevent dynamic property declarations

# 1.6.0
- Introducing OcPlaylistApi REST API service endpoint.
- Fix ingest tags issues

# 1.7.0
- Adopt Opencast 16 changes (lucene search endpoint removal by toggle it in the config -> features -> lucene [default false])
- runWithRoles does not apply the headers when api version is not defined
- Playlist endpoint minor changes
- Add workflow configuration params into ingest method.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $config = [
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API Version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
];

$engageConfig = [
Expand All @@ -36,6 +37,7 @@ $engageConfig = [
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
];

use OpencastApi\Opencast;
Expand Down Expand Up @@ -73,6 +75,7 @@ $config = [
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
];


Expand Down Expand Up @@ -112,8 +115,11 @@ $config = [
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
];
```
**UPDATE (v1.7.0):** the new items called `features` is added to the configuration array. As of now, it is meant to hanlde the toggle behavior to enable/disable Lucene search endpoint simply by adding `'features' => ['lucene' => true]`. Just keep in mind that this endpoint id off by default and won't work in Opencast 16 onwards. Therefore, developer must be very careful to use this feature and to toggle it!

NOTE: the configuration for presentation (`engage` node) responsible for search has to follow the same definition as normal config. But in case any parameter is missing, the value will be taken from the main config param.

#### Extra: Dynamically loading the ingest endpoint class into Opencast instance.
Expand Down

0 comments on commit f423656

Please sign in to comment.