Loïc Dachary
788e025b98
do not rename past migrations
...
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/pr/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/pr/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
2022-09-30 18:36:56 +05:30
Loïc Dachary
498b95848e
do not pin Gitea version
...
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/pr/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline failed
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline failed
Details
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/pr/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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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/pr/woodpecker Pipeline failed
Details
2022-07-08 15:47:53 +02:00
Aravinth Manivannan
2c8a5909cb
fix: generate absolute URI when attaching links in invoice and payment
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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
Aravinth Manivannan
9c239ad78b
feat: send invoice generated notification email and payments receipt mail
ci/woodpecker/push/woodpecker Pipeline was successful
Details
2022-07-07 20:51:33 +05:30
Aravinth Manivannan
147eead388
Merge pull request 'clone instead of fetch' ( #19 ) from dachary/dashboard:wip-pull into master
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
Reviewed-on: https://gitea.hostea.org/Hostea/dashboard/pulls/19
2022-07-07 04:42:46 -04:00
Aravinth Manivannan
f2f2fadae4
feat: use whitenoise for static file in development too for uniform Behavior
...
ci/woodpecker/push/woodpecker Pipeline was successful
Details
> it opens up the possibility for differences in behaviour between development and production environments. For this reason it’s a good idea to use WhiteNoise in development as well.
source: http://whitenoise.evans.io/en/stable/django.html#using-whitenoise-in-development
2022-07-07 13:59:06 +05:30