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

Using references_added function for user's ref count #3176

Merged

Conversation

khyatisoneji
Copy link
Member

No description provided.

@ragesoss
Copy link
Member

ragesoss commented Aug 5, 2019

@khyatisoneji please have a look at the test that failed.

@@ -40,7 +37,7 @@
expect(course2.revisions.count).to eq(1)
expect(subject.individual_article_views).to eq(100)
expect(subject.individual_character_count).to eq(100)
expect(subject.individual_references_count).to eq(5)
expect(subject.individual_references_count).to eq(22)
Copy link
Member

Choose a reason for hiding this comment

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

Why didn't this work the way it was before?

Copy link
Member Author

Choose a reason for hiding this comment

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

Here the example taken is for newarticle, so it'll return only current ref_tags, earlier I was just directly just subtracting, now I'm calling the function

So, I have made changes accordingly for newarticle revision example

Copy link
Member

Choose a reason for hiding this comment

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

Ah! That makes sense, thanks.

@ragesoss ragesoss merged commit fbe3c06 into WikiEducationFoundation:master Aug 6, 2019
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.

None yet

2 participants