-
Notifications
You must be signed in to change notification settings - Fork 3
Story/vspc 275 #353
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
base: develop
Are you sure you want to change the base?
Story/vspc 275 #353
Conversation
images, fixed cancel button, fixed edit button
default images, added file upload constraints
default image styling, upgraded tika and commons-io dependencies, etc.
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Resolve conflicts please |
Make it so, Jenkins. |
Tika tika = new Tika(); | ||
System.out.println("HERE2"); | ||
String contentType = tika.detect(image); | ||
System.out.println("CONTENT TYPE: " + contentType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tststs
return "redirect:/staff/exhibit/config"; | ||
} else { | ||
setter.accept(exhibition, defaultImage); | ||
exhibition = (Exhibition) exhibitionManager.storeExhibition(exhibition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is exhibition cast here?
exhibition = (Exhibition) exhibitionManager.storeExhibition(exhibition); | ||
attributes.addAttribute("exhibitId", exhibition.getId()); | ||
attributes.addAttribute("alertType", "success"); | ||
attributes.addAttribute("message", "Successfully Saved!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Successfully saved!"
attributes.addAttribute("showAlert", "true"); | ||
} else { | ||
deleteDefautImageMethod.run(); | ||
exhibition = (Exhibition) exhibitionManager.storeExhibition(exhibition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, no casting necessary
return ResponseEntity.badRequest().body(errorMessage); | ||
} else { | ||
disableDefautImageMethod.run(); | ||
exhibition = (Exhibition) exhibitionManager.storeExhibition(exhibition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neither casting nor assigning the return value to a variable seems necessary
cancel button not disabling after default images are deleted, fixed casting of Exhibition type in controller, added javadoc for default image delete endpoint
Guidelines for Pull Requests
If you haven't yet read our code review guidelines, please do so, You can find them here.
Please confirm the following by adding an x for each item (turn
[ ]
into[x]
).Please provide a brief description of your ticket
(you can copy the ticket if it hasn't changed)
Modifications to default images for space, module, and external links
It seems like right now, only certain file types can be used (e.g. png, maybe jpeg, gif?), when uploading a new default image in the settings page, the user should only be able to upload accepted file types
it needs to be possible to use svgs
after an image has been uploaded, instead of showing the filename, it should show the filename and a thumbnail of the image
The button “Change Default XXX Link Image” should just be an icon with a hover text
It should be possible to disable the default image to go back to the original icon (so when it’s disabled, it uses the little walking man icon, if it’s enabled it uses the uploaded image).
All these apply to all three default images.
VSPC-275
Anything else the reviewer needs to know?