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

[WIP][MLP-594] Adding history of published components to registry #448

Closed
wants to merge 3 commits into from

Conversation

federicomaffei
Copy link
Collaborator

Do not merge.

@mattiaerre
Copy link
Member

@federicomaffei I like this feature

module.exports = function(history) {
var result = [];

_.each(history.components, function(singleComponent, name) {
Copy link
Contributor

@nickbalestra nickbalestra Apr 7, 2017

Choose a reason for hiding this comment

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

I guess histories could grows quite big in time.. then for loops instead of nested each will make a difference in perfs. We could also probably create a sorted array as we push them instead of having to loop through it again with sortBy. What you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed @nickbalestra, especially about the quick sort. That sort and reverse will not make it to the final version 👍

@matteofigus matteofigus deleted the publish-history branch April 26, 2017 13:00
@matteofigus
Copy link
Member

Closed this in favour of #467 (the first commits came from this branch)

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.

4 participants