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

Chore untenantize #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Chore untenantize #46

wants to merge 4 commits into from

Conversation

luchotc
Copy link
Contributor

@luchotc luchotc commented Apr 20, 2021

Introduce retenantize_in for apps (with real benefits on organic apps), which receives an organization and a tenantized_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

@@ -47,6 +47,10 @@ class Basic < Mumukit::Platform::Application
def organic_uri(_organization)
uri
end

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@julian-berbel julian-berbel removed their request for review November 24, 2021 17:14
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.

1 participant