Commit Graph

1272 Commits

Author SHA1 Message Date
Ramon Wenger 66dc8708b6 Use Autocomplete fields instead of SearchFields
The `SearchField(partial_match=True)` does not what we intended it to do
2023-12-11 16:44:34 +01:00
Ramon Wenger c47b263302 Adapt to new storage syntax in settings
Removed the old, deprecated syntax and replaced it with the new one
2023-12-11 16:44:34 +01:00
Ramon Wenger b745afd91e Adapt to new syntax for execute context 2023-12-11 16:44:34 +01:00
Ramon Wenger 6a2658051d Disable `stream_field_magic` methods, as the API for those has changed
Unit tests work without them, but the `dummy_data` command possibly no
longer.
2023-12-11 16:44:34 +01:00
Ramon Wenger a2e85c337d Update custom GraphQLView to use new GraphQL 3.0 syntax 2023-12-11 16:44:34 +01:00
Ramon Wenger 6f563806f7 Update wagtail, django and wagtail_factories
Also make some changes according to the migration guides of those
packages.
2023-12-11 16:44:34 +01:00
Ramon Wenger 5a3e2501c6 Remove obsolete settings 2023-12-11 11:07:05 +01:00
Ramon Wenger 56364dee03 Move script 2023-12-06 09:29:29 +01:00
Ramon Wenger 848f2a36a0 Update document export helper script 2023-12-06 09:23:56 +01:00
Ramon Wenger 97f2e50faf Add sentry tracing and replay plugins 2023-11-23 14:06:56 +01:00
Ramon Wenger 2f45a7b5a8 Update export helper 2023-11-20 14:41:32 +01:00
Ramon Wenger cfbf688946 Add script to export documents 2023-11-09 08:32:27 +01:00
Ramon Wenger dea78ea189 Add some changes for resolving an obscure bug with user settings 2023-10-10 14:53:53 +02:00
Ramon Wenger 74991704c2 Add django management command to rename assignments and surveys 2023-10-05 18:13:36 +02:00
Ramon Wenger 51647c6092 Update settings for prod environment 2023-10-02 08:22:03 +02:00
Ramon Wenger 0dc6c2b15e Add some error handling to csv script 2023-09-28 15:35:41 +02:00
Ramon Wenger f183a51317 Add bulk translate django command, also some data files 2023-09-27 22:54:19 +02:00
Lorenz Padberg b8df28a993 Add documentation 2023-09-14 11:56:17 +02:00
Lorenz Padberg 10417bba13 Add handy create backup script 2023-09-12 16:19:21 +02:00
Lorenz Padberg 784f6d8973 Reafctor for instrument and module models 2023-09-12 16:17:37 +02:00
Lorenz Padberg a0086a8010 Merge branch 'hotfix/MS-792-MeineAkivitäten' into develop
# Conflicts:
#	client/src/components/ui/InfoMessage.vue
#	client/src/styles/_variables.scss
2023-09-08 11:26:24 +02:00
Lorenz Padberg b62211a5b4 Fix content blocks, notes, and chapters. 2023-09-06 16:31:24 +02:00
Lorenz Padberg 0484eff404 Add lorenz env 2023-09-05 11:36:39 +02:00
Ramon Wenger 6fff84127c Add a default `last_topic` to the PrivateUserNode 2023-08-31 17:20:39 +02:00
Ramon Wenger 8e226e1187 Fix incorrect module level mutation 2023-08-31 14:59:43 +02:00
Lorenz Padberg 078a57b60a Update Categorize modules functions with ordering 2023-08-31 11:16:25 +02:00
Lorenz Padberg d91d80b6da Add Explicit Ordering to ModuleLevels and Categories 2023-08-31 10:49:42 +02:00
Ramon Wenger 1ec50dffe3 Update documentation for db import from one environment to another 2023-08-31 10:35:04 +02:00
Ramon Wenger 1c99ab9f42 Add feature flag for languages and i18n
Resolves MS-759 #complete
2023-08-30 22:03:32 +02:00
Ramon Wenger f660d45349 Add missing return in helper method 2023-08-30 20:56:15 +02:00
Ramon Wenger 569f8a3823 Use correct exception 2023-08-30 18:15:26 +02:00
Ramon Wenger 7707104da4 Add translate check for parent of topic 2023-08-30 17:41:59 +02:00
Ramon Wenger 1c4c1a8494 Add method to nuke all user related content
Specifically, all users that are not a superuser
2023-08-30 17:19:45 +02:00
Ramon Wenger fc59bf0b6d Merged in feature/migrate-translations (pull request #135)
Feature/migrate translations
2023-08-30 14:39:22 +00:00
Ramon Wenger 5a71a9cec8 Add clearer messages to command 2023-08-30 16:38:15 +02:00
Lorenz Padberg 020c4846c4 Fix comments from PR 2023-08-30 14:24:12 +02:00
Ramon Wenger 8dc080a9fc Clean up and refactor 2023-08-30 11:12:09 +02:00
Lorenz Padberg 2246e9ca3c Add language filter to instruments 2023-08-30 09:28:58 +02:00
Ramon Wenger 4011c016dc Convert existing method to django command
Also rename it
2023-08-29 15:11:21 +02:00
Ramon Wenger 2e5fa555d6 Add custom module form with custom clean method
Relates to MS-758
2023-08-28 16:51:45 +02:00
Ramon Wenger dbec89ca8d Add method to migrate existing pages to another locale
Relates to MS-749 #complete

Add docstring for new migrate method
2023-08-28 16:51:40 +02:00
Ramon Wenger 2868b3e196 Activate i18n for wagtail to translate pages to french and english 2023-08-28 16:16:22 +02:00
Ramon Wenger f955afed66 Update topic queries to only return the german version 2023-08-24 19:49:56 +02:00
Ramon Wenger c2b8bc1762 Integrate language into module filter 2023-08-24 19:49:09 +02:00
Ramon Wenger 81b2b41979 Add frontend language setting to local cache
Relates to MS-758
2023-08-24 12:29:54 +02:00
Lorenz Padberg 0ae86202c7 Merged in feature/MS743-ModuleCategorization (pull request #131)
Feature/MS743 ModuleCategorization

Approved-by: Ramon Wenger
2023-08-24 08:40:04 +00:00
Ramon Wenger f44a9f37d8 Clean up code 2023-08-24 10:38:20 +02:00
Lorenz Padberg 678e064cfe Fix test 2023-08-23 16:45:00 +02:00
Lorenz Padberg bb54aeb145 Refactoring according to Puillrequest comments 2023-08-23 14:44:51 +02:00
Lorenz Padberg 139bb545d8 Skip failing test 2023-08-22 15:20:34 +02:00
Lorenz Padberg 990b92139f Add database migrations 2023-08-22 15:05:10 +02:00
Lorenz Padberg 5cd1876f31 Add filter attribute type "Alle Lehrjahre" 2023-08-21 16:06:29 +02:00
Lorenz Padberg 44f20c102b Add filter_attribute_type (all / exact) 2023-08-21 15:46:07 +02:00
Lorenz Padberg 807c038a34 Rename ModuleCategoryType to ModuleCategory 2023-08-21 15:17:52 +02:00
Lorenz Padberg 0b1954c570 Rename ModuleCategory -> ModuleLevel 2023-08-21 14:22:28 +02:00
Ramon Wenger f71f7eff0f Add logging to redeem process 2023-08-17 16:15:44 +02:00
Ramon Wenger 67ebcbcaa0 Add some light logging to login process to see when licenses are created 2023-08-17 16:07:55 +02:00
Ramon Wenger d37197bd3d Add unit test 2023-08-16 15:52:19 +02:00
Ramon Wenger 1a3e7c9169 Move filter logic inside query 2023-08-16 15:30:21 +02:00
Ramon Wenger f1f444b94d Add license validity check to login handler 2023-08-16 14:49:51 +02:00
Lorenz Padberg 6d312da0ae Add Category Pills to Module 2023-08-15 16:36:47 +02:00
Lorenz Padberg 23bf51db52 Add update lastModuleCategory mutation 2023-08-15 16:36:47 +02:00
Lorenz Padberg f60f0d68da Filter Modules by Id 2023-08-15 16:36:47 +02:00
Lorenz Padberg aa095ac7ea Create ModuleFilters dynamically 2023-08-15 16:36:47 +02:00
Lorenz Padberg b5705cc991 Remove Tree structure from moduleCategory and CategoryType 2023-08-15 16:36:47 +02:00
Lorenz Padberg e99c703f55 Add Category and CategoryType to module 2023-08-15 16:36:47 +02:00
Lorenz Padberg f88a85a54f Add module category to cms 2023-08-15 16:36:47 +02:00
Lorenz Padberg 631290722b Add first version of module filter component 2023-08-15 16:36:47 +02:00
Ramon Wenger c3db7dd25f Change test license duration, add "test" to description 2023-08-14 16:10:30 +02:00
Ramon Wenger bb6425c27f Update instrument export command to include more html tags 2023-07-19 12:10:51 +02:00
Lorenz Padberg 2c8d7c4cc9 Merge branch 'feature/MS-737-DragAndDropCMS' into feature/MS-734-OnlyOwnerTeachersSeePortfolio 2023-07-18 11:26:47 +02:00
Lorenz Padberg 13239ef27e Apply inputs from pullrequest 2023-07-17 14:58:40 +02:00
Lorenz Padberg 2e826f81d5 Monkey Patch list ordering in wagtail 2023-07-17 13:09:32 +02:00
Lorenz Padberg 1de888b5cd Add Idea for the wagtail fix 2023-07-17 10:41:12 +02:00
Lorenz Padberg 6d665193da Add tests 2023-07-12 17:25:31 +02:00
Lorenz Padberg 76fcb8b468 Make portfolia viewable by all teachers of class / student 2023-07-12 17:25:31 +02:00
Lorenz Padberg d856cd9a92 Make username case insensitive 2023-07-12 17:25:31 +02:00
Lorenz Padberg 7d74003d0d Enable login with email, like the form says 2023-07-12 17:24:51 +02:00
Lorenz Padberg c962005286 Increase Test speed 2023-07-12 17:24:51 +02:00
Ramon Wenger 28a23c4d02 Update test with pytest syntax further 2023-05-31 13:34:21 +02:00
Ramon Wenger 8938ec79cf Rewrite a test to use pytest syntax 2023-05-30 21:41:30 +02:00
Ramon Wenger 9d50db59f6 Add pytest dependency to project, also add config
Change deprecated code for importing translations

Change deprecated syntax in tests

Replace deprecated django url methods

Add plugins and change testing script
2023-05-30 16:30:28 +02:00
Ramon Wenger a400df1668 Add new license ISBNs
Resolves MS-724 #complete
2023-05-25 12:08:28 +02:00
Ramon Wenger 3cd3ce7c8e Fix missing variable error 2023-05-24 20:54:14 +02:00
Ramon Wenger 266356b510 Update types and schema 2023-05-24 20:28:01 +02:00
Ramon Wenger d1664592ce Change "invalid_coupon" error into a result 2023-05-24 00:26:29 +02:00
Ramon Wenger 5e78d08c48 Add some QoL scripts for restoring a database and extending a user
license
2023-05-23 12:31:57 +02:00
Ramon Wenger 6f4d50b033 Update command form exporting instruments 2023-05-23 12:30:58 +02:00
Ramon Wenger fc3feb1eb7 Fix wrong color in MyKV admin
Resolves MS-711 #complete
2023-05-17 15:14:30 +02:00
Ramon Wenger 7640db402d Change colors in editor depending on environment theme
Resolves MS-712 #complete
2023-05-11 16:29:03 +02:00
Ramon Wenger dd66bab53a Change secondary link color depending on theme env variable
Resolves MS-711 #complete
2023-05-08 17:49:35 +02:00
Ramon Wenger 10d5a281eb Change ParentalKey relation back to old ForeignKey to prevent deletion 2023-05-04 14:31:09 +02:00
Ramon Wenger db1357fa24 Disable inline panels to prevent unintended deletions 2023-05-01 16:21:30 +02:00
Ramon Wenger 5ed180ad88 Add linked models to module edit page 2023-04-12 16:02:49 +02:00
Ramon Wenger bbcfb98af6 Add an error message when deleting a page with protected foreign keys
Resolves MS-691 #complete
2023-04-11 16:47:18 +02:00
Ramon Wenger 05a7c3fc6f Add superscript and subscript inline text styles
Resolves MS-631 #complete
2023-04-11 16:45:27 +02:00
Ramon Wenger 8bdf17685a Make sentry errors more useful 2023-03-30 13:51:34 +02:00
Ramon Wenger 9ce6f9d48e Refactor some code
Implement suggestions from pull request
2023-03-16 15:30:56 +01:00
Ramon Wenger cb0e23a5ba Fix typo in migration 2023-03-16 14:24:05 +01:00
Ramon Wenger 43ef014cd2 Add dependency to migration 2023-03-16 13:41:46 +01:00
Ramon Wenger 981758a99c Add error handling to migration 2023-03-16 12:07:11 +01:00
Ramon Wenger ec71c66f3c Add another migration for wagtail permissions 2023-03-16 11:38:22 +01:00
Ramon Wenger eb1eb54eba Make migrations reversible 2023-03-16 10:22:21 +01:00
Ramon Wenger c45f0a65c8 Add more missing apps 2023-03-15 18:01:26 +01:00
Ramon Wenger 95fc642e8e Add missing permission 2023-03-15 17:57:33 +01:00
Ramon Wenger 5daea4b3a1 Remove failing tests
Temporarily remove tests, on suspicion of a bug in the framework
2023-03-15 16:10:53 +01:00
Ramon Wenger 41610cc0b6 Handle edge case when the assignment or survey is not set correctly 2023-03-15 15:32:09 +01:00
Ramon Wenger deecef5e5b Add tests and hooks for "after page move" and "after page create" hooks
Relates to MS-666
2023-03-14 17:17:03 +01:00
Ramon Wenger d18b21e466 Add permissions for user groups
Resolves MS-629 #complete
2023-03-14 17:17:03 +01:00
Ramon Wenger 8c74bba204 Add first draft of manual permissions migration
Relates to MS-629 #start_work

Add black to dependencies
2023-03-14 17:16:55 +01:00
Ramon Wenger cc2b4e9809 Clean up imports, reformat code
Remove unnecessary method
2023-03-14 17:16:40 +01:00
Ramon Wenger ba1de78951 Replace query in test 2023-03-14 17:16:40 +01:00
Ramon Wenger 95ad35aecf Add tests for all page types, also implement them 2023-03-14 17:16:40 +01:00
Ramon Wenger 71dbfeb1f4 Add first skeleton of a duplicate method
Add other base ideas for the copy mechanism for content block attached
entities like assignments and surveys

Relates to MS-651

Add test for duplicating entries, also update implementation
2023-03-14 17:16:30 +01:00
Ramon Wenger aad19db4db Refactor support commands
Add todos for the next steps
2023-03-14 17:16:02 +01:00
Ramon Wenger 97e8f076f6 Allow instruments in draft state to be chosen in InstrumentBlocks 2023-03-14 17:16:02 +01:00
Ramon Wenger dee5880565 Update StreamField usage to include JSON 2023-03-14 17:16:02 +01:00
Ramon Wenger 5033668b79 Upgrade wagtail, update paths 2023-03-14 17:16:02 +01:00
Ramon Wenger 7ee322ec20 Fix a bug with adding room entries in module rooms
Resolves MS-656 #complete
2023-02-23 16:50:25 +01:00
Ramon Wenger aa9886be8d Add link to directly go to registration page
Resolves MS-558
2023-02-14 16:26:54 +01:00
Ramon Wenger 6018925361 Add missing migrations 2023-02-14 15:43:37 +01:00
Ramon Wenger 3ab0662a6a Add source to module hero image
Resolves MS-601
2023-02-14 15:25:43 +01:00
Ramon Wenger a629f6a5e6 Add copy link button to chapters, also generate redirect link 2023-02-09 17:48:42 +01:00
Ramon Wenger af4f19720b Add path property to contentblock 2023-02-07 14:23:39 +01:00
Ramon Wenger a8032e1682 Change surveys to not be automatically deleted when their module is deleted 2023-01-31 11:36:30 +01:00
Ramon Wenger a1ac88dbef Exclude bookmarks when copying a page 2023-01-23 12:32:34 +01:00
Ramon Wenger e4dded714c Update sorting of some models in CMS chooser panels 2022-12-15 12:03:19 +01:00
Ramon Wenger e256eac55b Change license duration for mydetailhandel to 260 days 2022-12-13 13:57:25 +01:00
Ramon Wenger 52baf38597 Merge branch 'hotfix/solutions-with-documents' into develop 2022-12-01 17:52:12 +01:00
Ramon Wenger 10394a3829 Fix solution bug 2022-12-01 17:50:48 +01:00
Ramon Wenger ebc4ca50ae Add slugs argument to export instruments command 2022-11-30 16:55:20 +01:00
Ramon Wenger f071e85863 Add new myKV variables, rename app flavor ids 2022-11-30 16:46:54 +01:00
Ramon Wenger d271c81387 Add new licenses for new environments 2022-11-30 15:13:39 +01:00
Ramon Wenger 9c1d647e11 Fix some issues with SurveyJS 2022-10-27 14:47:05 +02:00
Ramon Wenger 043f895810 Fix bug preventing users of adding new list blocks 2022-10-26 16:52:23 +02:00
Ramon Wenger a8bf34102f Fix a bug with nested items 2022-10-19 15:45:37 +02:00
Ramon Wenger bb4c22bee8 Change logging settings 2022-10-13 10:05:01 +02:00
Ramon Wenger ecf01971b0 Merged in feature/duplicate-content-blocks-MS-570-29-09-2022 (pull request #120)
Feature/duplicate content blocks MS-570 29 09 2022

Approved-by: Lorenz Padberg
2022-10-12 15:42:19 +00:00
Ramon Wenger 3d1d749780 Update logging settings 2022-10-12 16:43:28 +02:00
Ramon Wenger ad21cb4588 Disable failing unit test that's difficult to write 2022-10-06 18:25:14 +02:00
Ramon Wenger 5ead2c9af6 Fix some minor issues on instrument overview for myKV 2022-10-06 12:15:45 +02:00
Ramon Wenger 51cfef5e40 Re-add failing tests 2022-10-05 20:12:19 +02:00
Ramon Wenger 35c7da24b2 Disable failing tests temporarily 2022-10-05 15:33:12 +02:00
Ramon Wenger 6c2f414dc0 Add failing test 2022-10-04 17:14:13 +02:00
Ramon Wenger 4489a8dcf8 Handle contents not editable by users on the server
Relates to MS-589
2022-10-04 17:11:03 +02:00
Ramon Wenger a45cdad652 Restore correct order of objectives 2022-10-03 13:46:20 +02:00
Ramon Wenger d844530095 Add copy of content block before the orignal 2022-09-29 16:40:10 +02:00
Ramon Wenger 4693d2c01a Add duplicate action to frontend 2022-09-29 16:40:10 +02:00
Ramon Wenger 6be6ab8092 Add mutation and unit test for duplication 2022-09-29 16:40:10 +02:00
Ramon Wenger d42007a5fc Fix dummy data 2022-09-15 17:52:16 +02:00