-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
nice stuff, looks useful! |
11f63c0
to
573f27f
Compare
@@ -26,6 +24,14 @@ | |||
end | |||
|
|||
resources :events, :only => [:index] | |||
|
|||
scope module: :agents do |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
different
Looks good! |
6ab97a6
to
d573b98
Compare
Thanks for the review! |
👍 |
This makes testing and modifying Agents easier by providing a list of received events to choose from in the dry run modal.
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.