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

fix: 404 on delete #337

Merged
merged 2 commits into from
Jan 22, 2025
Merged

fix: 404 on delete #337

merged 2 commits into from
Jan 22, 2025

Conversation

laurentC35
Copy link
Contributor

fix tuleap#10499

@laurentC35 laurentC35 added the deploy-snapshot To be used in PR to trigger snapshot deploy pipeline label Jan 22, 2025
@github-actions github-actions bot removed the deploy-snapshot To be used in PR to trigger snapshot deploy pipeline label Jan 22, 2025
Copy link

👋 Version 4.10.3-SNAPSHOT deployed on docker hub

@laurentC35 laurentC35 merged commit 09a6993 into main Jan 22, 2025
9 checks passed
@laurentC35 laurentC35 deleted the fix/404-on-delete branch January 22, 2025 14:36
Copy link
Contributor

@nsenave nsenave left a comment

Choose a reason for hiding this comment

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

👍 (un détail de forme)

@@ -124,6 +124,6 @@ public void deleteAllVersionsByQuestionnaireIdExceptLast(String poguesId) throws
(SELECT pv.id FROM pogues_version pv WHERE pv.pogues_id = ? ORDER BY pv."timestamp" desc offset 1 );
""";
int nbVersionsDeleted = jdbcTemplate.update(qString, poguesId);
if(nbVersionsDeleted == 0) throw new PoguesException(404, "Not found", "No version to delete for poguesId "+ poguesId);
if(nbVersionsDeleted == 0) log.info("No version to delete for poguesId "+ poguesId);
Copy link
Contributor

Choose a reason for hiding this comment

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

string template de slf4j :

log.info("No version to delete for poguesId {}", poguesId)

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