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

Partially Revert 1b2a6e5f107254cce8200a4750035b30265ae0c8 #120

Merged

Conversation

danielsdeleo
Copy link
Contributor

Currently, mounting the /users endpoint at the top level when in
osc_compat mode causes errrors in the Chef integration tests. This may
be due to a misconfiguration in the way Chef implements local mode but I
am unable to pinpoint the exact causes right now. In any case, this is
the minimal "revert" of 1b2a6e5 that
gets Chef's integration tests working again.

@jkeiser @chef/client-core

Currently, mounting the /users endpoint at the top level when in
osc_compat mode causes errrors in the Chef integration tests. This may
be due to a misconfiguration in the way Chef implements local mode but I
am unable to pinpoint the exact causes right now. In any case, this is
the minimal "revert" of 1b2a6e5 that
gets Chef's integration tests working again.
@danielsdeleo
Copy link
Contributor Author

Oh, @jaymzh that was your commit, can you help me understand what you wanted to accomplish?

@danielsdeleo danielsdeleo mentioned this pull request Mar 28, 2015
@jaymzh
Copy link
Collaborator

jaymzh commented Mar 28, 2015

Those are the OSC URLs... OSC doesn't have organizations, users are a top-level thing... Seemed liked a bug, so I fixed when I was in there. It wasn't actually causing me a problems, so if I was wrong, I'm fine with this PR.

@jkeiser
Copy link
Contributor

jkeiser commented Mar 28, 2015

In chef zero, all endpoints always have "organizations" to keep the endpoint logic simple. When you enable single org mode, it just enables a layer that tacks "/organizations/chef" onto any URLs the user hits. That's why you see "users" under an organization there, because in osc users are a top level thing and "/organizations/chef" is the top level :) Reverting is correct in this case.

@jkeiser
Copy link
Contributor

jkeiser commented Mar 28, 2015

👍

@danielsdeleo
Copy link
Contributor Author

Ok, thanks everyone, I'll merge. Seems like we would do well to get the pedant tests passing for the users endpoint so we can catch stuff like this in travis.

@danielsdeleo danielsdeleo merged commit d9fe481 into master Mar 28, 2015
@danielsdeleo danielsdeleo deleted the partial-revert-1b2a6e5f107254cce8200a4750035b30265ae0c8 branch March 28, 2015 16:39
@jaymzh
Copy link
Collaborator

jaymzh commented Mar 28, 2015

I looked for the code doing such a transmogrification but couldn't find it, I may have just been dense that day. Sorry for the bug.

@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants