diff --git a/README.md b/README.md index 4a8107286..0ad1c39ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

IATI Publisher

CodeFactor

+

IATI Publisher

CodeFactor

IATI Publisher is a free-to-use publishing tool built using Laravel framework which will provide a simplified, intuitive, robust and more efficient process for publishers to add, modify and update their IATI data. @@ -17,9 +17,9 @@ The prerequisite for this project are: ## Install IATI Publisher can be cloned from GitHub repository and installed as follows: -- git clone https://github.com/IATI/iatipublisher.git
+- git clone https://github.com/iati/iatipublisher.git
OR
- git clone git@github.com:IATI/iatipublisher.git + git clone git@github.com:iati/iatipublisher.git - cd iatipublisher ## Run @@ -43,7 +43,7 @@ This application is coded in PHP using [Laravel](https://laravel.com/docs/9.x) f ## Tools and packages -The packages used in this application can be seen in [composer.json](https://github.com/IATI/iatipublisher/blob/main/composer.json) and [package.json](https://github.com/IATI/iatipublisher/blob/main/package.json) file. Some of the important packages and dependencies used are: +The packages used in this application can be seen in [composer.json](https://github.com/iati/iatipublisher/blob/main/composer.json) and [package.json](https://github.com/iati/iatipublisher/blob/main/package.json) file. Some of the important packages and dependencies used are: - Sass: ^1.32.11 - Vue: ^3.0.23 - Typescript: ^4.6.3 diff --git a/app/Console/Commands/ClearOlderAuditLogs.php b/app/Console/Commands/ClearOlderAuditLogs.php index 9032019e9..93b1b19ad 100644 --- a/app/Console/Commands/ClearOlderAuditLogs.php +++ b/app/Console/Commands/ClearOlderAuditLogs.php @@ -28,7 +28,7 @@ class ClearOlderAuditLogs extends Command * * @var string */ - protected $description = 'Clear audit logs older than one month. See issue: https://github.com/IATI/iatipublisher/issues/1456'; + protected $description = 'Clear audit logs older than one month. See issue: https://github.com/iati/iatipublisher/issues/1456'; /** * Execute the console command. diff --git a/app/Console/Commands/FetchOrganisationRegistrationAgency.php b/app/Console/Commands/FetchOrganisationRegistrationAgency.php index 50fb89e91..c9356d12e 100644 --- a/app/Console/Commands/FetchOrganisationRegistrationAgency.php +++ b/app/Console/Commands/FetchOrganisationRegistrationAgency.php @@ -14,7 +14,7 @@ * Used in cronjob to run every day at 12:00 AM. * Fetches and updates json file on S3 AppData/Data/Organization/OrganizationRegistrationAgency.json daily. * On success, updates redis cache value with key AppData/Data/Organization/OrganizationRegistrationAgency.json. - * This is for issue 1342: https://github.com/IATI/iatipublisher/issues/1342. + * This is for issue 1342: https://github.com/iati/iatipublisher/issues/1342. * * @class FetchOrganisationRegistrationAgency */ diff --git a/app/Console/Commands/FixPublishedXmlsForIssue1363Changes.php b/app/Console/Commands/FixPublishedXmlsForIssue1363Changes.php index 3465ca8d7..b2f4374cb 100644 --- a/app/Console/Commands/FixPublishedXmlsForIssue1363Changes.php +++ b/app/Console/Commands/FixPublishedXmlsForIssue1363Changes.php @@ -18,7 +18,7 @@ /** * This command implements changes to fix the bug raised in issue 1363. - * See issue: https://github.com/IATI/iatipublisher/issues/1363. + * See issue: https://github.com/iati/iatipublisher/issues/1363. * * [!!WARNING!!] This is a one time use command. * diff --git a/app/Console/Commands/Issue1419FillFullnameAndEmailInAuditLog.php b/app/Console/Commands/Issue1419FillFullnameAndEmailInAuditLog.php index d7143178b..2ed0d4641 100644 --- a/app/Console/Commands/Issue1419FillFullnameAndEmailInAuditLog.php +++ b/app/Console/Commands/Issue1419FillFullnameAndEmailInAuditLog.php @@ -12,7 +12,7 @@ /** * class Issue1419FillFullnameAndEmailInAuditLog. * - * Issue link : https://github.com/IATI/iatipublisher/issues/1419 + * Issue link : https://github.com/iati/iatipublisher/issues/1419 */ class Issue1419FillFullnameAndEmailInAuditLog extends Command { diff --git a/app/Console/Commands/Issue1419HardDeleteSoftDeletedUsers.php b/app/Console/Commands/Issue1419HardDeleteSoftDeletedUsers.php index 8d74cce42..237d98128 100644 --- a/app/Console/Commands/Issue1419HardDeleteSoftDeletedUsers.php +++ b/app/Console/Commands/Issue1419HardDeleteSoftDeletedUsers.php @@ -11,7 +11,7 @@ /** * class Issue1419HardDeleteSoftDeletedUsers. * - * Issue link : https://github.com/IATI/iatipublisher/issues/1419 + * Issue link : https://github.com/iati/iatipublisher/issues/1419 */ class Issue1419HardDeleteSoftDeletedUsers extends Command { diff --git a/app/Console/Commands/SetAppDataJsonCache.php b/app/Console/Commands/SetAppDataJsonCache.php index daed2eae3..aa8b2f826 100644 --- a/app/Console/Commands/SetAppDataJsonCache.php +++ b/app/Console/Commands/SetAppDataJsonCache.php @@ -10,7 +10,7 @@ /** * This command will set app data json cache. This command will be executed at each deployment. * - * This is for issue 1342: https://github.com/IATI/iatipublisher/issues/1342 + * This is for issue 1342: https://github.com/iati/iatipublisher/issues/1342 * * @class SetAppDataJsonCache */ diff --git a/app/IATI/Repositories/Activity/ValidationStatusRepository.php b/app/IATI/Repositories/Activity/ValidationStatusRepository.php index 0b005491a..7a281ea3f 100644 --- a/app/IATI/Repositories/Activity/ValidationStatusRepository.php +++ b/app/IATI/Repositories/Activity/ValidationStatusRepository.php @@ -217,7 +217,7 @@ public function deleteValidationResponses(): int } /** - * Change source: https://github.com/IATI/iatipublisher/issues/1423. + * Change source: https://github.com/iati/iatipublisher/issues/1423. * Bug: Activity validation status response missing some activities. * * Basically what was happening is: diff --git a/app/IATI/Services/Xml/XmlGeneratorService.php b/app/IATI/Services/Xml/XmlGeneratorService.php index 2acc89ad6..0ca9f888a 100644 --- a/app/IATI/Services/Xml/XmlGeneratorService.php +++ b/app/IATI/Services/Xml/XmlGeneratorService.php @@ -27,7 +27,7 @@ class XmlGeneratorService protected XmlSchemaErrorParser $xmlErrorParser; /** - * Change Source: https://github.com/IATI/iatipublisher/issues/1423 + * Change Source: https://github.com/iati/iatipublisher/issues/1423 * Bug: Cancel bulk publishing not working. * * We can, should and must only cancel bulk publish for activity where 'bulk_publishing_status' table is status 'created'. diff --git a/app/Rules/RequiredEitherNumericTargetValueOrActualValue.php b/app/Rules/RequiredEitherNumericTargetValueOrActualValue.php index 41b9d410a..dcb11e532 100644 --- a/app/Rules/RequiredEitherNumericTargetValueOrActualValue.php +++ b/app/Rules/RequiredEitherNumericTargetValueOrActualValue.php @@ -10,7 +10,7 @@ /** * @class RequiredEitherNumericTargetValueOrActualValue * - * Change source: https://github.com/IATI/iatipublisher/issues/1492 + * Change source: https://github.com/iati/iatipublisher/issues/1492 */ class RequiredEitherNumericTargetValueOrActualValue implements Rule { diff --git a/database/factories/IATI/Models/Activity/TransactionFactory.php b/database/factories/IATI/Models/Activity/TransactionFactory.php index ed427e774..1c006da7d 100644 --- a/database/factories/IATI/Models/Activity/TransactionFactory.php +++ b/database/factories/IATI/Models/Activity/TransactionFactory.php @@ -129,7 +129,7 @@ public function definition(): array } ], "region_vocabulary": "99", - "vocabulary_uri": "https://github.com/IATI/iatipublisher/runs/6980821807?check_suite_focus=true" + "vocabulary_uri": "https://github.com/iati/iatipublisher/runs/6980821807?check_suite_focus=true" } ], "reference": "ref test", diff --git a/database/migrations/2024_07_22_091222_update_email_collation_in_users_table.php b/database/migrations/2024_07_22_091222_update_email_collation_in_users_table.php index d85005fdf..dba45e514 100644 --- a/database/migrations/2024_07_22_091222_update_email_collation_in_users_table.php +++ b/database/migrations/2024_07_22_091222_update_email_collation_in_users_table.php @@ -9,7 +9,7 @@ use Illuminate\Support\Facades\Schema; /* - * Change source: https://github.com/IATI/iatipublisher/issues/1491 + * Change source: https://github.com/iati/iatipublisher/issues/1491 */ return new class extends Migration { /** diff --git a/packages/base/cron/clear-laravel-logs.yaml b/packages/base/cron/clear-laravel-logs.yaml index a852a648c..95d8a217e 100644 --- a/packages/base/cron/clear-laravel-logs.yaml +++ b/packages/base/cron/clear-laravel-logs.yaml @@ -13,7 +13,7 @@ spec: - name: github-credentials containers: - name: clear-laravel-logs - image: ghcr.io/IATI/iatipublisher/cli + image: ghcr.io/iati/iatipublisher/cli command: ["/bin/sh"] args: - "-c" diff --git a/packages/base/cron/cronjob.yaml b/packages/base/cron/cronjob.yaml index b064b190b..debe4b909 100644 --- a/packages/base/cron/cronjob.yaml +++ b/packages/base/cron/cronjob.yaml @@ -22,7 +22,7 @@ spec: - name: github-credentials containers: - name: iatipublisher-cron - image: ghcr.io/IATI/iatipublisher/cron + image: ghcr.io/iati/iatipublisher/cron imagePullPolicy: IfNotPresent envFrom: - configMapRef: diff --git a/packages/base/cron/custom-command-cron.yaml b/packages/base/cron/custom-command-cron.yaml index 31de2b46c..0e4f65e83 100644 --- a/packages/base/cron/custom-command-cron.yaml +++ b/packages/base/cron/custom-command-cron.yaml @@ -16,7 +16,7 @@ spec: - name: github-credentials containers: - name: iati-custom-command-cron - image: ghcr.io/IATI/iatipublisher/cli + image: ghcr.io/iati/iatipublisher/cli imagePullPolicy: IfNotPresent command: - /bin/sh diff --git a/packages/base/cron/fix-storage-permission.yaml b/packages/base/cron/fix-storage-permission.yaml index 86beceafa..5d8533a43 100644 --- a/packages/base/cron/fix-storage-permission.yaml +++ b/packages/base/cron/fix-storage-permission.yaml @@ -16,7 +16,7 @@ spec: - name: github-credentials containers: - name: iati-fix-storage-permission - image: ghcr.io/IATI/iatipublisher/cli + image: ghcr.io/iati/iatipublisher/cli imagePullPolicy: IfNotPresent command: - /bin/sh diff --git a/packages/base/fpm/deployment.yaml b/packages/base/fpm/deployment.yaml index 8ec6a1812..d38cb9b4c 100644 --- a/packages/base/fpm/deployment.yaml +++ b/packages/base/fpm/deployment.yaml @@ -22,7 +22,7 @@ spec: - name: github-credentials initContainers: - name: migrations - image: ghcr.io/IATI/iatipublisher/cli + image: ghcr.io/iati/iatipublisher/cli command: [ "/bin/sh","-c" ] args: ["chown -R www-data:www-data /opt/apps/laravel-in-kubernetes/storage/logs; php artisan migrate --force"] volumeMounts: @@ -40,7 +40,7 @@ spec: name: iatipublisher - secretRef: name: iatipublisher - image: ghcr.io/IATI/iatipublisher/fpm_server + image: ghcr.io/iati/iatipublisher/fpm_server imagePullPolicy: IfNotPresent command: [ "/bin/sh","-c" ] args: ["php artisan optimize:clear && php artisan command:UpdateJsonFiles && php artisan command:SetAppDataJsonCache && php artisan command:FetchOrganisationRegistrationAgency; php-fpm"] diff --git a/packages/base/queue-workers/deployment.yaml b/packages/base/queue-workers/deployment.yaml index dfc0d44fb..71bcd09da 100644 --- a/packages/base/queue-workers/deployment.yaml +++ b/packages/base/queue-workers/deployment.yaml @@ -30,7 +30,7 @@ spec: name: iatipublisher - secretRef: name: iatipublisher - image: ghcr.io/IATI/iatipublisher/horizon + image: ghcr.io/iati/iatipublisher/horizon lifecycle: preStop: exec: diff --git a/packages/base/webserver/deployment.yaml b/packages/base/webserver/deployment.yaml index cb336a107..e53dae7dd 100644 --- a/packages/base/webserver/deployment.yaml +++ b/packages/base/webserver/deployment.yaml @@ -22,7 +22,7 @@ spec: - name: github-credentials containers: - name: iatipublisher-webserver - image: ghcr.io/IATI/iatipublisher/web_server + image: ghcr.io/iati/iatipublisher/web_server imagePullPolicy: IfNotPresent ports: - containerPort: 80 diff --git a/packages/development/kustomization.yaml b/packages/development/kustomization.yaml index 2f5f61454..9960d0676 100644 --- a/packages/development/kustomization.yaml +++ b/packages/development/kustomization.yaml @@ -11,13 +11,13 @@ resources: - github-credentails-sealed-secret.yaml images: - - name: ghcr.io/IATI/iatipublisher/cli + - name: ghcr.io/iati/iatipublisher/cli newTag: latest - - name: ghcr.io/IATI/iatipublisher/cron + - name: ghcr.io/iati/iatipublisher/cron newTag: latest - - name: ghcr.io/IATI/iatipublisher/fpm_server + - name: ghcr.io/iati/iatipublisher/fpm_server newTag: latest - - name: ghcr.io/IATI/iatipublisher/web_server + - name: ghcr.io/iati/iatipublisher/web_server newTag: latest - - name: ghcr.io/IATI/iatipublisher/horizon + - name: ghcr.io/iati/iatipublisher/horizon newTag: latest diff --git a/packages/production/kustomization.yaml b/packages/production/kustomization.yaml index 257bbdb67..0e6e50c7d 100644 --- a/packages/production/kustomization.yaml +++ b/packages/production/kustomization.yaml @@ -12,13 +12,13 @@ resources: - github-credentails-sealed-secret.yaml images: - - name: ghcr.io/IATI/iatipublisher/cli + - name: ghcr.io/iati/iatipublisher/cli newTag: latest - - name: ghcr.io/IATI/iatipublisher/cron + - name: ghcr.io/iati/iatipublisher/cron newTag: latest - - name: ghcr.io/IATI/iatipublisher/fpm_server + - name: ghcr.io/iati/iatipublisher/fpm_server newTag: latest - - name: ghcr.io/IATI/iatipublisher/web_server + - name: ghcr.io/iati/iatipublisher/web_server newTag: latest - - name: ghcr.io/IATI/iatipublisher/horizon + - name: ghcr.io/iati/iatipublisher/horizon newTag: latest diff --git a/packages/staging/kustomization.yaml b/packages/staging/kustomization.yaml index 5d9af39ad..db7ea7459 100644 --- a/packages/staging/kustomization.yaml +++ b/packages/staging/kustomization.yaml @@ -11,13 +11,13 @@ resources: - github-credentails-sealed-secret.yaml images: - - name: ghcr.io/IATI/iatipublisher/cli + - name: ghcr.io/iati/iatipublisher/cli newTag: latest - - name: ghcr.io/IATI/iatipublisher/cron + - name: ghcr.io/iati/iatipublisher/cron newTag: latest - - name: ghcr.io/IATI/iatipublisher/fpm_server + - name: ghcr.io/iati/iatipublisher/fpm_server newTag: latest - - name: ghcr.io/IATI/iatipublisher/web_server + - name: ghcr.io/iati/iatipublisher/web_server newTag: latest - - name: ghcr.io/IATI/iatipublisher/horizon + - name: ghcr.io/iati/iatipublisher/horizon newTag: latest diff --git a/tests/Feature/Element/PolicyMarkerCompleteTest.php b/tests/Feature/Element/PolicyMarkerCompleteTest.php index 7e9aa035c..812724fc1 100644 --- a/tests/Feature/Element/PolicyMarkerCompleteTest.php +++ b/tests/Feature/Element/PolicyMarkerCompleteTest.php @@ -295,7 +295,7 @@ public function test_policy_marker_is_complete_when_only_custom_vocab_policy_mar public function test_policy_marker_is_incomplete_when_custom_vocab_and_policy_marker_text_is_missing() { $actualData = json_decode( - '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/IATI/iatipublisher","significance":"2","narrative":[{"narrative":"Narr one","language":"ng"}]}]', + '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/iati/iatipublisher","significance":"2","narrative":[{"narrative":"Narr one","language":"ng"}]}]', true ); @@ -314,7 +314,7 @@ public function test_policy_marker_is_incomplete_when_custom_vocab_and_policy_ma public function test_policy_marker_is_incomplete_when_custom_vocab_and_policy_marker_text_is_null() { $actualData = json_decode( - '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/IATI/iatipublisher","significance":"2","policy_marker_text":null,"narrative":[{"narrative":"Narr one","language":"ng"}]}]', + '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/iati/iatipublisher","significance":"2","policy_marker_text":null,"narrative":[{"narrative":"Narr one","language":"ng"}]}]', true ); @@ -333,7 +333,7 @@ public function test_policy_marker_is_incomplete_when_custom_vocab_and_policy_ma public function test_policy_marker_is_incomplete_when_custom_vocab_and_policy_marker_text_is_empty_string() { $actualData = json_decode( - '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/IATI/iatipublisher","significance":"2","policy_marker_text":"","narrative":[{"narrative":"Narr one","language":"ng"}]}]', + '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/iati/iatipublisher","significance":"2","policy_marker_text":"","narrative":[{"narrative":"Narr one","language":"ng"}]}]', true ); @@ -352,7 +352,7 @@ public function test_policy_marker_is_incomplete_when_custom_vocab_and_policy_ma public function test_policy_marker_is_complete_when_custom_vocab_and_policy_marker_text_is_zero() { $actualData = json_decode( - '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/IATI/iatipublisher","significance":"2","policy_marker_text":"0","narrative":[{"narrative":"Narr one","language":"ng"}]}]', + '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/iati/iatipublisher","significance":"2","policy_marker_text":"0","narrative":[{"narrative":"Narr one","language":"ng"}]}]', true ); @@ -371,7 +371,7 @@ public function test_policy_marker_is_complete_when_custom_vocab_and_policy_mark public function test_policy_marker_is_complete_when_custom_vocab_and_all_filled() { $actualData = json_decode( - '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/IATI/iatipublisher","significance":"2","policy_marker_text":"12345","narrative":[{"narrative":"Narr one","language":"ng"}]}]', + '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/iati/iatipublisher","significance":"2","policy_marker_text":"12345","narrative":[{"narrative":"Narr one","language":"ng"}]}]', true ); @@ -390,7 +390,7 @@ public function test_policy_marker_is_complete_when_custom_vocab_and_all_filled( public function test_policy_marker_is_complete_when_all_filled_multiple() { $actualData = json_decode( - '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/IATI/iatipublisher","significance":"2","policy_marker_text":"12345","narrative":[{"narrative":"Narr one","language":"ng"}]},{"policy_marker_vocabulary":"1","significance":"2","policy_marker":"1","narrative":[{"narrative":"Another narr","language":"ng"}]}]', + '[{"policy_marker_vocabulary":"99","vocabulary_uri":"https://github.com/iati/iatipublisher","significance":"2","policy_marker_text":"12345","narrative":[{"narrative":"Narr one","language":"ng"}]},{"policy_marker_vocabulary":"1","significance":"2","policy_marker":"1","narrative":[{"narrative":"Another narr","language":"ng"}]}]', true ); diff --git a/tests/Feature/Element/ResultCompleteTest.php b/tests/Feature/Element/ResultCompleteTest.php index f1ad5f3cb..8101830f3 100644 --- a/tests/Feature/Element/ResultCompleteTest.php +++ b/tests/Feature/Element/ResultCompleteTest.php @@ -83,7 +83,7 @@ public function test_indicator_mandatory_sub_elements(): void { $this->element = 'indicator'; /* - * Change source: https://github.com/IATI/iatipublisher/issues/1542 + * Change source: https://github.com/iati/iatipublisher/issues/1542 * Only title is a mandatory sub elements. */ $this->test_mandatory_sub_elements($this->element, []); @@ -129,7 +129,7 @@ public function test_result_mandatory_sub_elements(): void { $this->element = 'result'; /* - * Change source: https://github.com/IATI/iatipublisher/issues/1542 + * Change source: https://github.com/iati/iatipublisher/issues/1542 * Only title and type are mandatory sub elements. */ $this->test_mandatory_sub_elements($this->element, []); diff --git a/tests/Unit/Csv/BudgetCsvTest.php b/tests/Unit/Csv/BudgetCsvTest.php index becc223c0..2d1fdbd57 100644 --- a/tests/Unit/Csv/BudgetCsvTest.php +++ b/tests/Unit/Csv/BudgetCsvTest.php @@ -92,7 +92,7 @@ public function get_invalid_budget_period(): array /** * Do not throw validation if revised not match with budget period. - * Change source: https://github.com/IATI/iatipublisher/issues/1493. + * Change source: https://github.com/iati/iatipublisher/issues/1493. * * @return void * @test diff --git a/tests/Unit/TestFiles/Xml/complete.xml b/tests/Unit/TestFiles/Xml/complete.xml index 373f78c8b..b5d4887a7 100644 --- a/tests/Unit/TestFiles/Xml/complete.xml +++ b/tests/Unit/TestFiles/Xml/complete.xml @@ -438,7 +438,7 @@ - + <narrative xml:lang="ae">description</narrative> diff --git a/tests/Unit/Xml/BudgetXmlTest.php b/tests/Unit/Xml/BudgetXmlTest.php index 931d50166..f730efc94 100644 --- a/tests/Unit/Xml/BudgetXmlTest.php +++ b/tests/Unit/Xml/BudgetXmlTest.php @@ -196,7 +196,7 @@ public function date_longer_than_one_year_1800_data(): array /** * Do not throw validation if revised not match with budget period. - * Change source: https://github.com/IATI/iatipublisher/issues/1493. + * Change source: https://github.com/iati/iatipublisher/issues/1493. * * @return void * @test