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

#982 Architects are commanders for all commands now #1025

Closed
wants to merge 1 commit into from

Conversation

original-brownbear
Copy link
Contributor

#982 is resolved by this.

@alex-palevsky
Copy link
Contributor

@original-brownbear Thanks, I will find someone to review this PR soon

@alex-palevsky
Copy link
Contributor

@pinaf review this plz

)
),
String.format(
"/p/entry[@key='%s']/entry[@key='commanders']/item/text()",
Copy link

Choose a reason for hiding this comment

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

@original-brownbear why commanders?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pinaf I wanted to reproduce the currently broken case where someone is an architect but not set as a commander for the deploy command.
In this case com.rultor.agents.Agents#commanders would instantiate QnAskedBy with exactly that xpath and should still see the architect as a commander for the deploy command,
even though that part of the .yml ( and by extension that xpath ) does not contain the architects login.
Hope that explanation makes sense :)

Copy link

Choose a reason for hiding this comment

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

@original-brownbear ok and the test fails without the change in QnAskedBy, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pinaf jup :) without the change you only get the commanders from :

          logins.addAll(new Crew(repo).names());
         logins.addAll(xml.xpath(this.xpath));

and hence the auth check fails because the user is in neither list.
It's the exact situation my account here faces right now reproduced:
I'm not to be found under the above xpath, neither am I a collaborator on the repo => test fails.

@pinaf
Copy link

pinaf commented Feb 27, 2016

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Feb 27, 2016

@rultor merge

@pinaf OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Feb 27, 2016

@rultor merge

@pinaf Done! FYI, the full log is here (took me 18min)

@original-brownbear
Copy link
Contributor Author

@pinaf thanks! :)
Closing here since this was a rebase and it doesn't automatically close therefore :)

@original-brownbear
Copy link
Contributor Author

@rultor deploy

@rultor
Copy link
Collaborator

rultor commented Feb 27, 2016

@rultor deploy

@original-brownbear Sorry, I accept such requests only from authorized commanders: @yegor256, @alex-palevsky, @
, @
, @
, @
Your Github login should be added to the list of "commanders" in .rultor.yml, as explained here

@rultor
Copy link
Collaborator

rultor commented Feb 27, 2016

@rultor deploy

@original-brownbear I'm sorry, I don't understand you :( Check this page and try again please

@pinaf
Copy link

pinaf commented Feb 27, 2016

@original-brownbear looks like it didn't work.

@original-brownbear
Copy link
Contributor Author

@pinaf yes, see #982 and #1028 though, fixed now :) Stupid mistake on my end sorry :/

@alex-palevsky
Copy link
Contributor

@pinaf Many thanks! 19 mins were added to your account in Transaction ID AP-6HS631270M978080A (task took 68 hours and 2 mins)

review comments (c=4) added as a bonus

+19 added to your rating, at the moment it is: +6304

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.

4 participants