refactor(reorg): extract regulations/banner/announcement/development_environment/object [10/10]#14987
Draft
valentijnscholten wants to merge 2 commits into
Draft
refactor(reorg): extract regulations/banner/announcement/development_environment/object [10/10]#14987valentijnscholten wants to merge 2 commits into
valentijnscholten wants to merge 2 commits into
Conversation
…t_environment, object [Phase 1,3,4,5,6,8,9]
This was referenced Jun 9, 2026
…olith line counts
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
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.
Stacked PRs
This is one of a stacked series that reorganizes
dojo/into self-containeddojo/{module}/packages (matching thedojo/url/reference). They are stacked — each PR is based on the previous one — so review and merge bottom-up in this order:Merge #14970 first; each following branch is rebased onto the updated base and merged in turn. This PR is the top of the stack (on top of #14986) — full implementation brief is the Phase 10 section in
AGENTS.md.Summary
Reorganizes the
regulations,banner,announcement,development_environment, andobjectdomains into self-containeddojo/{module}/packages withui/(and, where an API exists,api/) sub-packages, matching thedojo/url/reference layout. Pure code-movement: no behaviour or migration changes; backward-compat re-exports keep external consumers working.regulations / development_environment / announcement (have API layers)
Regulation,Development_Environment,Announcement,UserAnnouncementinto their{models,admin}.py(string-ref FKs). TheANNOUNCEMENT_STYLE_CHOICESconstant moves intodojo/announcement/models.py(re-exported fromdojo.models).RegulationSerializer/DevelopmentEnvironmentSerializer/AnnouncementSerializerinto each module'sapi/serializer.py(re-exported fromapi_v2/serializers.pyfor prefetcher discovery), andRegulationsViewSet/DevelopmentEnvironmentViewSet/AnnouncementViewSetintoapi/views.pywithadd_*_urls, preserving routes/basenames.ui/forms.pyandviews.py/urls.pyintoui/;announcement/os_message.pyandsignals.pystay.banner / object (no API layer)
BannerConfandObjects_Review/Objects_Productinto their{models,admin}.py(string-ref FKs; thetagulous.admin.register(Objects_Product.tags)registration moves todojo/object/admin.py). MoveLoginBannerand the object settings forms into each module'sui/forms.py, andviews.py/urls.pyintoui/.