Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
542 commits
Select commit Hold shift + click to select a range
ead1f71
refactor(core,ToU): add ToU middleware to MIDDLEWARE by default
MyPyDavid Feb 17, 2025
28ecef0
fix(core,utils): use input date arg
MyPyDavid Feb 17, 2025
356f92e
tests(core,utils): add tests for the date parser
MyPyDavid Feb 17, 2025
b9cdafc
refactor(accounts): rename adapter.py to account.py
MyPyDavid Feb 17, 2025
90c32a3
feat(projects,sync): disable sync by default
MyPyDavid Feb 17, 2025
3c2ea28
refactor(managers,sync): add filter_for_project method
MyPyDavid Feb 17, 2025
394f9b6
Fix tests
jochenklar Feb 17, 2025
fa69180
tests(project, handlers): add fixtures to enable sync
MyPyDavid Feb 18, 2025
675078e
Fix CI
jochenklar Feb 18, 2025
1b42dd1
feat(project,tasks,views): add user to availability filter
MyPyDavid Feb 18, 2025
9410725
style(core,xml): use __version__ and rm newline
MyPyDavid Feb 18, 2025
3da6110
tests(project, handlers): fix import of enable_project_tasks_sync
MyPyDavid Feb 18, 2025
e9281a5
Merge pull request #1217 from rdmorganiser/feat-add-terms-of-use-midd…
MyPyDavid Feb 18, 2025
ab0975a
chore(core,xml): clean up redundant version check
MyPyDavid Feb 18, 2025
7fc4740
style(project,tasks,views): update sync queries
MyPyDavid Feb 18, 2025
bd4ea48
feat(core,serializer): add max length validator to translation mixin
MyPyDavid Feb 18, 2025
85e74f0
tests(questions): add tests for short title field validation
MyPyDavid Feb 18, 2025
46e4c05
fix(core,serializer): add check for max length to validators
MyPyDavid Feb 19, 2025
5dff860
Merge pull request #1215 from rdmorganiser/1212-three-spelling-mistak…
jochenklar Feb 20, 2025
7ada4e1
Merge pull request #1218 from rdmorganiser/feat-sync-project-views-an…
MyPyDavid Feb 20, 2025
61aa6cb
Merge pull request #1232 from rdmorganiser/1205-add-minimum-version-t…
MyPyDavid Feb 20, 2025
1417153
Merge pull request #1246 from rdmorganiser/1244-bug-in-saving-short-t…
MyPyDavid Feb 20, 2025
85e99c0
Merge pull request #1245 from rdmorganiser/refactor_pandoc
jochenklar Feb 20, 2025
d85a8a0
Use extra_kwargs instead of overriding serializer fields to add requi…
jochenklar Feb 22, 2025
e62a983
Add missing read_only=True to serializer fields
jochenklar Feb 22, 2025
83ba6da
Add German translations
jochenklar Feb 22, 2025
613ce32
Merge pull request #1250 from rdmorganiser/fix_uri_path_serializer_fi…
MyPyDavid Feb 24, 2025
6cddf6f
Update setuptools requirement from <74,>=73 to >=73,<75
dependabot[bot] Sep 1, 2024
14ebab5
Bump @babel/cli from 7.24.1 to 7.25.6 in the babel group
dependabot[bot] Sep 1, 2024
6eca221
Bump webpack from 5.93.0 to 5.94.0 in the webpack group
dependabot[bot] Sep 1, 2024
0da3b01
Update django-allauth[openid,socialaccount] requirement
dependabot[bot] Sep 1, 2024
998930d
build(deps-dev): bump the dev-dependencies group across 1 directory w…
dependabot[bot] Sep 23, 2024
0f5863e
build(deps): update setuptools requirement from <75,>=73 to >=73,<76
dependabot[bot] Oct 1, 2024
d5ce963
build(deps-dev): bump webpack from 5.94.0 to 5.95.0 in the webpack group
dependabot[bot] Oct 1, 2024
e8f48ed
build(deps): bump date-fns in the prod-dependencies group
dependabot[bot] Oct 1, 2024
e4afc98
build(deps): update importlib-metadata requirement from <8.5.0 to <8.6.0
dependabot[bot] Oct 1, 2024
49d94c5
build(deps): bump the django group with 2 updates
dependabot[bot] Oct 1, 2024
2b77279
build(deps): update django-allauth[openid,socialaccount] requirement
dependabot[bot] Nov 1, 2024
44a61e1
build(deps-dev): bump webpack from 5.95.0 to 5.96.0 in the webpack group
dependabot[bot] Nov 1, 2024
dd74777
build(deps-dev): bump the babel group with 3 updates
dependabot[bot] Nov 1, 2024
0cffaf5
build(deps): bump react-datepicker in the react group
dependabot[bot] Nov 1, 2024
7408dcd
build(deps): bump coverallsapp/github-action in the github-actions group
dependabot[bot] Nov 1, 2024
7b26f03
build(deps-dev): bump eslint-plugin-react
dependabot[bot] Nov 1, 2024
aa2648b
build(pre-commit): pre-commit autoupdate by ci
pre-commit-ci[bot] Nov 4, 2024
20ecd9f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 4, 2024
9bb79b3
build(deps-dev): bump sass
dependabot[bot] Nov 27, 2024
efe87c0
build(deps): bump the optional group across 1 directory with 4 updates
dependabot[bot] Nov 28, 2024
6138929
build(deps): update django-allauth[openid,socialaccount] requirement
dependabot[bot] Dec 1, 2024
9190431
build(deps): update wheel requirement from <0.45,>=0.42 to >=0.42,<0.46
dependabot[bot] Dec 1, 2024
7f62f3e
build(deps-dev): bump the webpack group with 2 updates
dependabot[bot] Jan 1, 2025
9f80ef2
build(deps-dev): bump the babel group with 2 updates
dependabot[bot] Jan 1, 2025
2232a91
build(deps-dev): bump sass
dependabot[bot] Jan 7, 2025
0be48b1
feat: drop support for python 3.8
afuetterer Dec 8, 2024
5b5db48
style(py39): apply ruff fixes for typing
MyPyDavid Dec 18, 2024
7def322
build(deps): update twine requirement from <6.0,>=5.1.1 to >=5.1.1,<7.0
dependabot[bot] Feb 1, 2025
e413b90
build(deps): update importlib-metadata requirement from <8.6.0 to <8.7.0
dependabot[bot] Feb 1, 2025
b3aed81
build(deps): bump the optional group with 2 updates
dependabot[bot] Feb 1, 2025
4337dae
build(deps): bump coverallsapp/github-action in the github-actions group
dependabot[bot] Feb 1, 2025
9a77850
build(webpack): ignore sass warnings and asset size limits
MyPyDavid Feb 5, 2025
75e813e
build(pyproject): bump min version of django-mptt to 0.16.0
MyPyDavid Feb 5, 2025
65608be
build(pyproject): remove importlib_metadata from dependencies
MyPyDavid Feb 21, 2025
24e970c
Merge pull request #1154 from rdmorganiser/dependency-updates
MyPyDavid Feb 24, 2025
3f739ad
build(pre-commit): pre-commit autoupdate by ci
pre-commit-ci[bot] Feb 3, 2025
4a0caec
style(core, commands): update code style
MyPyDavid Feb 6, 2025
a1881b1
style(core, utils): update code style
MyPyDavid Feb 6, 2025
23e8a27
style(tests): remove deprecated PT004 rule
MyPyDavid Feb 6, 2025
12567e7
style(core,commands): revert to single quotes
MyPyDavid Feb 24, 2025
2840165
style(core,commands): revert to single quotes and remove unused method
MyPyDavid Feb 24, 2025
24fd9ef
build(pre-commit): autoupdate config
MyPyDavid Feb 24, 2025
fdb479c
style(ruff): remove noqa for PT004
MyPyDavid Feb 24, 2025
3430dd5
Fix translation
jochenklar Feb 24, 2025
41b8538
Merge pull request #1251 from rdmorganiser/2.3.0-translations
jochenklar Feb 24, 2025
5f9d7e3
Update utils.py
nievax Oct 21, 2024
7b32f9e
set data type for MARKDOWN_TEMPLATES
Oct 23, 2024
f7285aa
Slightly refactor inject_textblocks
jochenklar Feb 20, 2025
f526b93
Add useLayoutEffect to execute containing scripts to HTML component
jochenklar Feb 20, 2025
279e92b
Add TEMPLATES_EXECUTE_SCRIPT_TAGS to settings to control JS execution…
jochenklar Feb 25, 2025
04bac9e
Add CHANGELOG for RDMO 2.3.0
jochenklar Feb 25, 2025
5421afe
docs: update changelog for 2.3.0
MyPyDavid Feb 25, 2025
d33d434
Merge pull request #1211 from rdmorganiser/pre-commit-ci-update-config
MyPyDavid Feb 25, 2025
07b339c
Update Changelog formatting
jochenklar Feb 25, 2025
52a7322
Merge pull request #1252 from rdmorganiser/2.3.0-changelog
jochenklar Feb 25, 2025
201abfe
Update Html component
jochenklar Feb 25, 2025
c8e94c7
Fix project_interview.html template
jochenklar Feb 25, 2025
a823b23
Fix meta.js
jochenklar Feb 25, 2025
b050b1c
Merge pull request #1247 from rdmorganiser/markdown_templates
jochenklar Feb 25, 2025
1881798
Update CHANGELOG
jochenklar Feb 25, 2025
3e275bb
Update CHANGELOG
jochenklar Feb 25, 2025
c7cec5e
Bump version to 2.3.0rc1
jochenklar Feb 25, 2025
cfc268a
Update translations
triole Feb 27, 2025
d11b431
Add CopyPlugin to webpack config to fix fonts
jochenklar Feb 28, 2025
afee934
Fix clean management script
jochenklar Feb 28, 2025
37f4b17
style: fix end of file
MyPyDavid Mar 3, 2025
77b6c51
Show default and optional for questions in the management (#982)
jochenklar Mar 4, 2025
d68d573
Add default text to options
CalamityC Jul 11, 2024
b91cbe7
Fix migration
jochenklar Mar 6, 2025
a41f3cf
Add default_text to option import
jochenklar Mar 6, 2025
995794b
Add default_text to option html/pandoc export
jochenklar Mar 6, 2025
4a0fe62
Add option default_text to interview
jochenklar Mar 6, 2025
4b5c5b5
Add translations
jochenklar Mar 6, 2025
0db16eb
Merge pull request #1261 from rdmorganiser/default_optional
jochenklar Mar 12, 2025
2746f6e
Merge pull request #1266 from rdmorganiser/option_default
jochenklar Mar 17, 2025
38aea0d
Fix Questions checkbox color in management (#1227)
jochenklar Mar 4, 2025
be9d675
Fix component name in NestedSection
jochenklar Mar 4, 2025
6538a73
Fix button style in projects app
jochenklar Mar 4, 2025
03897db
Fix get_set_value (#1229)
jochenklar Mar 4, 2025
20b13c6
Fix migration for widget_type
jochenklar Mar 6, 2025
46731dd
Replace config.currentSite.id with siteId from html meta in management
jochenklar Mar 6, 2025
c838023
Clean up base.html
jochenklar Mar 6, 2025
e03163d
Fix get_set_value tag
jochenklar Mar 6, 2025
9c78ee3
Fix QuestionText component
jochenklar Mar 6, 2025
021b55e
Style interview-management panels
jochenklar Mar 17, 2025
9a11474
Toggle management panels in interview sidebar
jochenklar Mar 17, 2025
91cf69a
Fix .btn-link
jochenklar Mar 17, 2025
ff69a6c
Fix page head buttons
jochenklar Mar 17, 2025
ff219dc
Fix reuse button
jochenklar Mar 17, 2025
a1c0c72
Fix Search component
jochenklar Mar 17, 2025
89a19b9
Update CHANGELOG
jochenklar Mar 17, 2025
60f5306
Improve Search component
jochenklar Mar 17, 2025
8452f7e
Fix widget button order and add rease button to select widget
jochenklar Mar 17, 2025
2af0603
tests(e2e): add a fixture to fail on js errors #1253
MyPyDavid Mar 10, 2025
eba58a7
projects(tests): add e2e tests for projects and project detail
MyPyDavid Mar 11, 2025
536dd55
management(tests): make e2e conftest reusable
MyPyDavid Mar 11, 2025
a703926
projects(tests): ignore ruff and fix tests
MyPyDavid Mar 13, 2025
e73ff50
tests(e2e): make page fixture wait for idle
MyPyDavid Mar 13, 2025
48a5a0b
tests(e2e): refactor fixtures into core
MyPyDavid Mar 13, 2025
8dc3aec
tests(e2e): update screenshots and timeout
MyPyDavid Mar 17, 2025
c3f318a
Improve warnings in management (#1070)
jochenklar Mar 17, 2025
c56d41a
Fix select dropdown translation
jochenklar Mar 17, 2025
92ab4ea
ci(test-e2e): update screenshots path
MyPyDavid Mar 17, 2025
e9b6f3e
projects(tests): add test for value search when collection
MyPyDavid Mar 10, 2025
d95661c
projects(viewsets): fix search query for all dbs
MyPyDavid Mar 17, 2025
6769fac
projects(imports): fix style py312 warning for xml root check
MyPyDavid Mar 10, 2025
cd93bfc
Merge pull request #1268 from rdmorganiser/fix-value-search-query
MyPyDavid Mar 18, 2025
3a77901
Merge pull request #1274 from rdmorganiser/2.3.0-fixes-fix-style-warn…
MyPyDavid Mar 18, 2025
78ea150
Merge pull request #1271 from rdmorganiser/2.3.0-fixes-add-e2e-tests-…
MyPyDavid Mar 18, 2025
ede51cf
Merge branch '2.3.0' into 2.3.0-fixes
MyPyDavid Mar 18, 2025
a362c95
Fix a few accessibility issues
jochenklar Mar 7, 2025
7091564
Merge pull request #1275 from rdmorganiser/2.3.0-fixes-accessibility
jochenklar Mar 18, 2025
840dba6
Merge pull request #1273 from rdmorganiser/2.3.0-warning
jochenklar Mar 18, 2025
f5b2462
tests(e2e): re-use playwright timeout
MyPyDavid Mar 18, 2025
c72beed
projects(tests,e2e): add timeout
MyPyDavid Mar 18, 2025
c563c66
projects(tests,e2e): update search locator
MyPyDavid Mar 18, 2025
62bab53
Merge pull request #1276 from rdmorganiser/2.3.0-fixes-fix-e2e-tests
MyPyDavid Mar 18, 2025
fed497f
Improve QuestionManagement and add PageManagement and QuestionSetMana…
jochenklar Mar 18, 2025
c0fb07c
Fix managementHelp
jochenklar Mar 18, 2025
be4840f
Merge pull request #1262 from rdmorganiser/2.3.0-fixes
jochenklar Mar 18, 2025
66f73ff
ci(dependabot): do not ignore django-mptt
MyPyDavid Feb 26, 2025
60ecf8b
build(deps-dev): bump sass in the dev-dependencies group
dependabot[bot] Mar 1, 2025
eb5ffc6
build(deps-dev): bump the webpack group with 2 updates
dependabot[bot] Mar 1, 2025
76b5eaa
build(deps-dev): bump babel-loader in the babel group
dependabot[bot] Mar 3, 2025
3b184a8
build(pre-commit): pre-commit autoupdate by ci
pre-commit-ci[bot] Mar 3, 2025
39eeb61
build(deps): bump @babel/runtime-corejs2 from 7.20.13 to 7.26.10
dependabot[bot] Mar 11, 2025
1432647
Merge pull request #1254 from rdmorganiser/dependency-updates
MyPyDavid Mar 18, 2025
48771fc
Update translations
jochenklar Mar 20, 2025
8936de4
Improve messages management script
jochenklar Mar 20, 2025
e10c70f
Improve poedit management script
jochenklar Mar 20, 2025
1bc7515
Update translations
triole Mar 20, 2025
4b1ecd8
Update version
triole Mar 20, 2025
d9243ae
Fix legacy import for autocomplete and (partially) revert xml test file
jochenklar Mar 21, 2025
4172f79
Use get_full_name for projects table
jochenklar Mar 24, 2025
11310bb
Fix catalog order in project forms
jochenklar Mar 24, 2025
d4b68cb
Fix add tab button for guests
jochenklar Mar 24, 2025
42a0fb2
Close temporary files
jochenklar Mar 25, 2025
0eb994a
projects(continue): fix when no pages #1280
MyPyDavid Mar 26, 2025
c6099e8
Add create_tmp_file function
jochenklar Mar 27, 2025
32b44a0
Merge pull request #1281 from rdmorganiser/2.3.0-fix-import
jochenklar Mar 27, 2025
7b27f71
Fix z-index for react-select in interview
jochenklar Mar 27, 2025
dfa6c5f
Use done=True to indicate that the end of the catalog is reached
jochenklar Mar 27, 2025
37c4e61
Add NotFoundError error class and redirect to 'done' if end of catalo…
jochenklar Mar 27, 2025
9ac8023
projects(tests): fix status in test continue without pages
MyPyDavid Mar 27, 2025
f8ddd11
Merge pull request #1285 from rdmorganiser/fix_pandoc
jochenklar Mar 27, 2025
de786d9
Merge pull request #1286 from rdmorganiser/1280-edge-case-potential-i…
jochenklar Mar 27, 2025
e8030fe
Merge pull request #1283 from rdmorganiser/2.3.0-more-fixes
jochenklar Mar 28, 2025
dfef222
temp add OpenAPIRenderer
afuetterer Jul 11, 2024
24df76b
feat: replace django-rest-swagger with drf-spectacular
afuetterer Jul 11, 2024
e20d75b
chore: remove swagger.scss
afuetterer Jul 19, 2024
2382248
Move drf-spectacular to optional dependencies
jochenklar Mar 21, 2025
4e4bf3b
Add api view and reorganize core v1 urls
jochenklar Mar 21, 2025
d5c5250
Fix export action regexes
jochenklar Mar 21, 2025
6bf6f78
Add type hints for model properties and serializer method fields
jochenklar Mar 21, 2025
482d2a7
Rename serializers or add ref_name
jochenklar Mar 21, 2025
40b1868
Add schema extensions and update settings
jochenklar Mar 21, 2025
10b4cc0
Fix/disable tests for openapi
jochenklar Mar 25, 2025
23f6b2f
core(schema): solve warnings for MembershipViewSet with introspection
MyPyDavid Mar 26, 2025
7eee76a
core(schema): update patch get_queryset methods dynamically in schema
MyPyDavid Mar 26, 2025
00e9825
projects(permissions): remove swagger related exceptions
MyPyDavid Mar 26, 2025
dedba3b
projects(permissions): revert has object permission
MyPyDavid Mar 27, 2025
4440f25
core(schema): simplify patch get_queryset
MyPyDavid Mar 27, 2025
0baebd9
style: update simple type hints
MyPyDavid Mar 27, 2025
9ecb250
Merge pull request #1248 from rdmorganiser/drf-spectacular
jochenklar Mar 28, 2025
63ae96f
Support Python 3.13
jochenklar Mar 28, 2025
399d0a0
Merge pull request #1291 from rdmorganiser/python-3.13
jochenklar Mar 28, 2025
5d0e538
Remove outdated warnings
jochenklar Mar 28, 2025
66676c6
Filter some warnings again
jochenklar Mar 28, 2025
ec19202
Refactor ProjectUpdateVisibilityForm
jochenklar Mar 27, 2025
d6396b9
Update tests
jochenklar Mar 27, 2025
b2261eb
Refactor visibility action in ProjectViewSet
jochenklar Mar 27, 2025
abe3353
Add tests
jochenklar Mar 28, 2025
2516c2c
Use model permissions for visibility
jochenklar Mar 28, 2025
918ee87
Fix accounts tests for api user
jochenklar Mar 29, 2025
5032247
Fix fixture
jochenklar Apr 1, 2025
37e2003
build(deps): update setuptools requirement from <76,>=73 to >=73,<79
dependabot[bot] Apr 3, 2025
e07972b
build(deps-dev): bump @babel/cli in the babel group
dependabot[bot] Apr 3, 2025
9671144
build(deps-dev): bump sass in the dev-dependencies group
dependabot[bot] Apr 3, 2025
b30a14d
build(deps): bump the django group with 2 updates
dependabot[bot] Apr 3, 2025
b82c7e8
testing(fixtures): add all sites to Manni manager roles
MyPyDavid Apr 3, 2025
a34f23f
Merge pull request #1293 from rdmorganiser/dependabot/pip/dependency-…
MyPyDavid Apr 3, 2025
0168eeb
Revert "testing(fixtures): add all sites to Manni manager roles"
MyPyDavid Apr 3, 2025
f0082e9
test(fixtures): add 2 and 3 to Sandra Site manager roles
MyPyDavid Apr 3, 2025
763b5b9
Merge pull request #1294 from rdmorganiser/dependabot/npm_and_yarn/de…
MyPyDavid Apr 3, 2025
a49eccd
Merge pull request #1295 from rdmorganiser/dependabot/npm_and_yarn/de…
MyPyDavid Apr 3, 2025
742d9da
Merge pull request #1259 from rdmorganiser/dependabot/pip/dependency-…
MyPyDavid Apr 3, 2025
dab0a04
Refactor ProjectQuerySet to account for visibility for site managers
jochenklar Apr 3, 2025
7f61c81
Fix test
jochenklar Apr 3, 2025
6cea1e0
Rename internal -> visible in tests
jochenklar Apr 3, 2025
e01d0e4
Merge pull request #1288 from rdmorganiser/2.3.0-fix-visibility
jochenklar Apr 4, 2025
13f60d1
Merge pull request #1296 from rdmorganiser/dependency-updates
MyPyDavid Apr 4, 2025
77d32d5
Remove django-rest-swagger.yaml
jochenklar Apr 4, 2025
72dac57
Add login pytest feature
jochenklar Apr 5, 2025
8643590
Add openapi dependencies to the test environment and add tests again
jochenklar Apr 5, 2025
ec6bcc4
User drf_spectacular_sidecar instead of CDN
jochenklar Apr 5, 2025
3f646ea
Add openapi dependencies to dev dependencies
jochenklar Apr 5, 2025
f7448df
Merge pull request #1298 from rdmorganiser/openapi_fixes
jochenklar Apr 7, 2025
7673d24
style(openapi): add type hint
MyPyDavid Apr 7, 2025
045d221
Merge pull request #1300 from rdmorganiser/openapi-minor-get-full-nam…
MyPyDavid Apr 7, 2025
8eab024
Remove number conversion when retrieving from local storage
jochenklar Apr 7, 2025
51d7b08
Remove boolean conversion from LS as well
jochenklar Apr 7, 2025
57d2adb
tests(e2e): add multisite fixture and add teardown for db
MyPyDavid Apr 7, 2025
bcf2ae0
tests(e2e): add test for filters and refactor import tests
MyPyDavid Apr 7, 2025
4b5cd87
tests(e2e): refactor projects conftest
MyPyDavid Apr 7, 2025
7acefe1
build(pyproject): remove django-rest-swagger #698
MyPyDavid Apr 8, 2025
8234eaa
Merge pull request #1301 from rdmorganiser/2.3.0-fix-local-storage
jochenklar Apr 8, 2025
dd648b8
Merge pull request #1303 from rdmorganiser/dependency-updates
MyPyDavid Apr 8, 2025
8a91e56
Fix copySet action in interview by properly resolving conditions
jochenklar Apr 8, 2025
8e2806d
tests: refactor delete_all objects into a fixture
MyPyDavid Apr 8, 2025
33ede42
tests(e2e): refactor fixtures and clean up
MyPyDavid Apr 8, 2025
5a726fe
tests: rename fixture to delete_all_objects
MyPyDavid Apr 8, 2025
b2c9695
tests(e2e): rename fixture and add page_multisite
MyPyDavid Apr 8, 2025
5e3b827
Merge pull request #1304 from rdmorganiser/2.3.0-fix-copy-set
jochenklar Apr 8, 2025
3a86a0b
Merge pull request #1302 from rdmorganiser/2.3.0-fix-local-storage+e2…
MyPyDavid Apr 8, 2025
34244d3
chore: group rdmo extras in dev
afuetterer Apr 9, 2025
c54c60b
Merge pull request #1306 from afuetterer/extras
MyPyDavid Apr 10, 2025
765011b
Update translations
jochenklar Apr 10, 2025
904e370
Bump version to 2.3.0
jochenklar Apr 10, 2025
e39c9b3
locale(de): fix typos
MyPyDavid Apr 10, 2025
e5f33b2
Merge pull request #1307 from rdmorganiser/2.3.0-fix-typos
MyPyDavid Apr 10, 2025
3c5546a
Update Changelog.md
jochenklar Apr 10, 2025
418c20c
Update translations
triole Apr 11, 2025
55191d6
Update CHANGELOG.md
jochenklar Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ updates:
- python
- type:maintenance
ignore:
- dependency-name: django-mptt # pinned, 0.15 requires Python >= 3.9
- dependency-name: django
update-types: [ "version-update:semver-major"] # ignore major for django
groups:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
with:
node-version: 18
cache: npm
- run: npm ci && npm run build:prod
- run: npm ci && npm run build:dist
# build the wheel
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'
cache: pip
- run: |
python -m pip install --upgrade pip build[uv] twine
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.8', '3.12']
python-version: ['3.9', '3.13']
db-backend: [mysql, postgres]
steps:
- uses: actions/checkout@v4
Expand All @@ -116,7 +116,7 @@ jobs:
path: dist
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get install --yes pandoc texlive-xetex librsvg2-bin
sudo apt-get update && sudo apt-get install --yes pandoc texlive-latex-base texlive-latex-extra texlive-luatex librsvg2-bin
pandoc --version
python -m pip install --upgrade pip
python -m pip --version
Expand All @@ -138,14 +138,14 @@ jobs:
- name: Run package status tests first
run: |
pytest rdmo/core/tests/test_package_status.py --nomigrations --verbose
if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres'
if: matrix.python-version == '3.13' && matrix.db-backend == 'postgres'
- name: Run Tests
run: |
pytest -p randomly -p no:cacheprovider --cov --reuse-db --numprocesses=auto --dist=loadscope
env:
GITHUB_DB_BACKEND: ${{ matrix.db-backend }}
- name: Upload coverage data to coveralls.io
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
flag-name: '${{ matrix.db-backend }}: ${{ matrix.python-version }}'
parallel: true
Expand All @@ -156,7 +156,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ['3.12']
python-version: ['3.13']
db-backend: [postgres]
steps:
- uses: actions/checkout@v4
Expand All @@ -172,7 +172,7 @@ jobs:
path: dist
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt install --yes pandoc texlive-xetex librsvg2-bin
sudo apt-get update && sudo apt install --yes pandoc texlive-latex-base texlive-latex-extra texlive-luatex librsvg2-bin
python -m pip install --upgrade pip
- name: Install rdmo[postgres] from wheel and start postgresql
run: |
Expand All @@ -197,7 +197,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: screenshots
path: screenshots/*.png
path: screenshots/**/*.png

coveralls:
name: Indicate completion to coveralls
Expand All @@ -206,7 +206,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Run Coveralls finish
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
parallel-finished: true

Expand All @@ -221,7 +221,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: pip
- run: python -Im pip install --editable .[dev]
- run: python -Ic 'import rdmo; print(rdmo.__version__)'
Expand All @@ -234,7 +234,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: pip
- name: Download wheel
uses: actions/download-artifact@v4
Expand Down
32 changes: 20 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
__pycache__
*.pyc
*~
*.swp
.DS_Store

testing/config/settings/local.py
testing/log/
.pytest*/
Expand All @@ -6,19 +12,12 @@ static_root
media_root
components_root

docs/_build*

__pycache__
*.pyc
*~
*.swp
.DS_Store
.ruff_cache

env
env2
env3

Makefile

.coverage
.coverage.*
htmlcov
Expand All @@ -32,12 +31,21 @@ dist
.imdone/

.pytest_cache
.ruff_cache
.on-save.json

rdmo/management/static

rdmo/projects/static/projects/js/projects.js
rdmo/projects/static/projects/fonts
rdmo/projects/static/projects/css/projects.css
rdmo/core/static/core/js/base.js
rdmo/core/static/core/js/base.js.LICENSE.txt
rdmo/core/static/core/css/base.css
rdmo/core/static/core/fonts

rdmo/projects/static/projects/css/interview.css
rdmo/projects/static/projects/css/projects.css
rdmo/projects/static/projects/fonts/
rdmo/projects/static/projects/js/interview.js
rdmo/projects/static/projects/js/interview.js.LICENSE.txt
rdmo/projects/static/projects/js/projects.js
rdmo/projects/static/projects/js/projects.js.LICENSE.txt
screenshots
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ repos:
exclude: \.dot$
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.9.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.12.0
rev: v9.21.0
hooks:
- id: eslint
args: [--fix, --color]
Expand All @@ -36,7 +36,7 @@ repos:
- eslint-plugin-react@7.37.0
- react@18.3.1
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
rev: v1.30.0
hooks:
- id: typos
exclude: |
Expand Down
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# Changelog

## [RDMO 2.3.0](https://github.com/rdmorganiser/rdmo/compare/2.2.2...2.3.0) (Apr 11, 2025)

* Add new interview interface based on React and Redux (#518)
* Text and Textarea widgets are now saved automatically
* Select dropdown widgets are now always searchable
* Show the unit of a question next to the answer field (#499)
* Tabs (e.g. Datasets) and single values can be reused in different projects.
* An "Apply to all" button can be used to paste information into all the tabs.
* Fix several issues regarding the interview (#501, #224, #1191)
* Display attributes in interview to admins, editors, reviewers (#224)
* Improve accessibility (#514, #1199)
* Remove custom widgets feature (remove `QUESTIONS_WIDGETS` from settings)
* Remove `PROJECT_QUESTIONS_AUTOSAVE` and `PROJECT_QUESTIONS_CYCLE_SETS` from settings.
* Add the possibility to copy a project including all its values.
* Add the option to make a project "visible" to all users (#152).
* Users interact with visible projects as if they would have the Guest role.
* With the new review feature, this can be used for templates for projects and datasets.
* Sites and groups can be used to restrict this behaviour.
* This feature is enabled by default via the `PROJECT_VISIBILITY` setting
* Add a contact form modal to each question to contact support (#502)
* `PROJECT_CONTACT = True` and `PROJECT_CONTACT_RECIPIENTS = [list of email strings]`
enable this feature
* Add signal handlers to automatically sync of project views and tasks (#345, #966, #1198)
* When `PROJECT_VIEWS_SYNC = True` or `PROJECT_TASKS_SYNC = True` is set, the views or
tasks for a project are automatically synchronized, depending on the
catalogs configured for them.
* Add snapshot export plugins (which work like project export plugins)
* Add `PROJECT_SNAPSHOT_EXPORTS` to settings to register snapshot export plugins
* Refactor the `accept` field for project import plugins
* The field is now a dict of the form `{'content_type': ['suffix']}`
* The old form should still work
* Add `rdmo.accounts.middleware.TermsAndConditionsRedirectMiddleware'` (#141, #161)
* The (optional) middleware checks if a user has already confirmed the Terms of use.
* If not, users need to confirm to proceed.
* Optionally, when a confirmation renewal is required, the `ACCOUNT_TERMS_OF_USE_DATE = '2025-02-25'`
can be set to invalidate previous confirmations.
* Add `rdmo-admin` script
* `rdmo-admin npm run [build:prod|build|watch]` can be used to build the front end
* `rdmo-admin build` can be used to build the python package
* `rdmo-admin messages [make|compile]` can be used create and compile the translations
* `rdmo-admin clean` can be used remove most files which are not version controlled
* Add the support for custom markdown templates injected into help texts
* The code `{{ code }}` is replaced by a template specified in the `MARKDOWN_TEMPLATES` setting
* The `TEMPLATES_EXECUTE_SCRIPT_TAGS' setting controls whether Java script code can be executed.
* Add minimum required version to RDMO XML exports (#1205).
* Use the `uri` instead of `path` for attributes in the Django admin interface.
* Fix a set of bugs where the maximum length of a field was not correctly validated by the API.
* Use `lualatex` when using `Pandoc >= 3.0`.
* Remove the `download_vendor_files` step of the setup
* Remove `VENDOR` and `VENDOR_CDN` from settings.
* Remove `django-rest-swagger` dependency and add `drf-spectacular` as an optional dependency.
* Can be installed with `pip install rdmo[openapi]`.
* Update Python and JavaScript dependencies.
* Drop support for Python 3.8.

## [RDMO 2.2.2](https://github.com/rdmorganiser/rdmo/compare/2.2.1...2.2.2) (Oct 24, 2024)

* Fix projects interface when using RDMO with a path (#1152)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you decide to work on the issue yourself, please wait until you received some

## How to set up your development environment

You need [Python 3.8+](https://www.python.org/downloads).
You need [Python 3.9+](https://www.python.org/downloads).

Install the package with development requirements:

Expand Down
27 changes: 0 additions & 27 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Django REST Swagger <https://github.com/marcgibbons/django-rest-swagger>
-------------------------------------------------------

Copyright (c) 2013-2016, Marc Gibbons
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Twitter bootstrap <http://twitter.github.io/bootstrap/>
-------------------------------------------------------

Expand Down
23 changes: 22 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pytest

from django.conf import settings
from django.contrib.auth.models import User
from django.core.management import call_command

from rdmo.accounts.utils import set_group_permissions
Expand Down Expand Up @@ -34,7 +35,7 @@ def fixtures():


@pytest.fixture(scope='session')
def django_db_setup(django_db_setup, django_db_blocker, fixtures): # noqa: PT004 - pytest-django requires this name "django_db_setup"
def django_db_setup(django_db_setup, django_db_blocker, fixtures):
"""Populate database with test data from fixtures directories."""
with django_db_blocker.unblock():
call_command('loaddata', *fixtures)
Expand All @@ -54,3 +55,23 @@ def files(settings, tmp_path):
def json_data():
json_file = Path(settings.BASE_DIR) / 'import' / 'catalogs.json'
return {'elements': json.loads(json_file.read_text())}


@pytest.fixture
def login(client):
def force_login_user(username):
try:
user = User.objects.get(username=username)
client.force_login(user)
except User.DoesNotExist:
pass

return force_login_user


@pytest.fixture
def delete_all_objects():
def delete_all(*models):
for model in models:
model.objects.all().delete()
return delete_all
Loading