1 Commits

Author SHA1 Message Date
Olivier PORTIER
0756b45650 Create semicolons-kudos.yaml for receiving Kudos 2023-12-27 18:50:56 +01:00
15 changed files with 43 additions and 50 deletions

View File

@@ -1,12 +1,3 @@
# Version 4.1.2
* Fix main menu label
* Fix redirection after adding a new oneshot job
# Version 4.1.1
* Fix NotModifiedContentFilter when creating new translation
# Version 4.1.0
* Allow Dataflow 4 by @jeremycr in https://github.com/code-rhapsodie/ezdataflow-bundle/pull/44

View File

@@ -1,11 +1,9 @@
# Code Rhapsodie Ibexa Dataflow Bundle
# Code Rhapsodie eZ Dataflow Bundle
### ⚠️ This project has been relocated to [ibexa-dataflow-bundle](https://github.com/code-rhapsodie/ibexa-dataflow-bundle). All future development and issues will be tracked there.
Ibexa DataflowBundle is a bundle
EzDataflowBundle is a bundle
integrating [Code Rhapsodie Dataflow bundle](https://github.com/code-rhapsodie/dataflow-bundle) into Ibexa 4.0+.
Dataflows can be piloted from an interface integrated into the Ibexa backoffice.
Ibexa Dataflow bundle is intended to manage content imports from external data sources.
EzDataflow bundle is intended to manage content imports from external data sources.
> Note: before using this bundle, please read
> the [Code Rhapsodie Dataflow bundle documentation](https://github.com/code-rhapsodie/dataflow-bundle/blob/master/README.md).
@@ -13,7 +11,7 @@ Ibexa Dataflow bundle is intended to manage content imports from external data s
> Command line notice: When you use Dataflow commands, **use `--siteaccess` instead of `--connection`** expect
> for `code-rhapsodie:dataflow:dump-schema` command.
| Ibexa Dataflow Version | Ibexa Content Version | Status |
| eZ Dataflow Version | Ibexa Content Version | Status |
|---------------------|-----------------------|------------------------------|
| 4.x | 4.x | :white_check_mark: Maintened |
| 3.x | 3.x | :white_check_mark: Maintened |
@@ -307,18 +305,18 @@ App\FieldComparator\MyFieldComparator:
# Admin UI
## Access to the Ibexa Dataflow UI
## Access to the eZ Dataflow UI
You can access the Ibexa Dataflow administration UI from your Ibexa admin back-office.
You can access the eZ Dataflow administration UI from your Ibexa admin back-office.
![Admin menu](src/Resources/doc/ez_dataflow_admin_menu.jpg)
1. Click to "Admin"
1. Click to "Ibexa Dataflow"
1. Click to "eZ Dataflow"
## Scheduled dataflow list
When you access to the Ibexa Dataflow administration UI, you going here:
When you access to the eZ Dataflow administration UI, you going here:
![Scheduled dataflow list](src/Resources/doc/scheduled_list.jpg)
@@ -334,7 +332,7 @@ When you access to the Ibexa Dataflow administration UI, you going here:
## Add a new schedule
Go to the Ibexa Dataflow admin, and click on the "+" orange button.
Go to the eZ Dataflow admin, and click on the "+" orange button.
In the new popin, fill in the fields:
@@ -355,7 +353,7 @@ Finally, click on the "Create" button.
## Read the history
When you click on the "History" tab in the Ibexa Dataflow admin UI, the job history for all Dataflow configured and
When you click on the "History" tab in the eZ Dataflow admin UI, the job history for all Dataflow configured and
executed is displayed.
![History list](src/Resources/doc/history_list.jpg)
@@ -372,7 +370,7 @@ Details of one scheduled job:
If you don't want to run a Dataflow periodically, you can add a single execution at the time and date that you want.
Go to the Ibexa Dataflow admin UI and click on the "Oneshot" tab.
Go to the eZ Dataflow admin UI and click on the "Oneshot" tab.
![Oneshot list](src/Resources/doc/oneshot_list.jpg)
@@ -388,7 +386,7 @@ Here the job has fail.
## Add a one-shot job
Go to the Ibexa Dataflow admin UI and click on the "Oneshot" tab. Click on the "+" orange button to open the adding popin.
Go to the eZ Dataflow admin UI and click on the "Oneshot" tab. Click on the "+" orange button to open the adding popin.
![The add one-shot popin](src/Resources/doc/one_shot_job.jpg)
@@ -405,7 +403,7 @@ Finally, click on the "Create" button.
# Rights
If a non-administrator user needs read-only access to the dataflow interface, add the `Setup / Administrate`
and `Ibexa Dataflow / View` policies in one of their roles.
and `eZ Dataflow / View` policies in one of their roles.
# Issues and feature requests

View File

@@ -59,9 +59,6 @@
"php-http/discovery": true
}
},
"suggest": {
"code-rhapsodie/ibexa-dataflow-bundle": "Use the new rebranded package."
},
"extra": {
"branch-alias": {
"dev-master": "4.x-dev",

View File

@@ -91,7 +91,7 @@ class JobController extends Controller
}
return new JsonResponse([
'redirect' => $this->generateUrl('coderhapsodie.ezdataflow.main', ['_fragment' => 'ibexa-tab-coderhapsodie-ezdataflow-code-rhapsodie-ezdataflow-oneshot'],
'redirect' => $this->generateUrl('coderhapsodie.ezdataflow.main', ['_fragment' => 'oneshot'],
UrlGeneratorInterface::ABSOLUTE_URL),
]);
}

View File

@@ -7,7 +7,6 @@ namespace CodeRhapsodie\EzDataflowBundle\Filter;
use CodeRhapsodie\EzDataflowBundle\Core\FieldComparator\FieldComparatorInterface;
use CodeRhapsodie\EzDataflowBundle\Model\ContentUpdateStructure;
use Ibexa\Contracts\Core\Repository\ContentService;
use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException;
use Psr\Log\LoggerAwareTrait;
/**
@@ -38,12 +37,7 @@ class NotModifiedContentFilter
if ($data->getId()) {
$content = $this->contentService->loadContent($data->getId(), [$data->getLanguageCode()]);
} else {
try {
$content = $this->contentService->loadContentByRemoteId($data->getRemoteId(), [$data->getLanguageCode()]);
} catch (NotFoundException $e) {
// New translation
return $data;
}
$content = $this->contentService->loadContentByRemoteId($data->getRemoteId(), [$data->getLanguageCode()]);
}
foreach ($data->getFields() as $identifier => $hash) {

View File

@@ -1,4 +1,4 @@
role.policy.ezdataflow: Ibexa Dataflow
role.policy.ezdataflow.all_functions: Ibexa Dataflow / All functions
role.policy.ezdataflow.view: Ibexa Dataflow / View
role.policy.ezdataflow.edit: Ibexa Dataflow / Edit
role.policy.ezdataflow: eZ Dataflow
role.policy.ezdataflow.all_functions: eZ Dataflow / All functions
role.policy.ezdataflow.view: eZ Dataflow / View
role.policy.ezdataflow.edit: eZ Dataflow / Edit

View File

@@ -1,4 +1,4 @@
role.policy.ezdataflow: Ibexa Dataflow
role.policy.ezdataflow.all_functions: Ibexa Dataflow / Toutes les fonctions
role.policy.ezdataflow.view: Ibexa Dataflow / Consultation
role.policy.ezdataflow.edit: Ibexa Dataflow / Modification
role.policy.ezdataflow: eZ Dataflow
role.policy.ezdataflow.all_functions: eZ Dataflow / Toutes les fonctions
role.policy.ezdataflow.view: eZ Dataflow / Consultation
role.policy.ezdataflow.edit: eZ Dataflow / Modification

View File

@@ -1 +0,0 @@
coderhapsodie.ezdataflow: Ibexa Dataflow

View File

@@ -1 +0,0 @@
coderhapsodie.ezdataflow: Ibexa Dataflow

View File

@@ -1 +1 @@
coderhapsodie.ezdataflow: Ibexa Dataflow
coderhapsodie.ezdataflow: eZ Dataflow

View File

@@ -1 +1 @@
coderhapsodie.ezdataflow: Ibexa Dataflow
coderhapsodie.ezdataflow: eZ Dataflow

View File

@@ -1,4 +1,4 @@
coderhapsodie.ezdataflow: Ibexa Dataflow
coderhapsodie.ezdataflow: eZ Dataflow
coderhapsodie.ezdataflow.yes: Yes
coderhapsodie.ezdataflow.no: No
coderhapsodie.ezdataflow.repeating: Repeating

View File

@@ -1,4 +1,4 @@
coderhapsodie.ezdataflow: Ibexa Dataflow
coderhapsodie.ezdataflow: eZ Dataflow
coderhapsodie.ezdataflow.yes: Oui
coderhapsodie.ezdataflow.no: Non
coderhapsodie.ezdataflow.repeating: Récurrent

View File

@@ -71,6 +71,22 @@
.closest('ul').querySelectorAll('li.ibexa-tabs__tab');
const tabs = document.getElementById('ibexa-tab-coderhapsodie-ezdataflow-code-rhapsodie-ezdataflow-repeating')
.closest('.tab-content').querySelectorAll('.tab-pane');
if (window.location.hash && window.location.hash === '#oneshot') {
labels.forEach((link) => link.classList.remove('active'));
tabs.forEach((tab) => tab.classList.remove('active'));
document.getElementById('ibexa-tab-label-coderhapsodie-ezdataflow-code-rhapsodie-ezdataflow-oneshot')
.closest('li.ibexa-tabs__tab').classList.add('active');
document.getElementById('ibexa-tab-coderhapsodie-ezdataflow-code-rhapsodie-ezdataflow-oneshot')
.closest('.tab-pane').classList.add('active');
}
if (window.location.hash && window.location.hash === '#history') {
labels.forEach((link) => link.classList.remove('active'));
tabs.forEach((tab) => tab.classList.remove('active'));
document.getElementById('ibexa-tab-label-coderhapsodie-ezdataflow-code-rhapsodie-ezdataflow-history')
.closest('li.ibexa-tabs__tab').classList.add('active');
document.getElementById('ibexa-tab-coderhapsodie-ezdataflow-code-rhapsodie-ezdataflow-history')
.closest('.tab-pane').classList.add('active');
}
});
</script>
{% endblock %}

View File

@@ -44,7 +44,6 @@
.then((result) => {
if (result.redirect) {
window.location = result.redirect;
window.location.reload();
return;
}
const node = document.createElement('div');