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

Allow removing download extensions (fixes #7444) #7629

Merged
merged 4 commits into from Apr 9, 2015
Merged

Allow removing download extensions (fixes #7444) #7629

merged 4 commits into from Apr 9, 2015

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 5, 2015

This PR aims to fix #7444 and adds the possibility to exclude an extension from the list of "download extensions".

It also converts the list of already excluded extensions into an array and resolves the regexes to single values, so it is possible to remove only some of them.

Methods for setting, adding and removing extensions now accept single values as well as multiple values (as array or separated by "|")

@sgiehl sgiehl added the Needs Review PRs that need a code review label Apr 5, 2015
@mattab
Copy link
Member

mattab commented Apr 7, 2015

Feedback

  • Looks good!
  • could you add some unit tests in tests/javascript/index.php?
  • after merge, we will need to update the Javascript client doc

@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Apr 7, 2015
@mattab mattab added this to the Piwik 2.13.0 milestone Apr 7, 2015
@sgiehl
Copy link
Member Author

sgiehl commented Apr 7, 2015

I've added some tests.

@mattab
Copy link
Member

mattab commented Apr 9, 2015

looks good to me, merging 👍

mattab pushed a commit that referenced this pull request Apr 9, 2015
Allow removing download extensions (fixes #7444)
@mattab mattab merged commit 2bbfc4d into master Apr 9, 2015
@sgiehl sgiehl deleted the 7444 branch April 10, 2015 09:04
@mattab
Copy link
Member

mattab commented Apr 26, 2015

Hi @sgiehl, just remembered we didn't update the developer documentation at: https://github.com/piwik/developer-documentation/blob/master/docs/tracking-javascript.md - would you mind documenting the new method there?

@sgiehl
Copy link
Member Author

sgiehl commented Apr 27, 2015

Sorry. I somehow thought the documentation is some kind of autogenerated. I've updated the doc in matomo-org/developer-documentation@1794b90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants