-
Notifications
You must be signed in to change notification settings - Fork 0
dev #32
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
kelvink96
wants to merge
15
commits into
main
Choose a base branch
from
dev
base: main
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.
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
The AntdProjectsController requires Permissions.Antd.Projects permission, but this permission (along with all other Antd permissions) was defined in Constants/Permissions.cs but never assigned to any roles or users in the seeders. This caused 403 Forbidden errors when demo/normal users tried to access Antd endpoints like /api/v1/antd/projects, even though they could access other Antd endpoints that only required [Authorize] (like tasks). Changes: - Added all Permissions.Antd.* permissions to Admin role in PermissionUpdateSeeder - Added all Permissions.Antd.* permissions to User role in PermissionUpdateSeeder - Added all Permissions.Antd.* permissions to admin user in UserPermissionUpdateSeeder - Added all Permissions.Antd.* permissions to normal users in UserPermissionUpdateSeeder After restarting the application, the seeders will automatically update existing users with these new permissions.
…ission-based authorization
|
- Add AntdEmployee entity with employee fields (name, role, age, email, country, salary, hire date) - Create AntdEmployeeDto with query params, statistics, and response types - Implement IAntdEmployeeService with GetAll, GetById, GetStatistics, Create, Update, Delete - Add AntdEmployeesController with REST endpoints - Configure entity indexes and precision in ApplicationDbContext - Add Permissions.Antd.Employees permission constant - Register AntdEmployeeService in Program.cs
- Add 10 sample employee records to AntdDataSeeder - Includes diverse roles, countries, and salary ranges - Seeds data on application startup if table is empty
- Add AntdFaq entity with question, answer, category, rating, views, tags - Create AntdFaqDto with query params, statistics, and response types - Implement IAntdFaqService with GetAll, GetById, GetFeatured, GetStatistics, Create, Update, Delete - Add AntdFaqsController with REST endpoints including featured FAQs - Configure entity indexes and precision in ApplicationDbContext - Add Permissions.Antd.Faqs permission constant - Register AntdFaqService in Program.cs - Add 10 sample FAQ records to AntdDataSeeder covering Shipping, Payment, Returns, Support, Orders, Product, Pricing, and Security categories
- Add AntdPricing entity with plan, monthly, annually, savings caption, features, color, preferred - Create AntdPricingDto with query params and response types - Implement IAntdPricingService with GetAll, GetById, GetByPlan, Create, Update, Delete - Add AntdPricingsController with REST endpoints including plan-based lookup - Store features array as newline-separated string in database, convert to/from List<string> in service - Configure entity indexes and precision in ApplicationDbContext - Add Permissions.Antd.Pricings permission constant - Register AntdPricingService in Program.cs - Add 10 diverse pricing plan seed records: free, pro, business, enterprise, starter, team, premium, developer, agency, lifetime - Plans range from $0-$99.99/month and $0-$1999.99/annually with various feature sets
- Add AntdLicense entity with title and description - Create AntdLicenseDto with query params and response types - Implement IAntdLicenseService with GetAll, GetById, GetByTitle, Create, Update, Delete - Add AntdLicensesController with REST endpoints including title-based lookup - Configure entity indexes in ApplicationDbContext - Add Permissions.Antd.Licenses permission constant - Register AntdLicenseService in Program.cs - Add 3 license seed records: free, pro, and enterprise plans - Each license includes comprehensive terms for personal, commercial, and large-scale use
…ames - Add [Tags] attributes to 16 controllers that were missing them - Use consistent naming pattern: "Antd - [Readable Name]" with proper spacing - Updated controllers: * Social Media Activities/Stats * Scheduled Posts * Recommended Courses * Live Auctions * Delivery Analytics * Exams, Courses * Community Groups * Bidding Top Sellers/Transactions * Auction Creators * Study Statistics * Truck Deliveries/Delivery Requests/Trucks - Improves API documentation organization in Swagger/Scalar UI
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.