Skip to content

Create google analytics observer#411

Merged
stefanoborini merged 7 commits into
switch_to_vuefrom
create_ga_vue_object
May 2, 2017
Merged

Create google analytics observer#411
stefanoborini merged 7 commits into
switch_to_vuefrom
create_ga_vue_object

Conversation

@martinRenou

Copy link
Copy Markdown
Member

No description provided.

@codecov-io

codecov-io commented Apr 28, 2017

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (switch_to_vue@1a23c05). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##             switch_to_vue     #411   +/-   ##
================================================
  Coverage                 ?   95.24%           
================================================
  Files                    ?       96           
  Lines                    ?     4102           
  Branches                 ?      255           
================================================
  Hits                     ?     3907           
  Misses                   ?      143           
  Partials                 ?       52

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a23c05...53a45dd. Read the comment docs.

Using a Vue object listening to the current_app.status variable results in issues when current_app is changing. Because if current_app changes (when clicking on a new application) and the new clicked application does not have the same status as the previous one, the event is triggered. We now use the emit method to solve this issue
@martinRenou martinRenou changed the title Create google analytics Vue object Create google analytics observer May 2, 2017
};

return {
init: init, // For testing purpose

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

at this point, init could be a method of GaObserver. Keep it separate, because we still need to patch it at the test level

@stefanoborini stefanoborini merged commit 79d0bde into switch_to_vue May 2, 2017
@stefanoborini stefanoborini deleted the create_ga_vue_object branch May 2, 2017 13:22
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