forked from COmanage/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of AssignerJob and ProvisionerJob (CFM-169)
- Loading branch information
Benn Oshrin
committed
May 18, 2024
1 parent
207bb59
commit f13295c
Showing
38 changed files
with
1,136 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CoreJob plugin for CakePHP | ||
|
||
## Installation | ||
|
||
You can install this plugin into your CakePHP application using [composer](https://getcomposer.org). | ||
|
||
The recommended way to install composer packages is: | ||
|
||
``` | ||
composer require your-name-here/core-job | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "your-name-here/core-job", | ||
"description": "CoreJob plugin for CakePHP", | ||
"type": "cakephp-plugin", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=7.2", | ||
"cakephp/cakephp": "4.5.*" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.5 || ^9.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"CoreJob\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"CoreJob\\Test\\": "tests/", | ||
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
colors="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="tests/bootstrap.php" | ||
> | ||
<php> | ||
<ini name="memory_limit" value="-1"/> | ||
<ini name="apc.enable_cli" value="1"/> | ||
</php> | ||
|
||
<!-- Add any additional test suites you want to run here --> | ||
<testsuites> | ||
<testsuite name="CoreJob"> | ||
<directory>tests/TestCase/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<!-- Setup fixture extension --> | ||
<extensions> | ||
<extension class="Cake\TestSuite\Fixture\PHPUnitExtension" /> | ||
</extensions> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# COmanage Registry Localizations (core_job domain) | ||
# | ||
# Portions licensed to the University Corporation for Advanced Internet | ||
# Development, Inc. ("UCAID") under one or more contributor license agreements. | ||
# See the NOTICE file distributed with this work for additional information | ||
# regarding copyright ownership. | ||
# | ||
# UCAID licenses this file to you under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with the | ||
# License. You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# @link https://www.internet2.edu/comanage COmanage Project | ||
# @package registry | ||
# @since COmanage Registry v5.0.0 | ||
# @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | ||
|
||
msgid "error.co_id" | ||
msgstr "Requested {0} entity {1} is not in CO {2}" | ||
|
||
msgid "opt.assigner.context" | ||
msgstr "Identifier Assignment context" | ||
|
||
msgid "opt.entities" | ||
msgstr "Comma separated list of entity IDs to process" | ||
|
||
msgid "opt.provisioner.model" | ||
msgstr "Model to provision" | ||
|
||
msgid "opt.provisioner.provisioning_target_id" | ||
msgstr "Provisioning Target ID" | ||
|
||
msgid "Assigner.cancel_summary" | ||
msgstr "Job canceled after reviewing {0} entities and assigning {1} Identifier(s)" | ||
|
||
msgid "Assigner.error.assign" | ||
msgstr "Error assigning {0}: {1}" | ||
|
||
msgid "Assigner.finish_summary" | ||
msgstr "Reviewed {0} entities and assigned {1} Identifier(s)" | ||
|
||
msgid "Assigner.result.assigned" | ||
msgstr "Assigned {0}: {1}" | ||
|
||
msgid "Assigner.start_summary" | ||
msgstr "Assigning all Identifiers in context {0} for CO {1} ({2} entities)" | ||
|
||
msgid "Provisioner.cancel_summary" | ||
msgstr "Job canceled after provisioning {0} entities ({1} errors)" | ||
|
||
msgid "Provisioner.error.status" | ||
msgstr "Provisioner is disabled" | ||
|
||
msgid "Provisioner.finish_summary" | ||
msgstr "Reprovisioned {0} entities ({1} errors)" | ||
|
||
msgid "Provisioner.result.provisioned" | ||
msgstr "Reprovisioned" | ||
|
||
msgid "Provisioner.start_summary" | ||
msgstr "Reprovisioning {0} {1} entities for Provisioning Target {2}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace CoreJob\Controller; | ||
|
||
use App\Controller\AppController as BaseController; | ||
|
||
class AppController extends BaseController | ||
{ | ||
} |
Oops, something went wrong.