-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement VIDIS module/service to request VIDIS offers from VIDIS Offer API * Implement new mapping table between Organisation and ServiceProvider * Implement logic to create or update ServiceProviders for VIDIS offers * Implement cron job endpoint for VIDIS ServiceProvider update * Use faker in test * Add VIDIS config keys * Add config keys for test * Add dummy test data for config test * Fix tests * Add tests * Add keys * Add and adapt tests * Change arguments to correct parameter order * Add permission check to cron controller endpoint * Adapt tests * Use root Organisation as schulstrukturknoten for VIDIS offers * Externalize VIDIS related config * Use MissingPermissionsError, remove no longer required CronJobError * Remove unnecessary import * Rename variable * Rename test files * Fix vidisConfig declaration * Change findByName * Avoid try-catch * Fix check * Fix migration * Add or adapt logs * Fix missing logging dependency for test * Add missing import of ClassLogger * Change from offer to Angebot * Add logging * Use existing method to retrieve Organisationen, remove unnecessary method and Error * Avoid magic numbers for media type file signatures
- Loading branch information
Showing
31 changed files
with
1,369 additions
and
7 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
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,20 @@ | ||
import { Migration } from '@mikro-orm/migrations'; | ||
|
||
export class Migration20241115133701 extends Migration { | ||
async up(): Promise<void> { | ||
this.addSql( | ||
'create table "organisation_service_provider" ("organisation_id" uuid not null, "service_provider_id" uuid not null, constraint "organisation_service_provider_pkey" primary key ("organisation_id", "service_provider_id"));', | ||
); | ||
|
||
this.addSql( | ||
'alter table "organisation_service_provider" add constraint "organisation_service_provider_organisation_id_foreign" foreign key ("organisation_id") references "organisation" ("id") on update cascade;', | ||
); | ||
this.addSql( | ||
'alter table "organisation_service_provider" add constraint "organisation_service_provider_service_provider_id_foreign" foreign key ("service_provider_id") references "service_provider" ("id") on update cascade;', | ||
); | ||
} | ||
|
||
override async down(): Promise<void> { | ||
this.addSql('drop table if exists "organisation_service_provider" cascade;'); | ||
} | ||
} |
Oops, something went wrong.