Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/kiwitcms/tenants

Multi-tenant support for Kiwi TCMS
https://github.com/kiwitcms/tenants

Show warnings only if no other warnings exist

this is a minor optimization trick so we don't show multiple
warnings when pages are reloaded.

887ef87dfcc5874abfe2db6ced0f9575fcc81e3f authored over 5 years ago by Mr. Senko <[email protected]>
Add test for BlockUnauthorizedUserMiddleware

84d26f51c6abf6548a4dee8c17853ae4aeaeb81a authored over 5 years ago by Mr. Senko <[email protected]>
Remove deprecated MiddlewareMixin, Refs #17

d2eebd16977a7f1a71edd0fbaa81bc155b2aed62 authored over 5 years ago by Mr. Senko <[email protected]>
Email when a new tenant is created

requires changes to utils.create_tenant() signature

8649d97168e7d7feaba389ae9faf89d5ece7c00f authored over 5 years ago by Mr. Senko <[email protected]>
Add tests for BlockUnpaidTenantMiddleware

ddde2336030d0cf7d69b9da86cb21e53251ed447 authored over 5 years ago by Mr. Senko <[email protected]>
Fix typos in new middleware

386c591c02909e0ba9b2e11d4bcddeb0dbf3a9e6 authored over 5 years ago by Mr. Senko <[email protected]>
Update .po files

fa0cef0c2f94798bfe0f12f3d799c5d0c2ede788 authored over 5 years ago by Mr. Senko <[email protected]>
Changelog for version 0.2.0

92212427c757da127eab8256c6088d5c9c805b95 authored over 5 years ago by Mr. Senko <[email protected]>
Add on_trial and paid_until fields in form/create_tenant

render form.on_trial as hidden b/c when not provided Django
defaults to False and we need the de...

99093fee094aead1582ff716a8b2aa57a81e2648 authored over 5 years ago by Mr. Senko <[email protected]>
Show first primary domain in Admin

10e731d3d5a97dc94caf9f88c6499a2719df6564 authored over 5 years ago by Mr. Senko <[email protected]>
Use FastTenantTestCase while testing

hopefully we keep everything under 50min on Travis CI

7a821100e4691f2d99e414a40a5b4d9f8e23003e authored over 5 years ago by Mr. Senko <[email protected]>
Make create_tenant() to receive a dict with form field values

this will facilitate to make it easier to override and also pass
purchase dates and trial periods

fb9fce1707885484bc23ac67a1c29542ced2eceb authored over 5 years ago by Mr. Senko <[email protected]>
Use DateTimeField instead of DateField

b301fbe2230866d0a2c5829dd0db652e65d9678a authored over 5 years ago by Mr. Senko <[email protected]>
Run tests in verbose mode

f009848c9136b4699b459f7e4224b574c9271975 authored over 5 years ago by Mr. Senko <[email protected]>
In RedirectToTestCase use existing self.tenant

save some execution time by not creating a new tenant

d24bb177cd2c9709237020095ae9947f341a3fe9 authored over 5 years ago by Mr. Senko <[email protected]>
Pylint fix

c36c800576b5e16b26bbd2be98cf94dbaaf54b8f authored over 5 years ago by Mr. Senko <[email protected]>
Remove extra obj parameter in Admin

caught by pylint !!!

2132e80921c78ddde18e612a939dd83e47f620a5 authored over 5 years ago by Mr. Senko <[email protected]>
Don't auto_create_schema during testing

because we really don't need to - not storing any data on the
tenants ATM. This cuts execution t...

d46d2acaaead29ed784c2ac633da9602df7628e0 authored over 5 years ago by Mr. Senko <[email protected]>
In TenantFileSystemStorageTestCase use existing self.tenant

save some execution time by not creating a new tenant

0e73edef3c76face12eaf5598af41c1c8395becb authored over 5 years ago by Mr. Senko <[email protected]>
Remove django.contrib.contenttypes from TENANT_APPS

otherwise causes missing permissions when creating TestCases on
tenants. See
https://github.com/...

a7dbe540ecbfd92fa7a5fb7214f7799ee3a1d71e authored over 5 years ago by Mr. Senko <[email protected]>
Update kiwitcms from 6.7 to 6.8

eddc5a16a3e6517e4f1342915689a9c51ceee672 authored over 5 years ago by pyup-bot <[email protected]>
Modify tenant_url templatetag to receive schema_name argument

84d6466e99a64d557bf22cfc3005a4a90580f8a9 authored over 5 years ago by Mr. Senko <[email protected]>
Changelog for v0.1.10

f2192546d5486a7bb0da792680ddb668d6c5a706 authored over 5 years ago by Mr. Senko <[email protected]>
Revert "Removet templatetags/ b/c unused"

This reverts commit 50e475dba4ead7a4ad6518e4860c6fd1fbdd7cf7.

e587062f8134948c47e02e35c93ac1aea072c96c authored over 5 years ago by Mr. Senko <[email protected]>
Pin pylint-django to latest version 2.0.9

b8c4c7e3614f551a27dd76f37db73b0672eef5c6 authored over 5 years ago by pyup-bot <[email protected]>
Changelog for v0.1.9

8a53892c47ca11cdd6b08fa56e17a8ddfd8f3357 authored over 5 years ago by Mr. Senko <[email protected]>
Fix failing tests by providing Tenant.owner

8b34845c886869a115fd041b1c6bc673295dfaa7 authored over 5 years ago by Mr. Senko <[email protected]>
Pin factory_boy to latest version 2.11.1

86e21a3ef555fe2e232b65ab62c91e7566a6b3fd authored over 5 years ago by pyup-bot <[email protected]>
Changelog for v0.1.8

3c1fff9508144d75a4898ac2cb1e8aac0c8fec4e authored over 5 years ago by Mr. Senko <[email protected]>
Remove support code in migration 0002

this was only useful to migrate an already deployed DB and doesn't
affect new installations

31afabe088fd9c71d94620f65c682278ac5d97a4 authored over 5 years ago by Mr. Senko <[email protected]>
Make it possible to redirect to tenant's /

60894f4be0642ca330a593abf896dd68175cbf21 authored over 5 years ago by Mr. Senko <[email protected]>
Exclude tests from coverage

55fec89e09208c2df5f2b9552381f4ec913fd96d authored over 5 years ago by Mr. Senko <[email protected]>
Add view which facilitates GitHub login & redirects

because of how GitHub matches the redirect_uri parameter!

ef6b160b791197ada8e3755c1feed53df908c535 authored over 5 years ago by Mr. Senko <[email protected]>
Add pylint and fix some issues - not in CI for now

d1d6766cef57a0ee7a725b82e9fa053d0ab95cc9 authored over 5 years ago by Mr. Senko <[email protected]>
Removet templatetags/ b/c unused

50e475dba4ead7a4ad6518e4860c6fd1fbdd7cf7 authored over 5 years ago by Mr. Senko <[email protected]>
Add PostgreSQL docker compose for local testing

after starting the container you have to manually add CREATEDB
permission:

ALTER USER kiwi CREA...

da75732024fbf2f1d2efe703910c98b8c47a46a6 authored over 5 years ago by Mr. Senko <[email protected]>
Packaging fix - missing migrations

ccbf63b3723597241ed661ce0b92e5974e3830ee authored over 5 years ago by Mr. Senko <[email protected]>
Changelog for v0.1.6

f525c60d0309a32f2a72380c129e71d6025cd7dd authored over 5 years ago by Mr. Senko <[email protected]>
Create a special user with ID 0

fc1ea10a53729d5e569d0274f0f5da7b2ed0358e authored over 5 years ago by Mr. Senko <[email protected]>
Add Tenant.owner FK pointing to user creating the tenant

feccc9347aa5084127acf8fda6203f673993db14 authored over 5 years ago by Mr. Senko <[email protected]>
Rename test DB to test_project

7038076383ab54a26ea8b8161bbdf6c6441b4e3e authored over 5 years ago by Mr. Senko <[email protected]>
New translations django.po (Czech)

21b5e98e3c828b6b01139439778478b09b4bfd45 authored over 5 years ago by kiwitcms-bot <[email protected]>
Changelog for version 0.1.5

9a49ceeb54a4d709b29a671eb4111763cd665cdc authored over 5 years ago by Mr. Senko <[email protected]>
Don't use find_packages b/c it doesn't exclude test_project/ from bdist_wheel

63269d202611db72f5d92b25aec0ceaae56ae849 authored over 5 years ago by Mr. Senko <[email protected]>
New translations django.po (Slovenian)

c84b3fdc309070fa9ebf78d23c16812d28953890 authored over 5 years ago by kiwitcms-bot <[email protected]>
New translations django.po (Slovenian)

a90d6fd481ab85e19a0c8aaec68ed2c427a50afa authored over 5 years ago by kiwitcms-bot <[email protected]>
New translations django.po (Chinese Simplified)

78acd8db69d771ebf92a68bc66df02602677a6ad authored over 5 years ago by kiwitcms-bot <[email protected]>
New translations django.po (Russian)

726b04703c42fdd47dba365aeb7026c03a6a16e0 authored over 5 years ago by kiwitcms-bot <[email protected]>
New translations django.po (Chinese Traditional)

92e51a3963aa3a26a94a90e34b85ff938867017c authored over 5 years ago by kiwitcms-bot <[email protected]>
Update django-tenants from 2.2.2 to 2.2.3

f1eb4756c4538e949907c3edf6a5ecf6a8922c74 authored over 5 years ago by pyup-bot <[email protected]>
Update django-tenants from 2.2.1 to 2.2.2

ac44579c0b79f4d02e31b5a29fd8efb84d9b42f6 authored over 5 years ago by pyup-bot <[email protected]>
Update django-tenants from 2.2.0 to 2.2.1

a7fb0bd2e7203c54e5b6386b777f57d90ca6d927 authored over 5 years ago by pyup-bot <[email protected]>
Changelog for v0.1.4

dd807da52a95e4a96538a0d1b85f15a7934f3ad3 authored over 5 years ago by Mr. Senko <[email protected]>
Update django-tenants to 2.2.0

which supports Django 2.2.0

9f26510a1dabf67b186ff7d3a7d97f122fc4b478 authored over 5 years ago by Mr. Senko <[email protected]>
Add missing copyright notice

9d87dc850423eb14db4df2eaef8cd8a39be18fd6 authored over 5 years ago by Mr. Senko <[email protected]>
v0.1.3: rename TCMS_TENANTS_DOMAIN to KIWI_TENANTS_DOMAIN

8c1e4bcaa28e3bb2fcc79bfca293eac5849c3efb authored over 5 years ago by Mr. Senko <[email protected]>
Update kiwitcms from 6.6 to 6.7

a61e8ff4fc64f29ac925d19f7c82ef178cb53108 authored almost 6 years ago by pyup-bot <[email protected]>
typo

b9b824b2f0341a0061606e1092c9f98352135f67 authored almost 6 years ago by Mr. Senko <[email protected]>
v0.1.2 - include/exclude directories from tarball

f4f975eec7b93be4ed9538f0a3018b37991b822b authored almost 6 years ago by Mr. Senko <[email protected]>
Add changelog for version 0.1.1

22bdbbcb1f9bb6b807390ff3e01f8930a466155c authored almost 6 years ago by Mr. Senko <[email protected]>
Allow downstream to override tcms_tenants/new.html template

to provide an SLA or Terms and Conditions for example.

19c47ab5ed2307d5ca1d80b48919476915f5f414 authored almost 6 years ago by Mr. Senko <[email protected]>
Refer to test_project/settings.py in README for now

this is a quick work-around for the missing documentation.

1550724e0df4b01a0b5d7ffd0702f7d730b1d7fe authored almost 6 years ago by Mr. Senko <[email protected]>
Fix a problem with saving Tenant.authorized_users via admin

by work-arounding a missing ContentType object for the through
model.

c15a0cfa3691f308702ca28b3efbf21177cccabd authored almost 6 years ago by Mr. Senko <[email protected]>
Update .gitignore

74bc3ffad3b652361dbcff4f421c188f1f9507bc authored almost 6 years ago by Mr. Senko <[email protected]>
Add storage tests

8d2dc9b7558789f4311e8730a28f10f3b4f08edd authored almost 6 years ago by Mr. Senko <[email protected]>
Add tests/__init__.py so Travis doesn't fail

5169d593c5665623fbc8c11aab02045102b2a5d5 authored almost 6 years ago by Mr. Senko <[email protected]>
Add TenantFileSystemStorage

d37cca6ad1ecd6f1974da9b8e3d6420d99d5f528 authored almost 6 years ago by Mr. Senko <[email protected]>
Fix postgres syntax

79876769ac7fd2799199c6aa57e2bd86b93076b0 authored almost 6 years ago by Mr. Senko <[email protected]>
Cache pip installs for Travis CI

a5d2b3e67a5992b3cf013b7ca5c86d5f08dcfca9 authored almost 6 years ago by Mr. Senko <[email protected]>
Quote typos

af8262517ffcbb612ba6db668b6a304d630a0389 authored almost 6 years ago by Mr. Senko <[email protected]>
[Travis CI] Create DB user and grant it privileges

fc84eb019ba1ef3384f209e0f90604b44552512c authored almost 6 years ago by Mr. Senko <[email protected]>
Use make check in Travis

f75816798d2ac66c357c6c32d870b6d193665893 authored almost 6 years ago by Mr. Senko <[email protected]>
Add templatetag for full tenant URL

this is going to be used for PSA login url override and set
the ?next= parameter to the tenant URL.

231adfe182ba03f3b310279f58295d1cfb52b9a0 authored almost 6 years ago by Mr. Senko <[email protected]>
Allow sharing login sessions between tenants

040ab874c2f898f0a15a15f104a3817c33a5badb authored almost 6 years ago by Mr. Senko <[email protected]>
New translations django.po (German)

7c243612c9339a9966ef55d63bbd11041dbba222 authored almost 6 years ago by kiwitcms-bot <[email protected]>
New translations django.po (Slovenian)

75408406159ce4041b38fa50ea6d7cb423e9f580 authored almost 6 years ago by kiwitcms-bot <[email protected]>
New translations django.po (French)

797c8b543a37fa09e67f81198a904408f6aca998 authored almost 6 years ago by kiwitcms-bot <[email protected]>
Add Crowdin badge

b379e58bc7fd3c86349b39b3fc897e35ca29fc40 authored almost 6 years ago by Mr. Senko <[email protected]>
[l10n] Add configuration for Crowdin

afcbad9bb71b57bde88d7fbed9c14880cce540e1 authored almost 6 years ago by Mr. Senko <[email protected]>
[l10n] - Create English .po file

3197f6c46e9fc5921a2a93d2da1d63ca3bb41cb8 authored almost 6 years ago by Mr. Senko <[email protected]>
Move test_project/ one directory up

this will help with making translation files

1f5c87acb62205fd48ffea4854c0dbbcbf9416f0 authored almost 6 years ago by Mr. Senko <[email protected]>
'squash' migrations before release

909cc77e89f78e1eddb0891b675361d48c590119 authored almost 6 years ago by Mr. Senko <[email protected]>
Add more db_index for all Tenant fields

bcbddcbeebb06cf97167da517d98f597086c36c4 authored almost 6 years ago by Mr. Senko <[email protected]>
Add db_index for Tenant.schema_name and Domain.is_primary

see
https://github.com/tomturner/django-tenants/pull/253

44383b7d5bc943f4d48fd1f70bcf89861ad347b2 authored almost 6 years ago by Mr. Senko <[email protected]>
Automatically drop schema when tenant is removed

1c569e1200e7526bca167d8da3bcb13a62d47f5f authored almost 6 years ago by Mr. Senko <[email protected]>
Use translated 403 response for unauthorized users

cd95d5af6e1a217afca38796b1a5fae0c0eacbe4 authored almost 6 years ago by Mr. Senko <[email protected]>
Add warning about port number and TCMS_TENANTS_DOMAIN

e38742a1a50751b14bb578eccc6c55e4b771792f authored almost 6 years ago by Mr. Senko <[email protected]>
Rename perms.py -> utils.py

cd5c72db87d58823aedbca66873fa34df2b1b57c authored almost 6 years ago by Mr. Senko <[email protected]>
Allow super-user to delete tenants

5b04ca3e462253047b1c7beee2cb9881cf8b3020 authored almost 6 years ago by Mr. Senko <[email protected]>
Implement views for creating a new tenant

db5c06187a72213a2e1b6b64c0b265c2aa643ff3 authored almost 6 years ago by Mr. Senko <[email protected]>
Extend Kiwi TCMS urls patterns for tenant views

56617b83bbcf1c2bdcb0c0b90a2bb339ec0f6570 authored almost 6 years ago by Mr. Senko <[email protected]>
Add settings for multi-tenant storage

Note: these depend on
https://github.com/tomturner/django-tenants/pull/252.

If we integrate bef...

f98a54b868c2922bcb8cd2b4a828266805d0b4ff authored almost 6 years ago by Mr. Senko <[email protected]>
Add TENANT menu to navigation links

77f06373b19dd4da26793fea5546a1fc62979e1a authored almost 6 years ago by Mr. Senko <[email protected]>
Fix form validation with comments about internal mechanics

we're going to need good test coverage for this!

560ec52e145df45c050b04ec7a1c618ebcd0800a authored almost 6 years ago by Mr. Senko <[email protected]>
Attempt to filter ModelChoiceField and show only current tenant

when saving produces an error and we can't save a new instance of
tenant-user relationship objects!

a856290bb90adfc63723ad4228abc4319f93c80a authored almost 6 years ago by Mr. Senko <[email protected]>
Allow anonymous users to reach login pages

1de44c22164c04e20d41ba6c529d62f18948d1c7 authored almost 6 years ago by Mr. Senko <[email protected]>
Allow users to administer tenant-user relationships

e85059185b7af5b6379039fff9df246622f7cd20 authored almost 6 years ago by Mr. Senko <[email protected]>
Filter tenant-user objects if not superuser

1ee588cf4c3a3d85d98e967d3c91e27e6964ae6b authored almost 6 years ago by Mr. Senko <[email protected]>
Add admin for tenant-user relationship objects

001291ca27df5e23b46168b4c60e23148d8c325e authored almost 6 years ago by Mr. Senko <[email protected]>
Use middleware to deny tenant access for unauthorized users

4465b377d0c174e077281783a201b092972038b6 authored almost 6 years ago by Mr. Senko <[email protected]>