Closed mgmgpyaesonewin closed 3 months ago
The recent update introduces a series of enhancements and new features to the application API, focusing on user functionality, data modeling, routing improvements, and testing. A new method for fetching user information, a factory for generating keyword data, adjustments to the database schema for better data handling, refined routing with middleware integration, and comprehensive tests for both feature and unit levels are the highlights of this update.
Files | Change Summary |
---|---|
.../Controllers/AppController.php |
Added user method to return user info. |
.../database/factories/KeywordFactory.php |
New factory for generating Keyword model data. |
.../migrations/2024_03_08_163814_create_keywords_table.php |
Made total_result column nullable in keywords table. |
.../routes/api.php |
Restructured routes using middleware, adjusted paths, and added route names. |
.../tests/Feature/AppTest.php |
Added feature tests for keyword management, spider initiation, and callback. |
.../tests/Unit/AppControllerTest.php |
New unit test for initiateSpider method. |
🐰✨
In the realm of code where the data hops around,
A rabbit worked hard, improvements abound.
With routes so refined, and tests in their prime,
Factories producing, a change so sublime.
🌟 Through migrations and methods, it leaps and it bounds,
Celebrating the changes, in bytes and in sounds.
🎉🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
added spider, keywords test cases
Summary by CodeRabbit
total_result
field in keywords to be nullable.