Skip to content

Fix restmapper - #7154

Merged
openshift-bot merged 5 commits into
openshift:masterfrom
deads2k:fix-restmapper
Feb 11, 2016
Merged

openshift-bot merged 5 commits into
openshift:masterfrom
deads2k:fix-restmapper

Conversation

@deads2k

@deads2k deads2k commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

Fixes #7090

The MultiRESTMapper didn't correctly combine errors and the shortcut expanding RESTMapper failed to override the required functions because it was anonymously including another RESTMapper.

New message for missing resource:

[deads@deads-dev-01 origin]$ oc get foo
the server doesn't have a resource type "foo"

@deads2k

deads2k commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

[test]

nested = append(nested, strings.Join(splitStrings, "\n\t"))
}

return fmt.Sprintf("MultiRESTMapper{\n\t%s\n}", strings.Join(nested, "\n\t"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this for debugging?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, I see it's just refactoring of old code. Nvmd

@0xmichalis

Copy link
Copy Markdown
Contributor

LGTM

@deads2k

deads2k commented Feb 10, 2016

Copy link
Copy Markdown
Contributor Author

@Kargakis test-cmd caught a pre-existing bug in the resource match when I tidied up the resource detection for arguments. Two more commits to look at.

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4919/) (Image: devenv-rhel7_3391)

@deads2k

deads2k commented Feb 10, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to b9776fd

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to b9776fd

openshift-bot pushed a commit that referenced this pull request Feb 11, 2016
@openshift-bot
openshift-bot merged commit e1433c2 into openshift:master Feb 11, 2016
@deads2k
deads2k deleted the fix-restmapper branch February 26, 2016 18:40
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.

4 participants