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

#785_2 replace imageId to fileName #803

Merged
merged 2 commits into from
Nov 14, 2023
Merged

#785_2 replace imageId to fileName #803

merged 2 commits into from
Nov 14, 2023

Conversation

schoicsiro
Copy link
Contributor

Would you be able to get PR?

@schoicsiro schoicsiro requested a review from temi November 13, 2023 23:20
@schoicsiro schoicsiro changed the title #800 replace imageId to fileName #785_2 replace imageId to fileName Nov 13, 2023
@@ -409,9 +409,9 @@ class ProfileController extends BaseController {
ImageType type = params.type as ImageType
//NB this imageId param already has the file extension on it, really the file name on disk
if (type == ImageType.STAGED) {
displayLocalImage("${grailsApplication.config.image.staging.dir}/", params.opusId, params.profileId, params.imageId, true)
displayLocalImage("${grailsApplication.config.image.staging.dir}/", params.opusId, params.profileId, params.fileName, true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not rename this parameter. keep original. It is used by other parts of application.

@@ -428,9 +428,9 @@ class ProfileController extends BaseController {
ImageType type = params.type as ImageType
//NB this imageId param already has the file extension on it, really the file name on disk
if (type == ImageType.STAGED) {
displayLocalImage("${grailsApplication.config.image.staging.dir}/", params.opusId, params.profileId, params.imageId, false)
displayLocalImage("${grailsApplication.config.image.staging.dir}/", params.opusId, params.profileId, params.fileName, false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

@@ -623,10 +623,10 @@ class ApiController extends BaseController {
forward controller: "profile", action: "getLocalImage"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure the value of fileName is assigned to parameter imageId since getLocalImage action still uses imageId

in = ParameterIn.PATH,
required = true,
description = "Image id - UUID"),
description = "fileName"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure the value of fileName is assigned to parameter imageId since retrieveLocalThumbnailImage action still uses imageId

@temi temi merged commit 2cefd40 into dev Nov 14, 2023
1 check passed
@temi temi deleted the feature/#785_2 branch November 14, 2023 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants