Skip to content

Initial implementation #1

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

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

Initial implementation #1

wants to merge 65 commits into from

Conversation

speedywizard
Copy link

No description provided.

Stanislav Kolotinskiy and others added 30 commits July 30, 2021 15:29
Also, enable 2FA separately via a separate endpoint
Add RepositoryPermission#owner? method
web_url: https://travis-vcs-proxy.travis-ci.org
api_url: https://travis-vcs-proxy-api.travis-ci.org
feedback_mail: '[email protected]'
mail_from: [email protected]
Copy link
Collaborator

Choose a reason for hiding this comment

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

can it be it overriden with env?

end

def mark_as_deleted
update_columns(email: "deleted_email_#{Kernel.rand(1_000_000_000)}", name: nil, active: false)

Choose a reason for hiding this comment

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

@speedywizard Just found that the email pattern is not a valid pattern so it fails when users want to delete their account.
This email pattern gives something like "deleted_email_662959238" so I thing it should be something like
"deleted_email_#{Kernel.rand(1_000_000_000)}@example.com" so it don't fail.

Copy link
Author

Choose a reason for hiding this comment

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

@travis-architect , AFAIK, update_columns doesn't run any validations. Are you sure that it's failing because of this?

Choose a reason for hiding this comment

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

@speedywizard I did the same in console and it was failing there too, so when I added the "@example.com" part, it got updated.

Copy link
Author

Choose a reason for hiding this comment

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

@travis-architect ,hm, sorry, my bad - I just checked doc. It's pretty strange to me that Rails behaves in such an inconsistent way. update_column indeed skips validations, but update_columns does not

@HambaliArab
Copy link

pls update ruby-version or Gemfile to have the same version and add specs
...and rubocop (736 offenses....)

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.

5 participants