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

DryRunMemory #1550

Merged
merged 1 commit into from
Jun 18, 2016
Merged

DryRunMemory #1550

merged 1 commit into from
Jun 18, 2016

Conversation

Enfop
Copy link
Contributor

@Enfop Enfop commented Jun 15, 2016

With the PR i try to fix #1538. The changes fix the issue but i'm not sure if other agents are affected in a negative way.

:code => "Agent.check = function() { this.createEvent({ 'message': this.memory('fu') }); };",
}
}
agent = Agents::JavaScriptAgent.new(valid_params)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Something minor, you could do agent = Agent.build_for_type(Agents::JavaScriptAgent, users(:bob), memory: {fu: 'bar'}) to save a few lines.

@dsander
Copy link
Collaborator

dsander commented Jun 15, 2016

Thanks @Enfop, looks good to me. I do not think there are negative effects for other agents, as I see it it only makes the dry-run match the actual run more closely.

@cantino
Copy link
Member

cantino commented Jun 16, 2016

Makes sense to me too. I wonder if we should eventually allow you to edit the memory in the dry run UI.

@dsander
Copy link
Collaborator

dsander commented Jun 17, 2016

@cantino For advanced JavaScriptAgent use cases that would be neat, don't know how many other agents could benefit from it.

@cantino
Copy link
Member

cantino commented Jun 18, 2016

I'm going to go ahead and merge this. Thanks @Enfop!

@cantino cantino merged commit 5cdc37f into huginn:master Jun 18, 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.

Javascript Dry Run memory
3 participants