-
Notifications
You must be signed in to change notification settings - Fork 24
Dev to Main Sync #200
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
Dev to Main Sync #200
Conversation
* add integration tests for GET v1/skills, add test DB configuration * fix format violation
* add integration tests for GET v1/skills, add test DB configuration * fix format violation * Update test configuration to create schema using Flyway * Add integration test for v1/skills/requests route * Add custom result matcher for mockMvc responses * Add security config for test environment to mock logged in users * Add Use of CustomMockUser instead of AuthCookie * Add spring-security test dependency
* change status code from 200 to 201 * add integration tests for POST v1/skills
…sts/{skillId}/action (#188)
* fix:update formatting of request-body
* replace hardcoded JSON strings by serializing object of SkillRequestActionRequestDto
* fix: update failsafe config, add dotenv dependency * fix: replace hardcoded test-db-name with env variable * fix: move integration test classes to integration package * add test container manager * fix: remove test-db config as it is not required * fix: remove print statements * fix: remove disabled from unit tests, update config of surefire to locate unite tests correctly * fix: upgrade github actions runner version to v4 * fix: make version of mysql db to a more specific version tag * fix: update config to include multilevel folder * fix: update expected status to status code * fix: remove unnecessary config and functions * fix: fix typos in commands --------- Co-authored-by: yash raj <yashraj0207@outlook.com>
* fix: remove harcoded value from test container
* fix: add integration tests for GET /v1/skills/{id}/endorsements
* fix: refactor the code, remove unused dependence, redundant comments
…196) * fix: restrict endorsement requests to only those user has endorsed * test: verify endorsement request privacy controls * chore: add dev feature flag * fix: simplify skill request retrieval logic for superusers and non dev feature flag * fix: optimize user view model retrieval * test: enhance integration tests * fix: optimize endorsement retrieval by reducing redundant user detail fetches * fix: update skill request retrieval logic * refactor: rename devMode parameter to isDev for clarity in SkillService and SkillsApi * refactor: remove unused findByEndorseIdAndSkillIdAndEndorserId method from EndorsementRepository * test: add integration negative tests for skill requests with dev flag scenarios --------- Co-authored-by: Mayank Bansal <mayankbansal125@gmail.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
… endorsement creation (#198) * fix: avoid creating duplicate endorsements, add integration tests * fix: update name of the test * fix: update formatting * test: add test to validate skill creation on a diff skill than those that have endorsements * fix: update query formatting * fix: update query to scan only endorsement table, as joining user-skills is redundant * test: add test-case to test flow when user is unauthorized * fix: update test name, createUrl(), log * add class to contain constant messages across app * fix: use constants defined in Constants.java * fix: use constants defined in Constants.java * fix: make constructor of Constants private to prevent instantiation * fix: import ExceptionMessages from Constants * fix: update status from 409 to 405 * fix: update query, subquery is redundant * fix: add logging level for each envioronment * fix: avoid appending timestamps, message etc, update error message * fix: add constructor for GenericResponse to create obj with message only

Date: 13-03-2025
Developer Name: @Shyam-Vishwakarma @mbramani
Issue Ticket Number
mvn verifycommand #189PR's Going in these Sync:-
Description
Adds integrations tests and a couple of bug fixes related to skill endorsements.
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Staging Proofs
Proof for #195
https://github.com/user-attachments/assets/3baa8f66-4fc5-4e68-9424-6204a3e62723
Proof for #198

Tests
CreateEndorsementIntegrationTest -


GetAllSkillIntegrationTest -


CreateSkillIntegrationTest -


GetEndorsementBySkillIdIntegrationTest -


Additional Notes