-
-
Notifications
You must be signed in to change notification settings - Fork 996
SAK-52151 Assignments Download All translates some files into Spanish and Catalan #14237
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
Conversation
WalkthroughThe pull request removes three localization keys (zip.timestamp, zip.feedback_text, zip.comments) from assignment resource bundles and updates AssignmentServiceImpl to use fixed English identifiers ("timestamp", "feedbackText", "comments") for ZIP entry names in single and grouped submission ZIP creation. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
🧰 Additional context used📓 Path-based instructions (1)**/*.java📄 CodeRabbit inference engine (.cursor/rules/logging-rule.mdc)
Files:
🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-11-24T19:12:27.663ZApplied to files:
📚 Learning: 2025-10-07T15:11:27.298ZApplied to files:
📚 Learning: 2025-10-07T16:11:33.008ZApplied to files:
📚 Learning: 2025-11-24T19:12:27.663ZApplied to files:
📚 Learning: 2025-11-24T19:12:20.537ZApplied to files:
📚 Learning: 2025-10-07T16:35:33.991ZApplied to files:
📚 Learning: 2025-10-06T22:15:40.541ZApplied to files:
🧬 Code graph analysis (1)assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java (1)
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.40.0)assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.javaThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
🧹 Nitpick comments (1)
assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java (1)
3702-3707: Stable ZIP entry name for comments — LGTM (consider constants)Works as intended. Consider centralizing basenames as constants to avoid drift and ease reuse.
- final String zipEntryName = submittersName + "comments" + AssignmentConstants.ZIP_COMMENT_FILE_TYPE; + final String zipEntryName = submittersName + AssignmentConstants.ZIP_COMMENTS_BASENAME + AssignmentConstants.ZIP_COMMENT_FILE_TYPE;And in AssignmentConstants.java:
+ public static final String ZIP_TIMESTAMP_BASENAME = "timestamp"; + public static final String ZIP_FEEDBACK_TEXT_BASENAME = "feedbackText"; + public static final String ZIP_COMMENTS_BASENAME = "comments";
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
assignment/api/src/resources/assignment.properties(0 hunks)assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java(7 hunks)
💤 Files with no reviewable changes (1)
- assignment/api/src/resources/assignment.properties
🧰 Additional context used
📓 Path-based instructions (1)
**/*.java
📄 CodeRabbit inference engine (.cursor/rules/logging-rule.mdc)
**/*.java: Use SLF4J parameterized logging (e.g., logger.info("Value is: {}", value)) instead of string concatenation in log statements
Write log messages and code comments in English; never translate log messages
**/*.java: Java: Never use local variable type inference (var). Always declare explicit types.
When proposing or writing Java code, spell out full types in local variable declarations, for-loops, and try-with-resources.
If Java code uses var, replace it with an explicit type.
Review gate: Treat any PR or suggestion containing Java var as non-compliant; require explicit types before merge.
Files:
assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java
🧬 Code graph analysis (1)
assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java (1)
assignment/api/src/java/org/sakaiproject/assignment/api/AssignmentConstants.java (1)
AssignmentConstants(31-395)
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: sakai-deploy
- GitHub Check: maven-build
- GitHub Check: maven-build
🔇 Additional comments (3)
assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java (3)
3673-3679: Stable ZIP entry name for feedback text — LGTM"feedbackText" basename looks good and consistent.
3907-3910: Group ZIP: stable timestamp entry — LGTMConsistent with the single‑submission flow.
3921-3924: Group ZIP: stable feedback text entry — LGTMMatches the non‑group naming.
https://sakaiproject.atlassian.net/browse/SAK-52151
this change was added by mistake in sakai
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.