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

Redmine#7166: data_expand() function #2207

Merged
merged 1 commit into from
May 18, 2015

Conversation

tzz
Copy link
Contributor

@tzz tzz commented May 7, 2015

see https://dev.cfengine.com/issues/7166

Implements data_expand() as discussed, with example. If this is acceptable I'll write docs and tests.

@cfengine-review-bot
Copy link

Can one of the admins verify this patch?

@nickanderson
Copy link
Member

@kacfengine @estenberg this would be very useful to have in 3.7. Right now we have to either reconstruct data containers into classic arrays. Or we have to use parsejson and we are limited to 4K. And looping over "large" arrays has shown dramatic performance implications.

@tzz
Copy link
Contributor Author

tzz commented May 14, 2015

The function is very contained and does not touch any of the rest of the core. I think it's fairly safe even at this late stage.

@neilhwatson
Copy link
Contributor

This will be very useful for EFL. I hope it can make it to 3.7.

const Rlist *args)
{
const char *varname = RlistScalarValue(args);
VarRef *ref = ResolveAndQualifyVarName(fp, varname);
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe you will need to VarRefDestroy this.

@kacf
Copy link
Contributor

kacf commented May 15, 2015

Indeed, this looks quite useful and self contained. If we get docs and acceptance test quickly and the testing goes through, then we can include this, but note that Tuesday next week is a hard deadline for this. No contributions will go in after that.

@kacf kacf self-assigned this May 15, 2015
@tzz tzz force-pushed the feature/redmine7166-data_expand branch from ff25037 to 03c06c9 Compare May 15, 2015 13:34
@tzz
Copy link
Contributor Author

tzz commented May 15, 2015

State-based acceptance test and VarRefDestroy() call added. If tests pass I'll add docs, they'll be trivial.

@kacf
Copy link
Contributor

kacf commented May 15, 2015

trigger build

kacf added a commit that referenced this pull request May 18, 2015
@kacf kacf merged commit 418691d into cfengine:master May 18, 2015
@kacf
Copy link
Contributor

kacf commented May 18, 2015

Passed! Only docs remain.

@tzz
Copy link
Contributor Author

tzz commented May 19, 2015

Docs in cfengine/documentation#1038

@nickanderson
Copy link
Member

yay! @kacfengine can this be merged now before the freeze?

@kacf
Copy link
Contributor

kacf commented May 20, 2015

I has been merged already! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants