Commit Graph

1275 Commits

Author SHA1 Message Date
Ramon Wenger 3887616ec7 Rename script for better autocompletion 2024-02-28 11:14:45 +01:00
Ramon Wenger 9112fb3fc8 Add more tests for the instrument highlights
Also refactor the existing tests, add a test which clicks the note icon
first, and refactor some of the existing highlight helpers
2024-02-28 11:14:45 +01:00
Ramon Wenger 99c9a87247 Add missing migrations 2024-02-28 11:14:45 +01:00
Ramon Wenger b329427df8 Refactor highlight model to use a generic page instead of a content
block
2024-02-28 11:14:45 +01:00
Ramon Wenger 238be6cf4f Add a unit test file for highlight mutations
Contains a first test for creation
2024-02-28 11:14:45 +01:00
Ramon Wenger 7cf192f132 Refactor schema definitions to use less direct imports
This prevents some circular import issues
2024-02-28 11:14:45 +01:00
Ramon Wenger f2c9ec04b8 Add delete mutation, flesh out update mutation for highlights 2024-02-28 11:14:45 +01:00
Ramon Wenger bf71faae3f Add Update Highlight mutation stub 2024-02-28 11:14:45 +01:00
Ramon Wenger cba5705aee Add mutation for creating highlights to the server 2024-02-28 11:14:45 +01:00
Ramon Wenger f3dc0e9b09 Add highlight model to server 2024-02-28 11:14:45 +01:00
Ramon Wenger 1927036610 Update and add to GraphQL typing in client and on server 2024-02-28 11:14:44 +01:00
Lorenz Padberg c418a2bbd3 Add new sorting to Snapshot migration 2024-02-27 11:39:37 +01:00
Lorenz Padberg db6c2c4f8b Fix CMS sorting bug 2024-02-27 09:47:03 +01:00
Lorenz Padberg 18c6e0ac72 Fix bug Custom objectives in hidden group 2024-02-26 15:57:07 +01:00
Lorenz Padberg 4e7443906d Remove unused code 2024-02-26 11:50:36 +01:00
Lorenz Padberg 817284ab4c Set environment to skillbox 2024-02-26 11:36:09 +01:00
Lorenz Padberg 3e86d9a620 Fix hidden default group bug 2024-02-26 11:34:19 +01:00
Lorenz Padberg 55fc5da9a7 Add test for hidden default content bug 2024-02-16 13:02:17 +01:00
Lorenz Padberg 16da66da31 Create Custom order for objective groups 2024-02-16 12:55:42 +01:00
Lorenz Padberg ea1816e3cc Add test to replicate order bug 2024-02-16 12:31:45 +01:00
Lorenz Padberg c22238e5a6 Betalogin casinsensitive email 2024-02-16 10:36:55 +01:00
Ramon Wenger 4fd09a0df0 Fix sentry bug 2024-02-13 17:21:33 +01:00
Lorenz Padberg a07f2aab4f Merged in feature/MS851-MigrateSnapshots (pull request #143)
Feature/MS851 MigrateSnapshots

Approved-by: Ramon Wenger
2024-02-13 10:40:42 +00:00
Lorenz Padberg 216f448137 Fix problem with duplicate usernames 2024-02-08 10:37:07 +01:00
Lorenz Padberg fa68f68a6e Resolve comments from pull request 2024-02-07 11:15:34 +01:00
Lorenz Padberg 0631b42867 Add tests for objectives migration 2024-02-06 17:13:22 +01:00
Lorenz Padberg d3b51b1006 Fix several bugs migrate_objective snapshots command 2024-02-05 10:46:18 +01:00
Lorenz Padberg e338f2e2ad Use fast hasher when DEBUG settings is true 2024-02-05 10:45:19 +01:00
Lorenz Padberg 1d5cf2cf05 Add comment how to restore the backup file 2024-02-05 09:58:46 +01:00
Lorenz Padberg a765d7874f Remove test for objectives snapshot 2024-02-01 16:23:35 +01:00
Lorenz Padberg 2b7d8eeda3 Add intermediate backups to migrations 2024-02-01 14:30:22 +01:00
Lorenz Padberg eef536b801 Fix visibiility of custom and default objectives 2024-01-29 17:17:52 +01:00
Lorenz Padberg 9f16573b92 Fix bug in content creation 2024-01-29 16:58:03 +01:00
Lorenz Padberg 1908f11370 Add migrate objective snapshot command 2024-01-25 11:06:33 +01:00
Lorenz Padberg fdbdcb366e Merged in feature/Add-missing-migrations (pull request #140)
Add migrations to develop

Approved-by: Ramon Wenger
2023-12-20 10:34:15 +00:00
Lorenz Padberg 3dcfb92dbf Add analyze snapshots command 2023-12-19 16:01:29 +01:00
Lorenz Padberg c88447ebb6 Add Error Handling 2023-12-19 10:25:05 +01:00
Ramon Wenger bb0bfb98ce Remove buggy logger statement 2023-12-18 17:14:53 +01:00
Lorenz Padberg 6069c47c5e Refactoring 2023-12-18 17:05:05 +01:00
Ramon Wenger 486a92a9a4 Fix dummy_data 2023-12-18 17:01:15 +01:00
Lorenz Padberg 2446b52596 Working. But too many content blocks... todo remove duplicates. 2023-12-18 16:28:12 +01:00
Lorenz Padberg 568564a64c Add User created content 2023-12-18 15:34:56 +01:00
Lorenz Padberg 48d3c34fbe Create migration test command 2023-12-15 23:17:10 +01:00
Ramon Wenger 992b9945e5 Remove reference to removed settings variable 2023-12-14 17:16:08 +01:00
Lorenz Padberg 9e4c19c633 Add migrations to develop 2023-12-13 16:08:50 +01:00
Ramon Wenger d0fb5c5fe4 Fix unit test
Also fix factory magic for blocks that have contents defined using the
`wagtail_factories` syntax
2023-12-12 16:58:12 +01:00
Ramon Wenger 75ecaedd29 Fix content blocks in `dummy_data` command 2023-12-12 15:43:12 +01:00
Ramon Wenger 95eb7e1295 Fix the platform setting when running tests 2023-12-11 16:44:34 +01:00
Lorenz Padberg 954ed9027d Refactor Sentry Middleware for Graphene 2023-12-11 16:44:34 +01:00
Ramon Wenger e66fd61ec9 Replace function based view with class based view and upgrade wagtail to
LTS
2023-12-11 16:44:34 +01:00
Lorenz Padberg e30d6f468e Fix "fields" depreciation warnings 2023-12-11 16:44:34 +01:00
Ramon Wenger 6823219846 Update factory definitions 2023-12-11 16:44:34 +01:00
Ramon Wenger f15afbf551 Update factory syntax in unit test 2023-12-11 16:44:34 +01:00
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