Loïc Dachary
eaff09efd4
Merge pull request 'do not rename past migrations' ( #73 ) from dachary/dashboard:wip-forgejo into master
...
Reviewed-on: Hostea/dashboard#73
2023-01-09 12:59:42 -05:00
Loïc Dachary
d07a644552
upgrade greenlet 1.1.3.post0
2023-01-09 18:51:22 +01:00
Loïc Dachary
93c38fc1f9
Forgejo is codeberg.org/forgejo/forgejo:1.18.0-1
2023-01-09 18:39:35 +01:00
Loïc Dachary
788e025b98
do not rename past migrations
...
it is not possible to go back in time
2023-01-09 18:24:10 +01:00
Loïc Dachary
1c165fcea3
upgrade gitea to forgejo
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-12-23 22:34:38 +01:00
Aravinth Manivannan
2e36a186ee
Merge pull request 'convert instance names to lowercase' ( #70 ) from dachary/dashboard:wip-lowercase into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/70
2022-10-04 04:39:04 -04:00
Loïc Dachary
ad925cddfc
convert instance names to lowercase
...
Fixes: https://gitea.gna.org/Hostea/dashboard/issues/69
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-10-04 09:14:50 +02:00
Loïc Dachary
2725b9b1f6
avoid crash in CI when STRIPE is not set
...
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-10-04 09:14:50 +02:00
Loïc Dachary
0f1003dbe8
Merge pull request 'fix: receipt email subject' ( #68 ) from fix-email-typo into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/68
2022-10-01 12:01:08 -04:00
Aravinth Manivannan
187d22118f
Merge pull request 'do not pin Gitea version' ( #67 ) from dachary/dashboard:wip-gitea into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/67
2022-10-01 07:55:12 -04:00
Hostea dashboard
9b9fb8362d
fix: receipt email subject
2022-09-30 18:36:56 +05:30
Loïc Dachary
498b95848e
do not pin Gitea version
...
So that it is upgraded when Enough is upgraded.
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-09-30 14:54:50 +02:00
Loïc Dachary
b5afc49f5d
Merge pull request 'notify staff when new instance is deployed' ( #61 ) from alert-staff-new-instance into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/61
2022-09-14 02:48:21 -04:00
Hostea dashboard
86fe9a2c59
feat: alert staff on new instance creation
...
closes: https://gitea.gna.org/Hostea/dashboard/issues/52
2022-09-13 19:57:37 +05:30
Hostea dashboard
9d2a53f2e2
fix: more email project renaming
2022-09-13 19:57:26 +05:30
Loïc Dachary
c7def47215
Merge pull request 'fix: don't send pre-payment notification email' ( #56 ) from fix-rm-not-invoice into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/56
2022-09-12 15:48:14 -04:00
Hostea dashboard
9f5032bd28
feat: send subscription renewal notification emails
2022-09-12 21:01:24 +05:30
Hostea dashboard
669a22a004
fix: don't send pre-payment notification email
...
closes: https://gitea.gna.org/Hostea/dashboard/issues/49
2022-09-12 21:01:21 +05:30
Loïc Dachary
0ab82fe0b4
Merge pull request 'fix: rename Gna! in emails' ( #60 ) from fix-rename-gna-in-emails into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/60
2022-09-12 08:36:17 -04:00
Hostea dashboard
0e0b8db940
fix: test for Gna! in emails
2022-09-12 17:36:24 +05:30
Hostea dashboard
ac0775e075
fix: rename to Gna! in email templates
2022-09-12 17:36:04 +05:30
Hostea dashboard
51e7ea4d5e
fix: rename Gna! in emails
2022-09-12 16:36:29 +05:30
Loïc Dachary
98973301c3
Merge pull request 'fix: don't send emails to VMs that were requested but not created' ( #54 ) from fix-dead-instance-invoices into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/54
2022-09-11 19:07:41 -04:00
Hostea dashboard
3ebc518e1f
fix: don't send emails to VMs that were requested but not created
...
SUMMARY
dash.models.Instance is created upon request and
infrastructure.models.InstanceCreated when the instance is created.
Using data from InstanceCreated to send invoices should solve this
issue.
2022-09-12 04:05:41 +05:30
Aravinth Manivannan
25db390e4d
Merge pull request 'Rename hostea to gna!' ( #59 ) from wip-rename-hostea-to-gna into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/59
2022-09-11 18:25:58 -04:00
Hostea dashboard
6365b84d45
feat: run collectstatic before launching development server to update static assets
2022-09-12 03:53:19 +05:30
Hostea dashboard
41ca63244e
feat: update name and web links to Gna!
2022-09-12 03:53:19 +05:30
Hostea dashboard
0e2112e30f
feat: change hostea logo to gna!
2022-09-12 03:53:19 +05:30
Loïc Dachary
5b7cf06c7a
Merge pull request 'fix: instance_names in tests must be alphanumeric and be < 20 chars' ( #58 ) from fix-hostname-validation into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/58
2022-09-11 18:13:12 -04:00
Hostea dashboard
1792713952
fix: instance_names in tests must be alphanumeric and be < 20 chars
...
closes: https://gitea.gna.org/Hostea/dashboard/issues/57
2022-09-12 03:33:20 +05:30
Loïc Dachary
3019d9d739
Merge pull request 'fix: add hostname validation rules' ( #55 ) from fix-hostname-validation into master
...
Reviewed-on: https://gitea.gna.org/Hostea/dashboard/pulls/55
2022-09-11 16:11:58 -04:00
Hostea dashboard
bcb2e26f61
feat: test vm name validation
2022-09-04 18:04:37 +05:30
Hostea dashboard
011fb4816f
fix: validate VM names
...
fixes: https://gitea.gna.org/Hostea/dashboard/issues/51
2022-09-04 17:49:53 +05:30
Hostea dashboard
6c31555a52
feat: password reset workflow
...
fixes: https://gitea.hostea.org/Hostea/support/issues/2
2022-07-10 12:42:16 +05:30
Hostea dashboard
060e9b84d4
fix: update password reset link
2022-07-10 12:40:00 +05:30
Hostea dashboard
418bb7dec0
fix: tests rely on a string from login page. Login page update reflects
...
in tests
2022-07-10 12:39:33 +05:30
Loïc Dachary
c4375a43b2
Merge pull request 'Update the page content' ( #48 ) from dachary/dashboard:wip-site into master
...
Reviewed-on: https://gitea.hostea.org/Hostea/dashboard/pulls/48
2022-07-10 02:43:43 -04:00
Loïc Dachary
705c3a282b
copy/paste the hostea.org home page content
...
ci/woodpecker/push/woodpecker Pipeline failed
Details
So they are consistent with each other.
Fixes : #47
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-07-10 08:42:38 +02:00
Loïc Dachary
cfd5518518
Add link to https://hostea.org
...
So that the user can conveniently go back to hostea.org without
editing with the URL manually.
Signed-off-by: Loïc Dachary <loic@dachary.org>
2022-07-10 08:20:24 +02:00
Aravinth Manivannan
a95158f3df
fix: Gite credentials email: fix subject and let user know instance is
...
being provisioned
fixes: https://gitea.hostea.org/Hostea/dashboard/issues/44
2022-07-09 10:54:45 +05:30
Aravinth Manivannan
b12cc044da
fix: Invoice generation must not consider deleted VMs' names for
...
checking if payment is already fulfilled
DESCRIPTION
Invoice generation is dependent on instance_name. Deleting a VM
doesn't delete the corresponding payments record since payment
receipts should be preserved for accounting purposes.
But being heavily dependent on instance_name, without taking deleted
VMs into account produces incorrect behavior under certain
circumstances: if a VM named 'foo' is paid for and is deleted before
its billing cycle is competed and a new VM is created with the same
name, either by the same user or a different user, invoice won't be
generated for the new VM since a payment record already exists for
that billing cycle for the VM named 'foo'.
Marking deleted VMs' payment records unsuitable for checking if a VM
is already paid for will result in correct behavior.
fixes: https://gitea.hostea.org/Hostea/dashboard/issues/38
2022-07-08 22:28:39 +05:30
Aravinth Manivannan
cc12d1a77d
fix: hard-code CI_COMMIT_AUTHOR_* details to avoid failures in PR builds
...
ref: https://gitea.hostea.org/Hostea/dashboard/pulls/42
2022-07-08 19:51:06 +05:30
Aravinth Manivannan
cb6bce0c44
Merge pull request 'git config before push' ( #43 ) from dachary/dashboard:wip-config-3 into master
...
Reviewed-on: https://gitea.hostea.org/Hostea/dashboard/pulls/43
2022-07-08 10:18:00 -04:00
Aravinth Manivannan
bebf18946a
fix: re-enable billing app tests
...
Commented out for debugging, forgot to enable(!!)
2022-07-08 19:31:06 +05:30
Loïc Dachary
6e84746a2c
git config before push
ci/woodpecker/push/woodpecker Pipeline was successful
Details
2022-07-08 15:47:53 +02:00
Aravinth Manivannan
2c8a5909cb
fix: generate absolute URI when attaching links in invoice and payment
...
notification
fixes: https://gitea.hostea.org/Hostea/dashboard/issues/37
2022-07-08 18:51:04 +05:30
Aravinth Manivannan
ce0498b013
fix: add instance link in primary nav bar points to right page
2022-07-08 18:43:04 +05:30
Aravinth Manivannan
809322d245
feat: docs: generate_invoice management cmd
...
fixes: https://gitea.hostea.org/Hostea/dashboard/issues/29
2022-07-08 01:51:22 +05:30
Aravinth Manivannan
2ee54a71e3
feat: management command to periodically generate invoices
...
SUMMARY
`python manage.py generate_invoice` generates invoices for VMs when
it enters a new billing cycle and sends a notification email to
VM owners.
This command should be run as frequently as desirable. Running daily
is recommended.
BILLING CYCLE
By default, a billing cycle is 30 days.
2022-07-08 01:46:17 +05:30
Aravinth Manivannan
438e34f7d6
chore: refactor invoice generation into a util fn
2022-07-08 00:51:11 +05:30