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

Let users define labels when creating routes #985

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Dec 5, 2016

@jwforres
Copy link
Member

jwforres commented Dec 5, 2016

I can't decide on the system labels here, I see the argument for it, but at the same time we don't let you remove the system labels.

@spadgett
Copy link
Member Author

spadgett commented Dec 5, 2016

I don't disagree, but I think it's a problem in general with how we approach system labels. What if I don't want an app label when I deploy my template for instance?

@jwforres
Copy link
Member

jwforres commented Dec 5, 2016

i think the difference that bothers me here is that in other cases they are really system labels, in this case its not just copying the system labels like the app label, its copying all the labels from the service, some of which may have been user defined

@spadgett
Copy link
Member Author

spadgett commented Dec 5, 2016

I could prefill them as user-defined labels, but it gets tricky if the user changes services in the dropdown. Or maybe a "Copy from Service" link?

@jwforres
Copy link
Member

jwforres commented Dec 5, 2016

copy from service link seems reasonable, then its easy without being forced into it

@spadgett spadgett force-pushed the create-route-labels branch from 662f391 to 14635d5 Compare December 5, 2016 17:14
@spadgett
Copy link
Member Author

spadgett commented Dec 5, 2016

Updated with a "Copy Service Labels" link.

@spadgett spadgett force-pushed the create-route-labels branch from 14635d5 to 7513f20 Compare December 5, 2016 17:16
Copy link
Member

@jwforres jwforres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nit, otherwise LGTM

can-toggle="false"
help-text="Labels for this route.">
</label-editor>
<a href="" ng-click="copyServiceLabels()">Copy service labels</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

headline case

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right above this link is "Add label" (at least until #978 merges)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k i'll leave that up to you which order you want to fix and merge the two PRs in :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge the other one first, and I'll rebase this one. About to push updates for #978

@spadgett spadgett force-pushed the create-route-labels branch from 7513f20 to e8af265 Compare December 5, 2016 17:38
@spadgett
Copy link
Member Author

spadgett commented Dec 5, 2016

Updated to headline case.

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to e8af265

@openshift-bot
Copy link

openshift-bot commented Dec 5, 2016

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/803/) (Base Commit: 6cbd1a7)

@openshift-bot openshift-bot merged commit aa5d310 into openshift:master Dec 5, 2016
@spadgett spadgett deleted the create-route-labels branch December 5, 2016 19:32
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.

3 participants