CHANGELOG.md 4.79 KB
Newer Older
1
## MR 160: Datepicker
2 3

Install libjs-jquery libjs-jquery-ui libjs-jquery-timepicker libjs-bootstrap javascript-common
4
```bash
5 6 7 8 9 10 11 12
apt-get -y install \
    libjs-jquery \
    libjs-jquery-ui \
    libjs-jquery-timepicker \
    libjs-bootstrap \
    javascript-common
```
Enable javascript-common conf
13
```bash
14 15
a2enconf javascript-common
```
16 17

Delete old jquery files :
18
```bash
19 20 21 22
rm -r static_files/js/jquery-ui-*
rm static_files/js/jquery-2.2.4.min.js
rm static/css/jquery-ui-timepicker-addon.css
```
23 24


25 26 27 28 29 30 31 32 33 34 35 36 37
## MR 159: Graph topo & MR 164: branche de création de graph

Add a graph of the network topology
Install *graphviz*:
```
apt-get -y install graphviz
```
Create the *media/images* directory:
```
mkdir -p media/images
```


38 39 40
## MR 163: Fix install re2o

Refactored install_re2o.sh script.
Maël Kervella's avatar
Maël Kervella committed
41
* There are more tools available with it but some function have changed, report to [the dedicated wiki page](https://gitlab.federez.net/federez/re2o/wikis/User%20Documentation/Setup%20script)for more informations or run:
42 43 44
```
install_re2o.sh help
```
45

46
* The installation templates (LDIF files and `re2o/settings_locale.example.py`) have been changed to use `example.net` instead of `example.org` (more neutral and generic)
47 48 49



Maël Kervella's avatar
Maël Kervella committed
50 51 52 53 54 55 56
## MR 176: Add awesome Logo

Add the logo and fix somme issues on the navbar and home page. Only collecting the statics is needed:
```
python3 manage.py collectstatic
```

57

Maël Kervella's avatar
Maël Kervella committed
58
## MR 172: Refactor API
59

Maël Kervella's avatar
Maël Kervella committed
60
Creates a new (nearly) REST API to expose all models of Re2o. See [the dedicated wiki page](https://gitlab.federez.net/federez/re2o/wikis/API/Raw-Usage) for more details on how to use it.
Maël Kervella's avatar
Maël Kervella committed
61 62 63 64
* For testing purpose, add `volatildap` package:
```
pip3 install volatildap
```
Maël Kervella's avatar
Maël Kervella committed
65
* Activate HTTP Authorization passthrough in by adding the following in `/etc/apache2/site-available/re2o.conf` (example in `install_utils/apache2/re2o.conf`):
66 67 68
```
    WSGIPassAuthorization On
```
Maël Kervella's avatar
Maël Kervella committed
69 70 71 72 73 74
* Activate the API if you want to use it by adding `'api'` to the optional apps in `re2o/settings_local.py`:
```
OPTIONAL_APPS = (
    ...
    'api',
    ...
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
)
```


## MR 177: Add django-debug-toolbar support

Add the possibility to enable `django-debug-toolbar` in debug mode. First install the APT package:
```
apt install pyhton3-django-debug-toolbar
```
And then activate it for Re2o by adding the app to the `OPTIONAL_APPS` in `re2o/settings_local.py`:
```python
OPTIONAL_APPS = (
    # ...
    'debug_toolbar',
    # ...
)
```
If you to restrict the IP which can see the debug, use the `INTERNAL_IPS` options in `re2o/settings_local.py`:
```
INTERNAL_IPS = ["10.0.0.1", "10.0.0.2"]
```
97 98 99 100 101 102 103 104

## MR 145: Fix #117 : Use unix_name instead of name for ldap groups

Fix a mixing between unix_name and name for groups
After this modification you need to:
* Double-check your defined groups' unix-name only contain small letters 
* Run the following commands to rebuild your ldap's groups:
  ```shell
105
  python3 manage.py ldap_rebuild
106 107 108 109 110 111
  ```

* You may need to force your nslcd cache to be reloaded on some servers (else you will have to wait for the cache to be refreshed):
  ```bash
  sudo nslcd -i groups
  ```
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
112 113 114 115 116 117 118 119 120 121

## MR 174 : Fix online payment + allow users to pay their subscription

Add the possibility to use custom payment methods. There is also a boolean field on the 
Payments allowing every user to use some kinds of payment. You have to add the rights `cotisations.use_every_payment` and `cotisations.buy_every_article`
to the staff members so they can use every type of payment to buy anything.

Don't forget to run migrations, several settings previously in the `preferences` app ar now
in their own Payment models.

Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
122
To have a closer look on how the payments works, please go to the wiki.
123

124
## MR 182: Add role models
125 126 127 128 129 130

Adds the Role model.
You need to ensure that your database character set is utf-8.
```sql
ALTER DATABASE re2o CHARACTER SET utf8;
```
131 132 133 134 135 136 137 138

## MR 247: Fix des comptes mails

Fix several issues with email accounts, you need to collect the static files.

```bash
./manage.py collectstatic
```
139 140 141 142 143 144 145 146 147 148 149 150 151 152

## MR 203 Add custom invoices

The custom invoices are now stored in database. You need to migrate your database :

```bash
python3 manage.py migrate
```

On some database engines (postgreSQL) you also need to update the id sequences:

```bash
python3 manage.py sqlsequencereset cotisations | python3 manage.py dbshell
```
erdnaxe's avatar
erdnaxe committed
153 154 155 156 157 158 159 160 161 162 163 164 165 166

## MR 296: Frontend changes

Install fonts-font-awesome

```bash
apt-get -y install fonts-font-awesome
```

Collec new statics

```bash
python3 manage.py collectstatic
```
Hugo LEVY-FALK's avatar
Hugo LEVY-FALK committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180

## MR 391: Document templates and subscription vouchers

Re2o can now use templates for generated invoices. To load default templates run

```bash
./install update
```

Be carefull, you need the proper rights to edit a DocumentTemplate.

Re2o now sends subscription voucher when an invoice is controlled. It uses one
of the templates. You also need to set the name of the president of your association
to be set in your settings.