Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liberate annotation projects #5286

Merged
merged 14 commits into from
Jan 27, 2020
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

### Changed

- Moved project data for Groundwork from extras jsonb field and a text field to normalized tables [#5286](https://github.com/raster-foundry/raster-foundry/pull/5286)
- Clear Python Lambda function pip cache [#5274](https://github.com/raster-foundry/raster-foundry/pull/5274)

### Deprecated
Expand Down
5 changes: 4 additions & 1 deletion app-backend/batch/src/main/scala/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.rasterfoundry.batch.stacImport.ReadStacFeature
import com.rasterfoundry.batch.stacExport.WriteStacCatalog
import com.rasterfoundry.batch.notification.NotifyIngestStatus
import com.rasterfoundry.batch.geojsonImport.ImportGeojsonFiles
import com.rasterfoundry.batch.projectLiberation.ProjectLiberation

object Main {
val modules = Map[String, Array[String] => Unit](
Expand All @@ -19,6 +20,7 @@ object Main {
WriteStacCatalog.name -> (WriteStacCatalog.main(_)),
UpdateExportStatus.name -> (UpdateExportStatus.main(_)),
ImportGeojsonFiles.name -> (ImportGeojsonFiles.main(_)),
ProjectLiberation.name -> (ProjectLiberation.main(_))
)

def main(args: Array[String]): Unit = {
Expand All @@ -28,7 +30,8 @@ object Main {
case Some(main) => main(args.tail)
case _ =>
throw new Exception(
s"No job ${head} available (all available jobs: ${modules.keys.mkString(", ")})")
s"No job ${head} available (all available jobs: ${modules.keys.mkString(", ")})"
)
}
}
case _ => throw new Exception(s"No options passed: ${args.toList}")
Expand Down
Loading