Skip to content

Mark email as not required parameter in BaseComment#1535

Merged
JohnNiang merged 12 commits intohalo-dev:masterfrom
jerry-shao:jerry-shao/dev
Nov 24, 2021
Merged

Mark email as not required parameter in BaseComment#1535
JohnNiang merged 12 commits intohalo-dev:masterfrom
jerry-shao:jerry-shao/dev

Conversation

@jerry-shao
Copy link
Contributor

Mark email as not required parameter in BaseComment

Tasks

  • Mark email as not required parameter in BaseComment
  • Added corresponding unit tests
  • Added corresponding database migration scripts

Future work

  • Remove required flag for email field in frontend templates

@ruibaby ruibaby requested review from JohnNiang and guqing November 18, 2021 02:01
@ruibaby ruibaby added this to the 1.5.x milestone Nov 18, 2021
@ruibaby ruibaby added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 18, 2021
@jerry-shao jerry-shao requested a review from ruibaby November 18, 2021 10:31
Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

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

Hi @jerry-shao , I suggest testing against comment API without providing email.

@jerry-shao
Copy link
Contributor Author

Hi @jerry-shao , I suggest testing against comment API without providing email.

Good catch, a NPE got captured by adding more tests.

@jerry-shao jerry-shao requested a review from JohnNiang November 19, 2021 12:23
@ruibaby
Copy link
Member

ruibaby commented Nov 21, 2021

/lgtm

@halo-dev-bot halo-dev-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2021
Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

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

Hi @jerry-shao , I've left some comments below, please take a moment to look at them.

@jerry-shao jerry-shao requested a review from JohnNiang November 23, 2021 15:19
@JohnNiang
Copy link
Member

Thank @jerry-shao for your contribution! I'll look at the new IT test tomorrow carefully.

BTW, please fix the check style conflicts first.

Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

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

Hi @jerry-shao , I've left one comment here. Everything is ok to me but this.

@jerry-shao jerry-shao requested a review from JohnNiang November 24, 2021 08:37
@JohnNiang
Copy link
Member

LGTM

@JohnNiang JohnNiang merged commit b301c8e into halo-dev:master Nov 24, 2021
@guqing guqing linked an issue Dec 3, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 提交评论取消对邮箱字段的非空验证

5 participants