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

#166241013 Implement articles reading statistics #62

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

mifeille
Copy link
Contributor

@mifeille mifeille commented Jun 28, 2019

What does this PR do?

This PR enables users to see articles readings statistics

Description of Task to be completed?

Have the following endpoints working :
GET /api/articles/:slug/comments/count
GET /api/articles/:slug/views
GET /api/articles/:slug/shares/facebook
GET /api/articles/:slug/shares/twitter
GET /api/articles/:slug/shares/email
GET /api/articles/:slug/shares

How should this be manually tested?

Clone the repo, cd into it and RUN yarn install to install all the dependencies,

• Run the migration sequelize db:migrate,
• Run the seeds sequelize db:seed:all,
• Run yarn test for tests,

• then Run yarn dev to start the server.

Use postman to test if the endpoints are working.

What are the relevant pivotal tracker stories?

#166241013

Use Case document

https://docs.google.com/document/d/1GsSGnNb99l11xMxwf9AoIBx1RMyn2raz9Uxpsh6KrYs/edit?usp=sharing

@mifeille mifeille added the WIP label Jun 28, 2019
@mifeille mifeille force-pushed the ft-article-reading-stats-166241013 branch 2 times, most recently from 35a35a1 to 210771e Compare July 1, 2019 17:01
// associations can be defined here
};
return Share;
};
Copy link

Choose a reason for hiding this comment

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

Newline required at end of file but not found eol-last

slug: DataTypes.STRING,
provider: DataTypes.STRING
}, {});
Share.associate = function(models) {
Copy link

Choose a reason for hiding this comment

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

'models' is defined but never used no-unused-vars
Missing space before function parentheses space-before-function-paren
Unexpected unnamed function func-names

@@ -0,0 +1,12 @@
'use strict';
Copy link

Choose a reason for hiding this comment

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

'use strict' is unnecessary inside of modules strict
Expected newline after "use strict" directive lines-around-directive

@mifeille mifeille force-pushed the ft-article-reading-stats-166241013 branch 2 times, most recently from bc9e8fb to 0a40da1 Compare July 1, 2019 17:10
@mifeille mifeille added Needs Review and removed WIP labels Jul 1, 2019
@mifeille mifeille force-pushed the ft-article-reading-stats-166241013 branch from 0a40da1 to 80f9142 Compare July 2, 2019 10:15
@mifeille mifeille added Needs Merge Needs To merge and removed Needs Review labels Jul 2, 2019
@mifeille mifeille force-pushed the ft-article-reading-stats-166241013 branch 2 times, most recently from cf8c750 to 4b7240d Compare July 2, 2019 12:24
@mifeille mifeille force-pushed the ft-article-reading-stats-166241013 branch from 4b7240d to e214a19 Compare July 2, 2019 12:43
@Quantum-35 Quantum-35 merged commit f10978a into develop Jul 3, 2019
Diama1 pushed a commit that referenced this pull request Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Merge Needs To merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants