-
Notifications
You must be signed in to change notification settings - Fork 0
Group Tree #101
Open
donald
wants to merge
10
commits into
master
Choose a base branch
from
grouptree
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
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
Group Tree #101
Commits on Sep 25, 2020
-
requirements: Add django-treebeard
Add django-treebeard [1] to requirements. Note, that django-treebeard is already requested by wagtail, because it is also used by wagtail for its pages. [1] https://django-treebeard.readthedocs.io/
Configuration menu - View commit details
-
Copy full SHA for a7679a9 - Browse repository at this point
Copy the full SHA a7679a9View commit details -
Update requirements with (cd requirements && make)
Configuration menu - View commit details
-
Copy full SHA for da7b166 - Browse repository at this point
Copy the full SHA da7b166View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3701d8a - Browse repository at this point
Copy the full SHA 3701d8aView commit details -
Use MP_Node for Group and remove priority field.
Configuration menu - View commit details
-
Copy full SHA for bfc088b - Browse repository at this point
Copy the full SHA bfc088bView commit details -
Add migration for personal Group model
Add migration. Add the column "path" without the unique constraint and an invalid value first. Next, go over all group objects and set a path from a sequential index. Use alphabetical order, so that menus displayed be tree are in the same order as before unless sorted by the admin. As a last step add the unique contraint.
Configuration menu - View commit details
-
Copy full SHA for 1a25760 - Browse repository at this point
Copy the full SHA 1a25760View commit details -
Add admin interace for group tree management
Add TreeAdmin for groups. Note, that TreeAdmin is based on Djangos ModelAdmin, not on Wagtails ModelAdmin. So we hook into Djangos admin-interface (available at /django-admin) Disable CSRF_COOKIE_HTTPONLY, because TreeAdmin uses Ajax over http to arrange the group tree.
Configuration menu - View commit details
-
Copy full SHA for 22a7af8 - Browse repository at this point
Copy the full SHA 22a7af8View commit details -
The <hr> before the "Reset filter" entry is not needed, because its at the top of the box. We already have a visual separation between "Reset filter" and the group names, because the later are in the .dropdown-content div, which as a little border. Remove <hr> element.
Configuration menu - View commit details
-
Copy full SHA for 40dca95 - Browse repository at this point
Copy the full SHA 40dca95View commit details -
Show groups in tree order in menu
Add groups in tree order instead of alphabetical order to the context of the contacts page alphabetical order. Groups will be shown in that order in the drop-down menu.
Configuration menu - View commit details
-
Copy full SHA for 3b4bc3b - Browse repository at this point
Copy the full SHA 3b4bc3bView commit details -
Group: Add get_depth_fill method
Add a method which can be used by a template to get a number of entities based on the depth of the group, Note: Yes, this is an ugly mixture of code and style. Should be fixed up by some clever CSS using the depth attribute only.
Configuration menu - View commit details
-
Copy full SHA for 5db26fb - Browse repository at this point
Copy the full SHA 5db26fbView commit details -
Show groups intended by depth in pulldown menu
Use Group.get_depth_fill method to get some indention into the group pulldown menu.
Configuration menu - View commit details
-
Copy full SHA for 931b5a6 - Browse repository at this point
Copy the full SHA 931b5a6View commit details
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.