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

1532 Do not allow words that are digits #1583

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

tomaszsmy
Copy link
Contributor

No description provided.

@tomaszsmy tomaszsmy requested a review from a team as a code owner July 9, 2022 17:45
@tomaszsmy tomaszsmy requested review from jpatel3, nya-elimu and sshivaditya2019 and removed request for a team July 9, 2022 17:45
jpatel3
jpatel3 previously approved these changes Jul 10, 2022
Copy link
Contributor

@jpatel3 jpatel3 left a comment

Choose a reason for hiding this comment

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

looks fine.

@codecov
Copy link

codecov bot commented Jul 11, 2022

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (816478d) 13.78% compared to head (bb1e164) 13.96%.

Files Patch % Lines
...i/elimu/web/content/word/WordCreateController.java 66.66% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1583      +/-   ##
============================================
+ Coverage     13.78%   13.96%   +0.18%     
- Complexity      454      459       +5     
============================================
  Files           257      257              
  Lines          8503     8512       +9     
  Branches        881      884       +3     
============================================
+ Hits           1172     1189      +17     
+ Misses         7279     7271       -8     
  Partials         52       52              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@nya-elimu nya-elimu left a comment

Choose a reason for hiding this comment

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

The application crashes when I try to submit an empty word:

Caused by: java.lang.NullPointerException
    at ai.elimu.web.content.word.WordCreateController.validateWord (WordCreateController.java:280)
    at ai.elimu.web.content.word.WordCreateController.handleSubmit (WordCreateController.java:116)

Screen Shot 2022-07-22 at 3 25 10 PM

Screen Shot 2022-07-22 at 3 25 19 PM

Copy link
Member

@nya-elimu nya-elimu left a comment

Choose a reason for hiding this comment

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

Added a suggestion to change how the validation works.

Copy link
Member

@nya-elimu nya-elimu left a comment

Choose a reason for hiding this comment

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

"10th" should be accepted as a word.

# Conflicts:
#	src/main/java/ai/elimu/web/content/word/WordCreateController.java
#	src/test/java/ai/elimu/web/content/word/WordCreateControllerTest.java
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.

None yet

3 participants