Commit graph

17 commits

Author SHA1 Message Date
bbb
43d19d3106 New Service Request setup (#59)
* [x] Adds a ServiceRequest model for all service types
* [x] Pre-define simple service requests to begin with
* [x] Django admin for admins to handle requests
* [x] Notifications for Matrix
* [x] Moved Service Access to `services` app
* [x] Auto-create default service requests for new memberships
* [x] Most simple kinds of tests added
* [x] Fix issue in generating service requests (check for service access firstly)
* [ ] Channel and bot account

## Deployment

1. Create a bot account. Get an access token with:

   ```
   curl -XPOST \
     -d '{"type":"m.login.password", "user":"<userid>", "password":"<password>"}' \
     "https://data.coop/_matrix/client/r0/login"
   ```

2. Create an admin room for admins. Add admins + bot. Copy the room ID.
3. Add new environment variables for the setup `MATRIX_ACCESS_TOKEN` and `MATRIX_SERVICE_REQUEST_ADMIN_ROOM`

Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/59
Co-authored-by: bbb <benjamin@overtag.dk>
Co-committed-by: bbb <benjamin@overtag.dk>
2025-01-15 07:16:12 +00:00
Víðir Valberg Guðmundsson
3dd7352d90 Services (#25)
Dette PR handler om at få en måde hvorpå medlemmer kan få adgang til de forskellige services vi udbyder.

Co-authored-by: Halfdan Mouritzen <halfdan@robothangarskib.dk>
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/25
Reviewed-by: benjaoming <benjaoming@data.coop>
Co-authored-by: Víðir Valberg Guðmundsson <valberg@orn.li>
Co-committed-by: Víðir Valberg Guðmundsson <valberg@orn.li>
2024-12-22 23:46:13 +00:00
Benjamin Bach
b3795977ed Membership invitations and order emails (#47)
* [x] Create invite emails from admin
* [x] Sign up on special invite form (create password and username)
* [x] Create email with unpaid orders and payment links
* [x] Lodge unpaid orders somewhere in UI for visibility

Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/47
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-08-14 09:17:29 +00:00
Benjamin Bach
4254baf09d Changes to payment models (#32)
Flagging incoming changes, no actions required.

This is stuff I consider "MVP", as in what we need urgently to send out payment links to members and receive payments via Stripe.

- [x] Allow products, orders etc
- [x] Define several products per membership type
- [x] Possibility to create a membership BEFORE it's paid
- [x] Mark memberships active when payments are received
- [x] Create membership history for each member (via Django admin)
- [x] Efficiently mark members in a list and choose "create <membership type> for current year with an unpaid order" (Django Admin actions)
- [x] Order payment page w/ Stripe integration
- [ ] Send email with order payment link
- [ ] Send payment confirmation emails
- [x] Re-generate migrations

Co-authored-by: valberg <valberg@orn.li>
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/32
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-08-03 17:55:32 +00:00
Benjamin Bach
59620aa309 Switch to using uv instead of pip-tools (#39)
Seems to work!

Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/39
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-08-02 22:58:19 +00:00
Víðir Valberg Guðmundsson
7a3a629d6f Update requirements compilation to use hatch-pip-compile. 2024-07-31 23:26:40 +02:00
Benjamin Bach
f6d8f82065 Requirements pinning + some cleanup (#36)
Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/36
Reviewed-by: valberg <valberg@orn.li>
Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
Co-committed-by: Benjamin Bach <benjamin@overtag.dk>
2024-07-31 21:17:00 +00:00
Víðir Valberg Guðmundsson
5d516b7851 Update packages. 2024-07-17 08:44:07 +02:00
Víðir Valberg Guðmundsson
480eecca12 Cleanup. 2024-07-14 23:14:07 +02:00
Víðir Valberg Guðmundsson
f31cd62351 Implement django-view-decorator 2024-01-14 12:27:36 +01:00
Víðir Valberg Guðmundsson
2ed5df5241 Add pyproject.toml file. 2024-01-13 15:39:31 +01:00
Víðir Valberg Guðmundsson
9b52cd4270 Update stuff. 2024-01-07 15:04:08 +01:00
Víðir Valberg Guðmundsson
6894c57aa0 Upgrade dependencies. 2023-10-02 19:56:09 +02:00
Víðir Valberg Guðmundsson
f1c328a10c Upgrading stuff. 2023-09-18 20:58:30 +02:00
Víðir Valberg Guðmundsson
bc00b32c46 Add the start for administration of memberships. 2023-01-02 23:06:00 +01:00
Víðir Valberg Guðmundsson
01715a7704 Introduce subscription periods. 2023-01-02 22:13:59 +01:00
Víðir Valberg Guðmundsson
4c5803545d Switch out poetry with pip-tools. 2022-11-21 20:51:09 +01:00