-
-
Notifications
You must be signed in to change notification settings - Fork 67
Fix Thai diacritic input validation #2011
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: main
Are you sure you want to change the base?
Conversation
Fixes elimu-ai#1996 Increase the `@Size` and `@Column` annotation limits for the `text` field in `Letter.java` to 3 characters. * Update `@Size` annotation for the `text` field to 3 characters. * Update `@Column` annotation for the `text` field to 3 characters.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2011 +/- ##
=========================================
Coverage 16.06% 16.06%
Complexity 483 483
=========================================
Files 257 257
Lines 7819 7819
Branches 800 800
=========================================
Hits 1256 1256
Misses 6513 6513
Partials 50 50 ☔ View full report in Codecov by Sentry. |
WalkthroughThe change updates the Changes
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (2)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@Size(max = 2) | ||
@Column(length = 2) | ||
@Size(max = 3) | ||
@Column(length = 3) |
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.
Thank you, @AbaSheger.
Since this change involves modification of a database column, will we have to prepare a database migration script as well?
Try launching the webapp on localhost, and see if anything changes in the jpa-schema-export.sql
file. If it does, we will have to prepare a DB Migration.
Warning
Note that the database schema (jpa-schema-export.sql
) will not be automatically re-generated when you compile the source with mvn compile
; Instead, you will have to run the webapp locally with mvn jetty:run
for this file to be re-generated.
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.
Got it. I'll launch the webapp on localhost and check for any changes in the jpa-schema-export.sql file. If there are modifications, I'll proceed with preparing a DB migration script. Will update you
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.
@AbaSheger Do you need assistance with this PR? |
Thanks for asking, I got busy with school work. I will get back to this and ask you if I need help. |
Fixes #1996
Increase the
@Size
and@Column
annotation limits for thetext
field inLetter.java
to 3 characters.@Size
annotation for thetext
field to 3 characters.@Column
annotation for thetext
field to 3 characters.