-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chore untenantize #46
base: master
Are you sure you want to change the base?
Conversation
@@ -47,6 +47,10 @@ class Basic < Mumukit::Platform::Application | |||
def organic_uri(_organization) | |||
uri | |||
end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that Basic apps need to respond to that method, but I added it to keep it consistent with organic_uri decision
@@ -121,3 +126,9 @@ | |||
end | |||
end | |||
end | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No real benefit here, just to keep the tests less verbose
Introduce
retenantize_in
for apps (with real benefits on organic apps), which receives an organization and atenantized_path
and returns that path "retenantized".Introduce
untenantize
method which receives a path and returns that path without the organization part of the route.I could have implemented without adding a new method, but I needed to keep the other methods that receive a request because it's an interface that's still being used across other apps
Also I'm dropping inorganic_path_for that it is not required anymore