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

added action tag #4

Merged
merged 1 commit into from
May 20, 2015
Merged

added action tag #4

merged 1 commit into from
May 20, 2015

Conversation

mynameiswhm
Copy link
Contributor

No description provided.

@@ -69,10 +69,10 @@ func (w *Writer) Start() {
continue // no server tag :(
}

tags := m.Tags.Filter(&[]string{"status", "user", "type", "region"})
tags := m.Tags.Filter(&[]string{"status", "user", "action", "type", "region"})
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe "category" or "controller" is more suitable? After all we usually have "action" in "script".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the idea was "use script if that's enough for you, or put class name into script, and action into, well, action".

so there's two options:

  • script=Some_Class_Name, action=list
  • category=Some_Class_Name, script=Some_Class_Name::list

Copy link
Owner

Choose a reason for hiding this comment

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

Second option allows more general approach, and that's the way i'd like it to be. In category you can set more generic part of application.
script=Some_Class::_action category=Search
script=Some_Other_Class::_otherAction category=Item

Script and action are more limiting. And with first option we may lose backward compatibility.

@mynameiswhm
Copy link
Contributor Author

changed action to category

olegfedoseev added a commit that referenced this pull request May 20, 2015
@olegfedoseev olegfedoseev merged commit 9be656d into olegfedoseev:master May 20, 2015
@mynameiswhm mynameiswhm deleted the patch-1 branch May 21, 2015 18:10
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