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

Fixed bug with entities order in files tech #130

Merged
merged 2 commits into from
Apr 20, 2015
Merged

Fixed bug with entities order in files tech #130

merged 2 commits into from
Apr 20, 2015

Conversation

blond
Copy link
Member

@blond blond commented Apr 19, 2015

Resolved #129

@blond
Copy link
Member Author

blond commented Apr 19, 2015

/cc @tadatuta

return files[filename];
}));
function addEntities(entities) {
fileList.addFiles(entities.files.filter(function (file) {
Copy link
Member

Choose a reason for hiding this comment

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

isn't it possible to store files and dirs in the same hash and as so reuse filter callback for both cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice idea! It has been fixed.

@tadatuta
Copy link
Member

lgtm

@tadatuta
Copy link
Member

lgtm

blond added a commit that referenced this pull request Apr 20, 2015
Fixed bug with entities order in files tech
@blond blond merged commit 0b23bcc into master Apr 20, 2015
@blond blond deleted the issue-129 branch April 20, 2015 15:15
@@ -70,6 +70,51 @@ describe('techs', function () {
.then(done, done);
});

it('must keep order of entities', function (done) {
mockFs({
blocks: {
Copy link

Choose a reason for hiding this comment

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

TODO: добавить еще один уровень.

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.

Files tech not keep order of entities
3 participants