Skip to content

Accept filename FormParam on queue endpoints#70

Merged
patrick-austin merged 2 commits into36_queuingfrom
69_allow_filename
Mar 20, 2025
Merged

Accept filename FormParam on queue endpoints#70
patrick-austin merged 2 commits into36_queuingfrom
69_allow_filename

Conversation

@patrick-austin
Copy link

Closes #69

Copy link

@kevinphippsstfc kevinphippsstfc left a comment

Choose a reason for hiding this comment

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

Just a few minor things

public Response queueVisitId(@FormParam("facilityName") String facilityName,
@FormParam("sessionId") String sessionId, @FormParam("transport") String transport,
@FormParam("email") String email, @FormParam("visitId") String visitId) throws TopcatException {
@FormParam("fileName") String fileName, @FormParam("email") String email,

Choose a reason for hiding this comment

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

Also need an entry for filename in the method javadoc

@FormParam("fileName") String fileName, @FormParam("email") String email,
@FormParam("visitId") String visitId) throws TopcatException {

logger.info("queueVisitId called");

Choose a reason for hiding this comment

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

I think it would be useful to add the visitId to the log message

public Response queueFiles(@FormParam("facilityName") String facilityName,
@FormParam("sessionId") String sessionId, @FormParam("transport") String transport,
@FormParam("email") String email, @FormParam("files") List<String> files) throws TopcatException, UnsupportedEncodingException {
@FormParam("fileName") String fileName, @FormParam("email") String email,

Choose a reason for hiding this comment

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

Again fileName needs adding to the javadoc comment

@FormParam("fileName") String fileName, @FormParam("email") String email,
@FormParam("files") List<String> files) throws TopcatException, UnsupportedEncodingException {

logger.info("queueFiles called");

Choose a reason for hiding this comment

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

I think it would be useful to report the number of files being queued here eg. "queueFiles called for nnn files"

@patrick-austin patrick-austin merged commit 9a0c90b into 36_queuing Mar 20, 2025
1 check failed
@patrick-austin patrick-austin deleted the 69_allow_filename branch March 20, 2025 13:26
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