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

Assign userid to key_pairs while creating #17693

Closed

Conversation

andyvesel
Copy link
Contributor

Added user_id to create_key_pair and create_key_pair_queue methods in order to create keypairs with assigned user ids to them.
This needed for further fixes in https://bugzilla.redhat.com/show_bug.cgi?id=1589766

@aufi
Copy link
Member

aufi commented Jul 16, 2018

@miq-bot add_label bug,blocker

@Ladas
Copy link
Contributor

Ladas commented Jul 17, 2018

@andyvesel you have some unrelated commits in this PR, can you rebase?

@miq-bot
Copy link
Member

miq-bot commented Jul 17, 2018

Checked commit andyvesel@e84934f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@aufi
Copy link
Member

aufi commented Jul 17, 2018

LGTM 👍

@andyvesel
Copy link
Contributor Author

@Ladas could you review?

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

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

Looks acceptable 👍

@Ladas
Copy link
Contributor

Ladas commented Jul 19, 2018

@miq-bot assign @agrare

@agrare
Copy link
Member

agrare commented Jul 19, 2018

The Authentications.userid field isn't intended to be used for this, it is the string username in a username/password pair.

What I think you want is to add an actual user_id foreign key and add a belongs_to :user to authentications/key_pairs and probably use the existing OwnershipMixin and/or TennancyMixin
/cc @gtanzillo @Fryguy

@JPrause
Copy link
Member

JPrause commented Jul 19, 2018

@andyvesel if this can be backported, please add the gaprindashvili/yes label

@agrare
Copy link
Member

agrare commented Sep 13, 2018

@andyvesel @aufi this should be able to be replaced by #17731

@agrare
Copy link
Member

agrare commented Sep 17, 2018

#17731 was merged, closing

@agrare agrare closed this Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants