Skip to content

Commit

Permalink
fix: Use shortcode instead of shortname (DEV-3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
siers committed Apr 4, 2024
1 parent 772b160 commit d0fe3b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ object ProjectImportResponse {
implicit val codec: JsonCodec[ProjectImportResponse] = DeriveJsonCodec.gen[ProjectImportResponse]
}

case class ProjectExportInfoResponse(projectShortname: String, location: String)
case class ProjectExportInfoResponse(projectShortcode: String, location: String)
object ProjectExportInfoResponse {
def apply(info: ProjectExportInfo) =
new ProjectExportInfoResponse(info.projectShortname, info.path.toFile.toPath.toAbsolutePath.toString)
new ProjectExportInfoResponse(info.projectShortcode, info.path.toFile.toPath.toAbsolutePath.toString)

Check warning on line 21 in webapi/src/main/scala/org/knora/webapi/slice/admin/api/model/ProjectExportResponse.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/slice/admin/api/model/ProjectExportResponse.scala#L21

Added line #L21 was not covered by tests

implicit val codec: JsonCodec[ProjectExportInfoResponse] = DeriveJsonCodec.gen[ProjectExportInfoResponse]
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.knora.webapi.slice.admin.domain.model.KnoraProject
import org.knora.webapi.slice.admin.domain.model.KnoraProject.Shortcode
import org.knora.webapi.slice.admin.domain.service.ProjectExportStorageService.exportFileEnding

case class ProjectExportInfo(projectShortname: String, path: Path)
case class ProjectExportInfo(projectShortcode: String, path: Path)

trait ProjectExportStorageService {

Expand Down

0 comments on commit d0fe3b6

Please sign in to comment.