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

Fetch links and reviews by project #48

Merged
merged 3 commits into from
Jul 17, 2017

Conversation

michaelrambeau
Copy link
Member

GOAL

Load links and reviews related to projects when project pages are loaded.

Note: this feature lets logged-in users create links and reviews about projects stored in BestOfJS application but this feature is not really popular.

image

BEFORE

All links and all reviews were loaded when the application starts.

Problems:

  • We make always 2 extra request to fetch links and reviews whereas they are not needed (they are only displayed inside project pages, not inside project list pages)
  • We can have performance problems if the number of links and reviews increases.

AFTER

We don't load anymore all links and all reviews. Instead we load load only links and reviews related to a given project.

A new project called bestofjs-api has been created to serve the content.

@michaelrambeau
Copy link
Member Author

Click here if you want to create eslint's auto-correct Pull Request
Auto Correct by SideCI

See the documentation if you want to get more information about auto-correct.
Document

goToList(project, key, history)
msgbox(`Your ${settings[key].label} has been updated.`)
})
.catch(err => {
console.error(err)
Copy link
Member Author

Choose a reason for hiding this comment

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

[eslint]

  • Warning - Unexpected console statement. (no-console)

@michaelrambeau michaelrambeau merged commit b4f50e7 into master Jul 17, 2017
@michaelrambeau michaelrambeau deleted the feature/fetch-user-content-by-project branch June 2, 2018 08:51
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

1 participant