Skip to content

Commit 85a02e5

Browse files
committed
Merge branch 'main' into 339_packaging_for_nix
2 parents 201f435 + 164a092 commit 85a02e5

File tree

128 files changed

+757
-728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+757
-728
lines changed

.github/workflows/run-unit-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ jobs:
4545
- name: Install python-ldap OS dependencies
4646
run: |
4747
sudo apt-get update
48-
sudo apt-get install -y libldap2-dev libsasl2-dev
48+
sudo apt-get install -y libldap2-dev libsasl2-dev slapd ldap-utils
49+
50+
- name: Disable AppArmor for slapd
51+
run: |
52+
sudo ln -s /etc/apparmor.d/usr.sbin.slapd /etc/apparmor.d/disable/
53+
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.slapd
4954
5055
- name: Install dependencies
5156
run: make dev envfile

CHANGELOG.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Release notes
22
=============
33

4+
### Version 5.4.2
5+
6+
- Migrate the LDAP testing from using mockldap to slapdtest.
7+
The mockldap and funcparserlib dependencies has been removed.
8+
https://github.com/aboutcode-org/dejacode/issues/394
9+
10+
### Version 5.4.1
11+
12+
- Upgrade Django to latest security release 5.2.7
13+
Also upgrade dependencies to latest releases.
14+
https://github.com/aboutcode-org/dejacode/pull/389
15+
416
### Version 5.4.0
517

618
- Upgrade Python version to 3.13 and Django to 5.2.x

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ RUN apt-get update \
3636
build-essential \
3737
libldap2-dev \
3838
libsasl2-dev \
39+
slapd \
40+
ldap-utils \
3941
libpq5 \
4042
git \
4143
wait-for-it \

dejacode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import git
1616

17-
VERSION = "5.4.0"
17+
VERSION = "5.4.1"
1818

1919
PROJECT_DIR = Path(__file__).resolve().parent
2020
ROOT_DIR = PROJECT_DIR.parent

dejacode/static/css/dejacode_bootstrap.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ body.signup-form .nav-link.active {
717717
body.signup-form label {
718718
display: none;
719719
}
720+
body.signup-form label.altcha-label {
721+
display: initial !important;
722+
}
720723
body.signup-form #div_id_updates_email_notification label {
721724
display: block;
722725
margin-bottom: 0!important;

dje/registration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ class DejaCodeRegistrationForm(RegistrationFormUniqueEmail):
8888

8989
use_required_attribute = True
9090
captcha = AltchaField(
91-
floating=True,
91+
floating="auto",
9292
hidefooter=True,
93+
hidelogo=True,
9394
)
9495

9596
class Meta(RegistrationFormUniqueEmail.Meta):

0 commit comments

Comments
 (0)