Skip to content

Commit

Permalink
updated IATI to iati
Browse files Browse the repository at this point in the history
  • Loading branch information
askaakura committed Feb 5, 2025
1 parent d31dcaf commit 7539d2b
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1> IATI Publisher</h1> <a href="https://www.codefactor.io/repository/github/IATI/iatipublisher"><img src="https://www.codefactor.io/repository/github/IATI/iatipublisher/badge" alt="CodeFactor" /></a> <br/><br/>
<h1> IATI Publisher</h1> <a href="https://www.codefactor.io/repository/github/iati/iatipublisher"><img src="https://www.codefactor.io/repository/github/iati/iatipublisher/badge" alt="CodeFactor" /></a> <br/><br/>


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.
Expand All @@ -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<br />
- git clone https://github.com/iati/iatipublisher.git<br />
OR<br />
git clone [email protected]:IATI/iatipublisher.git
git clone [email protected]:iati/iatipublisher.git
- cd iatipublisher

## Run
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/ClearOlderAuditLogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/SetAppDataJsonCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion app/IATI/Services/Xml/XmlGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/base/cron/clear-laravel-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/base/cron/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/base/cron/custom-command-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/base/cron/fix-storage-permission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/base/fpm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion packages/base/queue-workers/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/base/webserver/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions packages/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions packages/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions packages/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions tests/Feature/Element/PolicyMarkerCompleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand All @@ -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
);

Expand All @@ -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
);

Expand All @@ -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
);

Expand All @@ -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
);

Expand All @@ -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
);

Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Element/ResultCompleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, []);
Expand Down Expand Up @@ -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, []);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Csv/BudgetCsvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/TestFiles/Xml/complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
<language code="af"/>
<document-date iso-date="2023-01-09"/>
</document-link>
<reference vocabulary="99" code="2345" vocabulary-uri="https://github.com/IATI/iatipublisher/issues"/>
<reference vocabulary="99" code="2345" vocabulary-uri="https://github.com/iati/iatipublisher/issues"/>
<indicator measure="1" ascending="1" aggregation-status="1">
<title>
<narrative xml:lang="ae">description</narrative>
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Xml/BudgetXmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7539d2b

Please sign in to comment.