digitalfabrik / entitlementcard

App for 'Digitale Berechtigungskarten', generally benefit card for volunteers or socially vulnerable groups in Germany. App for Android & iOS + Backend + Administration Web Portal – 100% Open Source.
MIT License
36 stars 3 forks source link

1617: Optional pipeline name #1638

Closed f1sh1918 closed 4 days ago

f1sh1918 commented 2 weeks ago

Short description

In the past the store imports were managed by backend pipelines for every project. These imports ran with scheduled cron jobs. For the sozialpass projects we will use the store import module in the administration gui, so there will be no need for a backend import pipeline, so this value should be optional

Proposed changes

Side effects

Testing

Resolved issues

Fixes: #1617

f1sh1918 commented 5 days ago

i get this error:

[main] INFO app.ehrenamtskarte.backend.stores.importer.Importer - The following changes were made to the database:
Count stores deleted:   0
Count stores created:   121
Count stores untouched: 0
[main] INFO app.ehrenamtskarte.backend.stores.importer.Importer - == Pipeline SozialpassNuernberg successfully finished ==
[main] INFO app.ehrenamtskarte.backend.stores.importer.Importer - == Pipeline SozialpassKoblenz started ==
Exception in thread "main" java.lang.Error: Invalid pipeline name 'SozialpassKoblenz'!
  at app.ehrenamtskarte.backend.stores.importer.Importer.import(Importer.kt:24)
  at app.ehrenamtskarte.backend.Import.run(EntryPoint.kt:92)
  at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:198)
  at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:211)
  at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:18)
  at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:400)
  at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:397)
  at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:415)
  at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:440)
  at app.ehrenamtskarte.backend.EntryPointKt.main(EntryPoint.kt:162)

@ztefanie this happens due to your pipelineName in config.local.yml you have to remove this entry for the koblenz project, since there is no pipelane name needed