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

Show recently received events in dry run modal #1483

Merged
merged 1 commit into from
May 18, 2016

Conversation

dsander
Copy link
Collaborator

@dsander dsander commented May 6, 2016

This makes testing and modifying Agents easier by providing a list of received events to choose from in the dry run modal.

dryrun

Thanks to kreuzwerker.de who are paying me to work on this in the context of the research project 'Digitale Kuratierungstechnologien' of which they are a part of.

@International
Copy link
Collaborator

nice stuff, looks useful!

@@ -26,6 +24,14 @@
end

resources :events, :only => [:index]

scope module: :agents do
Copy link
Member

Choose a reason for hiding this comment

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

Is this the same as a namespace?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Almost, as far as I know the only difference are the route names.
For namespace: agent_agents_dry_runs and agents_dry_runs.
For scope: agent_dry_runs and dry_runs.

@cantino
Copy link
Member

cantino commented May 16, 2016

Nice idea!

@@ -20,6 +20,25 @@ def valid_attributes(options = {})
expect(assigns(:events)).to eq([])
end

context "does not load events when the agent is owned by a diffrent user" do
Copy link
Member

Choose a reason for hiding this comment

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

different

@cantino
Copy link
Member

cantino commented May 18, 2016

Looks good!

@dsander
Copy link
Collaborator Author

dsander commented May 18, 2016

Thanks for the review!

@dsander dsander merged commit 5832d1f into huginn:master May 18, 2016
@dsander dsander deleted the feature/dry-run-events branch May 18, 2016 14:36
@cantino
Copy link
Member

cantino commented May 19, 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.

3 participants