Skip to content

Add select picker to env tab on pod page #674

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

Conversation

benjaminapetersen
Copy link
Contributor

Looking @ addressing #620

screen shot 2016-10-13 at 4 44 22 pm

@jwforres @spadgett

@jwforres
Copy link
Member

Is the "Container hello-openshift Environment Variables" something being passed into the kve? Otherwise i think I'd rather see Container [container dropdown] environment variables

@spadgett
Copy link
Member

It seems odd that the environment tab on the pod page would be different than deployment configs and replication controllers. But if we change the other pages, we'll have to think about editing environment variables. Not sure how well the dropdown works in those cases. If I add a variable and switch containers, will I lose my change? What if I have an invalid value in a field that's not visible?

This also doesn't fix any performance problems if there are a lot of variables for one container. I think we need to reproduce and profile the key value editor to find the bottleneck.

@benjaminapetersen
Copy link
Contributor Author

@jwforres agree, lemme check and get rid of that extra heading.
@spadgett yeah, I dont think this fixes all performance probs by any means, but I do think its more consistent w/other tabs where we use the drop down for containers. Its at least easier to digest. Def need to figure out the performance bottleneck issue as well.

@spadgett
Copy link
Member

but I do think its more consistent w/other tabs where we use the drop down for containers

Right, but it's an editor, too. So we need to solve the usability problems with using selects for editing. And we should look at updating the "Set Resource Limits" and "Add Health Checks" editors if we add the container select here.

@benjaminapetersen
Copy link
Contributor Author

Ie, decide if we want a "done" button for each one & alert the user if they select a different container but haven't finished the first? We could let them edit both & submit, but I wonder if that is a more confusing interface.

@spadgett
Copy link
Member

decide if we want a "done" button for each one

The problem is the first done click will usually trigger a new deployment for a deployment config. Then you'll get a bunch of conflict errors if you try to edit the second container's variables because of deployment status updates.

@benjaminapetersen
Copy link
Contributor Author

Hmm. So perhaps a msg indicating "currently editing, not saved", might even be smart to put the "done" button on top...?

@benjaminapetersen
Copy link
Contributor Author

Looking at this again. Ideally we would disable the save on submit and enable when things have settled, but it isn't clear to me that we can really know if its truly settled.

I'm looking at DCs now. When I change an env var, I'll get ~10 updates via DataService.watchObject("deploymentconfigs"...).

@openshift-bot
Copy link

openshift-bot commented Nov 3, 2016

Origin Web Console Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants