lightblue-platform / lightblue-applications

GNU General Public License v3.0
5 stars 9 forks source link

Have a default environment #85

Open jewzaam opened 9 years ago

jewzaam commented 9 years ago

I didn't have a cert setup. But I added a "dev" environment to the data mgmt app and clicked on "Find". This was ok, though it didn't report any errors / problems authenticating (separate issue to be opened). I then imported my cert and refreshed the page (/app/data/#/find) and it went back to the environment page and said I hadn't picked an environment.

Would be nice if it remembered the env picked. And when you didn't have one picked, optionally have a default configured.

alechenninger commented 9 years ago

The only issue I was worried about with having some environment selection persist between usages of the app was if you didn't realize you were on a certain environment and did something bad like delete, etc. There is no "undo" with something like that. So, I was thinking making you have to explicitly select an environment every time you open the app would prevent that sort of thing. Do you think this is a valid concern?

jewzaam commented 9 years ago

I think that's a valid concern. What about a browser refresh? Can we have it keep the env if you refresh the page? That is what was annoying.

alechenninger commented 9 years ago

I might be able to use a session cookie to do this. That seems like a reasonable compromise to me.