Skip to content

Commit

Permalink
Merge pull request #17 from xjlin0/remove_old_editing_attendee_pages
Browse files Browse the repository at this point in the history
Remove old editing attendee pages
  • Loading branch information
xjlin0 authored Jul 10, 2021
2 parents fad8127 + def4d55 commit 69bb848
Show file tree
Hide file tree
Showing 20 changed files with 239 additions and 1,052 deletions.
48 changes: 32 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,32 +92,48 @@ All libraries are included to facilitate offline development
* Enter Django console by `docker-compose -f local.yml run django python manage.py shell_plus`
* remote debug in PyCharm for docker, please check [django cookie doc](https://github.com/pydanny/cookiecutter-django/blob/master/{{cookiecutter.project_slug}}/docs/pycharm/configuration.rst).

## Todo:
## Todo & progress:

<details>
<summary>Click to expand all</summary>

- [x] make auth group not organization specific, and counselling note check on organization
- [ ] Past can replace Note, Attendee.progressions and calls/requests, so that any name lists such as status can be easily queried. (membership remains as attendance)
- [x] make Past model generic
- [ ] any past status list (Past level)
- [ ] Attendance roaster to Past auto conversion
- [x] attendee detail page
- [x] server side process of Attendees list & search page
- [x] AttendingMeet form of Attendee update page
- [x] FamilyAttendee datagrid of Attendee update page
- [x] Personal & family Address of Attendee update page
- [x] Dynamic contacts of Attendee update page
- [x] Permission controlled blocks in single attendee update page, i.e. different blocks/user-settings for different groups
- [x] Generic models such as Note, Place, Past need to have organization column instead of infos
- [x] Add Past as Note
- [x] Create new instance of Attendee & attending update page with params with meet
- [x] delete function for human error
- [x] Modify Attendee save method to combine/convert names by OpenCC to support searches in different text encoding, and retire db level full_name.
- [x] implement secret/private relation/past general
- [ ] Move single attendee update page out of data assembly
- [ ] Gathering list (new design with server side processing)
- [ ] Attendance list (new design with server side processing)
- [x] [PR#3](https://github.com/xjlin0/attendees30/pull/3) FamilyAttendee datagrid of Attendee update page
- [x] [PR#2](https://github.com/xjlin0/attendees30/pull/2) Personal & family Address of Attendee update page
- [x] [PR#4](https://github.com/xjlin0/attendees30/pull/4) Dynamic contacts of Attendee update page
- [x] [PR#9](https://github.com/xjlin0/attendees30/pull/9) Permission controlled blocks in single attendee update page, i.e. different blocks/user-settings for different groups
- [x] [PR#11](https://github.com/xjlin0/attendees30/pull/11) Generic models such as Note, Place, Past need to have organization column instead of infos
- [x] [PR#12](https://github.com/xjlin0/attendees30/pull/12) Add Past as Note
- [x] [PR#13](https://github.com/xjlin0/attendees30/pull/13) [PR#14](https://github.com/xjlin0/attendees30/pull/14) [PR#15](https://github.com/xjlin0/attendees30/pull/15) Create new instance of Attendee & attending update page with params with meet
- [x] [PR#16](https://github.com/xjlin0/attendees30/pull/16) delete function for human error
- [x] [PR#5](https://github.com/xjlin0/attendees30/pull/5) Modify Attendee save method to combine/convert names by OpenCC to support searches in different text encoding, and retire db level full_name.
- [x] [PR#8](https://github.com/xjlin0/attendees30/pull/8) implement secret/private relation/past general
- [ ] Move attendee/attendees page out of data assembly -- some coworkers need to see all attendees of the organization, with a way to see only family members for general users
- [ ] remove all previous attendee edit testing pages
- [ ] remove attendee list page dependency of path params and take search params from user for assembly slug
- [ ] rename and move attendees/attendee page, and show attendees based on auth groups
- [ ] Gathering list (server side processing with auto-generation)
- [ ] Attendance list (server side processing with auto-generation)
- [ ] member list (attendance level with editing category)
- [ ] Attending list (new design with server side processing)
- [ ] Create roaster page (no real-time update in v1)
- [ ] Coworker roaster, X: characters, Y: dates(gatherings)
- [ ] Audit log/history/vision of data: django-pghistory maybe
- [ ] Coworker roaster on phone/web, X: characters, Y: dates(gatherings)
- [ ] Audit log/history/vision of data
- [ ] find library and install: django-pghistory maybe
- [ ] each model level version
- [ ] document aggregation level version
- [ ] upgrade to Django 3.2LTS or 4
-[ ] use Django JSONField instead of Postgres JSONField
-[ ] decide async or not (uvicorn high CPU usage)
- [ ] deploy to AWS EC2
- [ ] Export directory booklet pdf
- [ ] i18n Translation on model data, django-parler maybe?

</details>
4 changes: 0 additions & 4 deletions attendees/persons/forms/__init__.py

This file was deleted.

50 changes: 0 additions & 50 deletions attendees/persons/forms/attendee_crispy_form.py

This file was deleted.

20 changes: 0 additions & 20 deletions attendees/persons/forms/attendee_form.py

This file was deleted.

83 changes: 0 additions & 83 deletions attendees/persons/forms/attendees_formset.py

This file was deleted.

42 changes: 0 additions & 42 deletions attendees/persons/forms/attendees_formset_helper.py

This file was deleted.

49 changes: 5 additions & 44 deletions attendees/persons/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
datagrid_assembly_data_attendees_list_view,
datagrid_assembly_data_attendings_list_view,
datagrid_attendee_update_view,
info_of_attendee_create_view,
api_attendee_attendings_viewset,
attendee_update_view,
attendees_update_view,
attendee_detail_view,
api_user_meet_attendings_viewset,
api_family_organization_attendings_viewset,
)
Expand All @@ -35,7 +31,7 @@
router.register(
'api/datagrid_data_attendees',
api_datagrid_data_attendees_viewset,
basename='attending',
basename='attendee',
)
router.register(
'api/(?P<division_slug>.+)/(?P<assembly_slug>.+)/assembly_meet_attendings',
Expand Down Expand Up @@ -142,50 +138,15 @@
),

path(
"attendee_detail_view/<str:attendee_id>",
view=attendee_detail_view,
name="attendee_detail_view",
),

path(
"attendee_detail_view/",
view=attendee_detail_view,
name="attendee_detail_view",
),

path(
"attendee_update_view/<str:attendee_id>",
view=attendee_update_view,
name="attendee_update_view",
),

path(
"attendee_update_view/",
view=attendee_update_view,
name="attendee_update_view",
),

path(
"attendees_update_view/<str:attendee_id>",
view=attendees_update_view,
name="attendees_update_view",
),

path(
"attendees_update_view/",
view=attendees_update_view,
name="attendees_update_view",
),

path(
'<slug:division_slug>/<slug:assembly_slug>/datagrid_attendee_update_view/',
'<slug:division_slug>/<slug:assembly_slug>/datagrid_attendee_update_view/self',
view=datagrid_attendee_update_view,
name='datagrid_attendee_update_view',
name='datagrid_attendee_update_self', # null attendee_id will be replaced by request.user's attendee_id
),
path(
'<slug:division_slug>/<slug:assembly_slug>/datagrid_attendee_update_view/new',
kwargs={'attendee_id': 'new', 'allowed_to_create_attendee': False},
view=datagrid_attendee_update_view,
name='datagrid_attendee_create_view', # for permission
name='datagrid_attendee_create_view', # for create non-family-attendee permission
),
path(
'<slug:division_slug>/<slug:assembly_slug>/datagrid_attendee_update_view/<str:attendee_id>',
Expand Down
4 changes: 0 additions & 4 deletions attendees/persons/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,5 @@
from .page.datagrid_assembly_data_attendees import datagrid_assembly_data_attendees_list_view
from .page.datagrid_assembly_data_attendings import datagrid_assembly_data_attendings_list_view
from .page.datagrid_attendee_update_view import datagrid_attendee_update_view
from .page.info_of_attendee_create_view import info_of_attendee_create_view
from .page.attendee_detail_view import attendee_detail_view
from .page.attendee_update_view import attendee_update_view
from .page.attendees_update_view import attendees_update_view
from .api.user_meet_attendings import api_user_meet_attendings_viewset
from .api.family_organization_attendings import api_family_organization_attendings_viewset
Loading

0 comments on commit 69bb848

Please sign in to comment.