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

Staging switch #587

Merged
merged 11 commits into from
Jan 18, 2015
Merged

Staging switch #587

merged 11 commits into from
Jan 18, 2015

Conversation

balmas
Copy link
Member

@balmas balmas commented Jan 16, 2015

This is not the most beautiful or full-featured implementation, but I hope it will do for now. The idea is just to provide a quick way for users to access the staging environment to help us test and try out new features.

In a ideal world, I would have implemented this in a way that is a little more robust ...e .g. some better things to do would be:

  • check to be sure the current url is not the same as the relocate url
  • allow for an alternate config file specified for the relocate environment
  • make the relocate directive more self contained and not deployed in the help menu but as a nav bar icon, etc.

But I don't have a lot of time to put into it right now and really need this deployed on Perseids ASAP.

As currently coded, we'll just have to have different versions of the perseids.json conf file in the deployment branch and in the master branch to have different configurations for the relocation handler for each.

@Christof @LFDM if either of you want to give me the nod to go ahead with it as-is over the weekend, I would very much appreciate it. If not, I will do without :) My plan is to merge and deploy on Monday 19 January first in this branch, and then master (deploying master to staging on Perseids)

balmas and others added 11 commits January 16, 2015 16:30
the relocateHandler service is to allow switching between the
different deployments of arethusa (e.g. a main and a staging deployment).
would be a bit nicer if this worked liked the exitHandler as an icon in
the nav bar but I wanted to allow the possibility of supporting multiple
locations and doing a dropdown on the click on the icon was more than
I wanted to deal with for now. So the directive is just a basic list.
when merged to master this will be updated to use the sass
variables $button-color and $button-color-hover
@Christof
Copy link
Contributor

I think we can go ahead and deploy the changes (although I've not tested the changes, just read the source).
I've added some translations and stumbled on a bug which prevented the translations from being shown. If a translation file contains invalid json, the parser throws an exception and the language doesn't change. I've added the translation files to the list of files validated by jshint.

@balmas
Copy link
Member Author

balmas commented Jan 18, 2015

thanks @Christof !

balmas added a commit that referenced this pull request Jan 18, 2015
@balmas balmas merged commit 1b3a3f9 into deploy_jan6 Jan 18, 2015
@balmas balmas deleted the staging_switch branch January 18, 2015 23:42
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.

None yet

2 participants