-
Notifications
You must be signed in to change notification settings - Fork 23
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
Modify the create_world API response #273
base: development
Are you sure you want to change the base?
Modify the create_world API response #273
Conversation
Reviewer's Guide by SourceryThe PR modifies the create_world API by introducing a new method to extract protocol from URLs and updates how the world domain is constructed. The domain URL now includes the protocol (http/https) derived from SITE_URL setting, making the URLs more complete and standardized. Class diagram for CreateWorldView modificationsclassDiagram
class CreateWorldView {
+static get_protocol(url) String
+static post(request, *args, **kwargs) JsonResponse
}
note for CreateWorldView "Added get_protocol method to extract protocol from URL"
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @odkhang - I've reviewed your changes - here's some feedback:
Overall Comments:
- The domain is being set twice - once without protocol and then again with protocol. Consider constructing the full URL with protocol once and using that for the initial domain assignment.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This PR resolve #240
Summary by Sourcery
Enhancements: