-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: Support LinkFormField
of djangocms-link 5+
#241
feat: Support LinkFormField
of djangocms-link 5+
#241
Conversation
…gocms-frontend into feat/djangocms-link-support
@sourcery-ai review |
Reviewer's Guide by SourceryThis PR replaces the built-in link functionality with djangocms-link's reusable ER diagram for link data migrationerDiagram
FrontendUIItem {
JSON config
}
FrontendUIItem ||--o{ Link : contains
Link {
String external_link
String internal_link
String file_link
String phone
String mailto
String anchor
}
Link ||--o{ LinkFormField : converted_to
LinkFormField {
String link
}
Class diagram for LinkFormField integrationclassDiagram
class LinkFormMixin {
+LinkFormField link
+ChoiceField target
+Boolean link_is_optional
}
class AbstractLinkForm {
}
class EntangledModelFormMixin {
}
LinkFormMixin --|> EntangledModelFormMixin
AbstractLinkForm --|> LinkFormMixin
class GetLinkMixin {
+String get_link()
}
GetLinkMixin --|> LinkFormMixin
class LinkFormField {
}
LinkFormMixin o-- LinkFormField
class Site {
}
GetLinkMixin o-- Site
File-Level Changes
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 @fsbraun - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 5 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 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 replaces the built-in link functionality with the new re-usable
LinkFormField
by djangocms-link.Summary by Sourcery
Replace the built-in link functionality with the reusable
LinkFormField
from djangocms-link, simplifying link management and updating configurations. Refactor the codebase to remove redundant link fields and update the build and CI configurations to align with the new setup.New Features:
LinkFormField
from djangocms-link to replace the built-in link functionality.Enhancements:
LinkFormField
, simplifying the codebase and removing redundant link fields.Build:
pyproject.toml
to include new configurations for tools likeblack
,ruff
,isort
,flake8
, andcoverage
.CI:
pytest
for running tests and generating coverage reports.Tests: