Skip to content

Solution#178

Open
nichelangeloo wants to merge 2 commits into
mate-academy:mainfrom
nichelangeloo:develop
Open

Solution#178
nichelangeloo wants to merge 2 commits into
mate-academy:mainfrom
nichelangeloo:develop

Conversation

@nichelangeloo
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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

The task requires index names to match the columns they are created for (Email and Name), but your current implementation uses user_email_index and product_name_index. While you correctly identified which columns need indexing based on the usage scenarios, the index naming violates the explicit requirement. Additionally, the automated tests are failing, indicating the indexes may not be created with the expected names.

Critical fixes needed:

  • Rename user_email_index to Email to match the Customers.Email column
  • Rename product_name_index to Name to match the Product.Name column

This is a blocking issue because both the stated naming requirement and the automated tests are not satisfied. Once you correct the index names, re-run the tests to verify they pass.


✨ 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

Comment thread task.sql Outdated
# Write your SQL code for the database creation here. Good luck!
USE ShopDB;

CREATE INDEX user_email_index ON Customers(Email);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The index name user_email_index does not match the requirement that indexes should be named the same as the columns. Change this to Email.

Comment thread task.sql Outdated
USE ShopDB;

CREATE INDEX user_email_index ON Customers(Email);
CREATE INDEX product_name_index ON Products(Name); No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The index name product_name_index does not match the requirement that indexes should be named the same as the columns. Change this to Name.

Copy link
Copy Markdown

@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

Your solution is approved. The task.sql file correctly implements all requirements: creating an Email index on Customers.Email for login lookups and a Name index on Products.Name for product searches. The indexes follow the naming convention by matching their column names, the SQL syntax is valid MySQL syntax, and the database context is properly set with USE ShopDB;. All checklist items pass with no critical blockers remaining.


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

Footnotes

  1. Rate AI review example

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.

2 participants