Skip to content

Tasks solution#193

Open
Vovanchu wants to merge 3 commits intomate-academy:masterfrom
Vovanchu:develop
Open

Tasks solution#193
Vovanchu wants to merge 3 commits intomate-academy:masterfrom
Vovanchu:develop

Conversation

@Vovanchu
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

This is a great start, and the server implementation is well-structured. However, one change is needed to meet the project requirements. The server is currently generating compressed files with incorrect extensions. The task specifies that gzip files should have a .gz extension and deflate files should have a .dfl extension. Your code is using .gzip and .deflate instead. Please update the file extension mapping in src/createServer.js to match the requirements. Once you've made that fix, your solution will be perfect!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

}

const compressor = compressionTypes[compressionType]();
const extensions = { gzip: '.gzip', deflate: '.deflate', br: '.br' };

Choose a reason for hiding this comment

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

The file extensions for gzip and deflate do not match the requirements. According to the task description, the extensions should be .gz for gzip and .dfl for deflate.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

This is a great effort, and the server logic is well-structured! However, I'm requesting a change because a critical requirement from the task description hasn't been met. The issue with incorrect file extensions, which was pointed out in the previous review, still needs to be fixed.

Specifically, the compressed files must have the following extensions:

  • .gz for gzip
  • .dfl for deflate

Currently, your code is generating .gzip and .deflate. Please update the extensions object in src/createServer.js to match the requirements. Once that's done, your solution will be complete!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

}

const compressor = compressionTypes[compressionType]();
const extensions = { gzip: '.gzip', deflate: '.deflate', br: '.br' };

Choose a reason for hiding this comment

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

It looks like the file extensions for gzip and deflate haven't been updated yet from the previous review. According to the task description, they should be .gz and .dfl respectively.

Copy link

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Lgtm 🚀

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.

3 participants