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

Added some features #530

Closed
wants to merge 4 commits into from
Closed

Added some features #530

wants to merge 4 commits into from

Conversation

Porsh33
Copy link
Contributor

@Porsh33 Porsh33 commented Jun 16, 2021

  • Added login by UserName - login by Email support too. Also added check is user exists (login & email) on create new user
  • Remove escape sequences from Log raw view -- Remove color meta symbols from Raw log API. Probably need to make special url_query arg (?color=false) to switch between color and no color view?
  • Fixed after_* scripts -- fix after_failure not works as expected #522 . If available run after_success script only if all previous scripts exit normally. Also run after_failure script immediately after any previous script exit with errors

porsh and others added 4 commits June 14, 2021 18:23
Added check is user already exists when create new user
* Run ater_failure script only if error
* Run ater_success script only if no errors
* Add color functions
@CLAassistant
Copy link

CLAassistant commented Jun 16, 2021

CLA assistant check
All committers have signed the CLA.

@jkuri
Copy link
Contributor

jkuri commented Jun 16, 2021

hi @Porsh33, thank you for this pull request!
Can you please ammend commit messages to follow this commit message guidelines, beacause then we can generate changelog from that?

@@ -8,7 +8,7 @@ type (
ID uint `gorm:"primary_key;auto_increment;not null" json:"id"`
Email string `gorm:"not null;size:255;unique_index" json:"email"`
Password string `gorm:"not null;size:255;column:password" json:"-"`
Name string `gorm:"not null;size:255" json:"name"`
Name string `gorm:"not null;size:255;unique_index" json:"name"`
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not meant to be username originally, this is full name such as John Smith, I don't mind if you add additional property for username though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'm thinking to add "Login" field so that there won't be any confusion with "Name" later (and we wouldn't need to rename all occurrences of the Name -> Full Name later)

Copy link
Contributor Author

@Porsh33 Porsh33 left a comment

Choose a reason for hiding this comment

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

I think I will close this PR and split it into three separate PRs with the correct commit format. Thank for your advice!

worker/docker/docker.go Show resolved Hide resolved
@@ -8,7 +8,7 @@ type (
ID uint `gorm:"primary_key;auto_increment;not null" json:"id"`
Email string `gorm:"not null;size:255;unique_index" json:"email"`
Password string `gorm:"not null;size:255;column:password" json:"-"`
Name string `gorm:"not null;size:255" json:"name"`
Name string `gorm:"not null;size:255;unique_index" json:"name"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'm thinking to add "Login" field so that there won't be any confusion with "Name" later (and we wouldn't need to rename all occurrences of the Name -> Full Name later)

@Porsh33
Copy link
Contributor Author

Porsh33 commented Jun 17, 2021

Closed in favor of
#539
#540
#541

@Porsh33 Porsh33 closed this Jun 17, 2021
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.

after_failure not works as expected
3 participants