-
Notifications
You must be signed in to change notification settings - Fork 34
Package refactoring #616
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
Package refactoring #616
Conversation
|
@GiBg1aN Hi! Thank you for your contribution! Could you split this into 2 commits (to have each renaming will be in the separate commit)? And also update the commits description to not mention the original issue (and we won't have spam comments in the issue from the temporary commits). |
|
Also don't forget to update here: |
|
There are also translations for the validators that should be updated as well: see |
|
@php-coder thank you for answering! I just splitted it in two commits and properly distributed the 3 missing files to them. |
Generated by 🚫 Danger |
| @@ -1,50 +1,50 @@ | |||
| javax.validation.constraints.NotNull.message = Поле обязательно для заполнения | |||
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.
Could you modify this file without fully decoding it?
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.
Ok, I'm gonna try the replacement with another editor
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.
If you have sed then you can do this with the command: sed -i 's|validation\.jsr303|support.beanvalidation|' src/main/resources/ru/mystamps/i18n/ValidationMessages.properties
|
@GiBg1aN Please, look at the errors from our bot and try to fix them. |
This and other similar warnings just have been fixed in the commit 1094952 They will gone if you rebase your branch against the latest master. But it's not required. |
|
@GiBg1aN I see that you use your nickname as an author for the commits. Generally I advise to use a real name (but it's not required of course). So, consider updating the author value in the commits ( |
| public @interface ReleaseDateIsNotInFuture { | ||
| String message() default "{ru.mystamps.web.validation.jsr303.ReleaseDateIsNotInFuture.message}"; | ||
| String message() default "{ru.mystamps.web.support.beanvalidation" | ||
| + ".ReleaseDateIsNotInFuture.message}"; |
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.
Why do we need this? If you were trying to fix CheckStyle complains about a long line, then in this particular case, it's better to ignore them with a special comment:
// CheckStyle: ignore LineLength for next 1 line| import ru.mystamps.web.controller.editor.ReplaceRepeatingSpacesEditor; | ||
| import ru.mystamps.web.dao.dto.LinkEntityDto; | ||
| import ru.mystamps.web.dao.dto.SeriesInfoDto; | ||
| import ru.mystamps.web.controller.dto.AddCategoryForm; |
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.
The changes like that is irrelevant to the validation package renaming and should be part of the previous commit instead. I'm trying to have the commits that are "atomic" and modifies only one particular thing at time.
Could you move such changes from this commit to the previous (it requires some diff/patch/git rebase magic)?
| public @interface ExistingActivationKey { | ||
| String message() default "{ru.mystamps.web.validation.jsr303.ExistingActivationKey.message}"; | ||
| String message() default "{ru.mystamps.web.support.beanvalidation" | ||
| + ".ExistingActivationKey.message}"; |
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.
This should be a single line.
|
Thank you again! |
|
Could you also remove these lines as they not needed anymore: mystamps/src/main/config/findbugs-filter.xml Lines 11 to 19 in 1094952
|
package ru.mystamps.web.model renamed to ru.mystamps.web.controller.dto
package ru.mystamps.web.validation.jsr303 renamed to ru.mystamps.web.support.beanvalidation
I hope that now everything is ok |
| import ru.mystamps.web.validation.jsr303.FieldsMatch; | ||
| import ru.mystamps.web.validation.jsr303.FieldsMismatch; | ||
| import ru.mystamps.web.validation.jsr303.UniqueLogin; | ||
|
|
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.
I removed this extra blank line in eede8a2 commit.
| @Documented | ||
| public @interface ExistingActivationKey { | ||
| String message() default "{ru.mystamps.web.validation.jsr303.ExistingActivationKey.message}"; | ||
| // CheckStyle: ignore LineLength for next 1 line |
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.
I fixed indentation in 348d637 commit.
|
Thank you for your time and for your tips, this was my first PR |
|
@GiBg1aN I've just added you to our contributor list: https://github.com/php-coder/mystamps/wiki/team-members Do you want to do more fixes/improvements and join our team? |
|
Thank you for your proposal, maybe in the future ;) Can I delete this branch? I don't know why but it says that there are unmerged commits |
Ok
Yes, sure.
Yes, that's because I didn't merge the commits but cherry-picked them (and also modified their descriptions). |
|
Thanky you another time, maybe in the next days I'll take a look at your other issues and try to fix them. |
|
@GiBg1aN BTW how did you find this project? |
|
I was looking for Java repos that had an issue labeled as "trivial" |
ru.mystamps.web.modelrenamed toru.mystamps.web.controller.dtoru.mystamps.web.validation.jsr303renamed toru.mystamps.web.support.beanvalidationAddressed to #591