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

Config data isolation to support multitenancy #5

Open
takoratta opened this issue Jul 12, 2013 · 3 comments
Open

Config data isolation to support multitenancy #5

takoratta opened this issue Jul 12, 2013 · 3 comments

Comments

@takoratta
Copy link

_config.yml, img/functions/confog.js and img/functions/cofog_dailybread.js store site specific data (* though there seems a bug reported as #4).

However, you still need to fork Github repository to change at least these three files to support other local governments. Considering the maintenance, there could be better way to support multiple local governments. Otherwise, once some sources are updated, every site which forked the repository needs to update them as well.

A feature request I'm proposing is to store all necessary site specific data in one (or a few) files with proper naming and switch the data based on user's request.

For example, when you as a user visit the site, let's say http://spending.jp/yokohama, spending.jp site which is the main host of WDMMG in Japan detects that you want to see Yokohama's data by seeing the URL and load Yokohama data.

There might be several ways to make it but one option is:

  • create a config folder named "config"
  • put site specific data into this folder, with city name like yokohama.yml or yokohama.json
  • if multiple config data is required, having subfolder under "config" with city name also works

Again, this is just an idea but what we need is multitenancy with separate config files.

@trickvi
Copy link
Contributor

trickvi commented Jul 12, 2013

This is great idea. Something similar has been done for cameroon.openspending.org. Would something like that work?

@takoratta
Copy link
Author

Thanks, I took a rough look at http://cameroon.openspending.org/ and found it useful. I think having a unique link to each regional page is good if we share it on social medias.

@anderspeders
Copy link

Hi @takoratta,
Do you have any update on this? If you need help let the rest of the team at OKF Japan or us know :-)

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

No branches or pull requests

3 participants