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

Fill control origin #44

Merged
merged 7 commits into from
Sep 1, 2016
Merged

Fill control origin #44

merged 7 commits into from
Sep 1, 2016

Conversation

jcscottiii
Copy link
Member

@jcscottiii jcscottiii commented Aug 31, 2016

Builds on #42. Delivers #26.

This PR introduces filling of the control origination checkbox based on the values in the opencontrol yaml.

The logic for unchecking is there but the logic for WHEN to uncheck will be addressed in #45

case "inherited":
return inheritedOrigination
}
return noOrigin
Copy link
Member

Choose a reason for hiding this comment

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

Can we simplify this and the variables above to simply be a map from the origin key to the document substring?

@afeld
Copy link
Member

afeld commented Aug 31, 2016

All looks good! Just a couple small things.

@afeld afeld changed the base branch from control-origin to master September 1, 2016 15:11
type originMapping struct {
yamlMapping string
docMapping string
}
Copy link
Member

Choose a reason for hiding this comment

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

Nice solution!

@afeld afeld merged commit dfb8394 into master Sep 1, 2016
@afeld afeld deleted the fill-control-origin branch September 1, 2016 16:13
@afeld afeld mentioned this pull request Sep 1, 2016
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.

2 participants