-
Notifications
You must be signed in to change notification settings - Fork 23
Yousef Alothman #4
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
Open
yousef23pdx
wants to merge
18
commits into
JoinCODED:master
Choose a base branch
from
yousef23pdx:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ms to listOrder endpoint now you can see the items), also i changed the table in the database to make order_id in items table to a foreign key instead of a normal interger.
…pecific order filtering - Added SubmitOrderRequest DTO and submitOrder() logic - Refactored ItemsController to allow adding new items - Linked ItemEntity to orders via ManyToOne relationship - Enforced user-specific order visibility using Spring Security - Allowed unauthenticated access to /menus only - Ensured item creation works independently from orders - Fixed DB constraints and renamed item field for clarity
Added profile management features with JWT authentication. Set up ProfileEntity with a one-to-one relationship to users using userId. Added custom validation for names and phone numbers using regex and threw InvalidProfileException when needed. Created a POST /profile endpoint for authenticated users to submit their profile, and made sure duplicates aren’t allowed. Also added GET /profile to retrieve the logged-in user’s profile. Marked the service as open and transactional, and swapped @nAmed for @service to fix injection issues. Error handling is done with try/catch blocks and returns clean JSON messages. No unit testing yet.
- Set up Cucumber integration with Spring Boot context loading - Implemented JWT token injection via JwtService for secured endpoints - Created separate Cucumber tests for: • User registration • User login and listing • Submitting and listing orders • Submitting and listing menu items • Submitting and retrieving user profiles - Fixed GlobalToken generation issues - Handled authenticated requests in tests without relying on logging - Split all test steps into isolated step definition files for clarity - Fixed HTTP 400 error by submitting a profile before retrieving it - Standardized test structure across the project for easier maintenance
- Added environment-based config for `company.name` and `festive-mode` - WelcomeController now returns a dynamic message based on company name and festive flag - ItemsService returns discounted prices (20% off) when `festive-mode=true` - Enabled configurable logging level via `logging.level.root` in application properties - Updated application-test.properties for test scenarios
Add Swagger OpenAPI documentation and annotations - Integrated springdoc-openapi-starter-webmvc-api dependency - Configured Swagger API docs path in application.properties - Annotated AuthenticationController with @operation and @ApiResponse
Add Swagger OpenAPI documentation and annotations - Integrated springdoc-openapi-starter-webmvc-api dependency - Configured Swagger API docs path in application.properties - Annotated AuthenticationController with @operation and @ApiResponse
included the forgotten files to complete the task
included the forgotten files to complete the task
- Defined `OrderEntity` and `ItemEntity` with appropriate JPA annotations - Set up `OrdersRepository` and `ItemsRepository` - Implemented `OrdersService` with order submission and listing logic - Integrated mapping from item IDs to orders - Component scan adjusted to include all relevant packages - Still debugging bean visibility and application context issues
fix: resolve 404 errors caused by IntelliJ tweaking package structure + table name mismatch IntelliJ messed with the package structure causing Spring not to register the OrderController. Also fixed Hibernate trying to query "order/orders" instead of "orders" by explicitly setting @table(name = "orders") on OrderEntity.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.