Skip to content

MBS-10005: Initial version #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 144 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
2f06f6d
tiny_elements
sh-csg Jan 10, 2025
4c10abc
MBS-9856: Change to remembered flavor on category dropdown click
TobiGa Jan 13, 2025
22ea1ea
MBS-9863: Move constants to separate class
sh-csg Jan 13, 2025
c9f1232
MBS-9856: Allow exporting single categories
sh-csg Jan 13, 2025
0a6f965
MBS-9864: Move importing out of manager class
sh-csg Jan 13, 2025
46856da
MBS-9848: Prevent preview from changing modal height
TobiGa Jan 15, 2025
c4d8991
MBS-9855: Fix focusing on last Element selected
TobiGa Jan 16, 2025
f243595
MBS-9848: Add german language file
TobiGa Jan 16, 2025
46a8f3c
MBS-9857: Add popup to printurls in backend form
TobiGa Jan 16, 2025
a313172
Coding style
sh-csg Jan 27, 2025
d134184
MBS-9896: Add displayorder for flavors
sh-csg Jan 31, 2025
c19b7d9
MBS-9897: Duplicate items
sh-csg Jan 31, 2025
2dacecf
MBS-9898: Change hideforstudents handling
sh-csg Feb 1, 2025
263eb78
Coding style
sh-csg Feb 1, 2025
fc4404d
MBS-9898: Fix unit test
sh-csg Feb 1, 2025
027901d
MBS-9859: Remove files after export/import
sh-csg Feb 1, 2025
cd771d0
MBS-9899: Make cards in admin backend fixed-width
sh-csg Feb 1, 2025
e8830e1
MBS-9900: Fix export error
sh-csg Feb 2, 2025
12d5165
MBS-9858: Whatif for import
sh-csg Feb 2, 2025
5942c12
MBS-9901: Split up management into smaller units
sh-csg Feb 2, 2025
487466f
Coding style
sh-csg Feb 2, 2025
71d7880
Coding style
sh-csg Feb 2, 2025
a0b41e0
MBS-9901: Fix preprocessing
sh-csg Feb 2, 2025
b5fc8f2
MBS-9902: Purge css cache after changing iconurls
sh-csg Feb 2, 2025
420a733
MBS-9902: Remove unused code
sh-csg Feb 2, 2025
4c7916b
MBS-9902: Remove unused code
sh-csg Feb 2, 2025
89e7747
MBS-9904: Bulk edit displaynames
sh-csg Feb 3, 2025
83b11bd
MBS-9904: Bulk edit displaynames
sh-csg Feb 3, 2025
b30e179
MBS-9904: Bulk edit displaynames
sh-csg Feb 3, 2025
c247bc8
MBS-9904: Fix flavor import
sh-csg Feb 9, 2025
33f07bb
Move datahandling to separate js
sh-csg Feb 12, 2025
3fd7b5b
Avoid problem when missing category
sh-csg Feb 13, 2025
44b168d
Use selection for placeholder
sh-csg Feb 13, 2025
527bb66
Make button icon management easier
sh-csg Feb 13, 2025
1cd0a51
New base.zip
sh-csg Feb 13, 2025
9e68c73
Update base.zip
sh-csg Feb 13, 2025
d36e60b
Whitespace
sh-csg Feb 22, 2025
d58d2f0
MBS-9946: Use active category as default when adding components
sh-csg Feb 23, 2025
ad81974
MBS-9947: Remove buttons
sh-csg Feb 23, 2025
99f5bb4
MBS-9947: Fix javascript
sh-csg Feb 23, 2025
1413f8b
MBS-9951: Only import flavor relations that belong to imported compon…
sh-csg Feb 24, 2025
b963387
MBS-9952: component id -> componentname in tiny_elements_comp_variant
sh-csg Feb 24, 2025
12d7899
MBS-9953: Connect variants and flavors via categoryname
sh-csg Feb 24, 2025
fb6f090
MBS-9953: Mustache fixes
sh-csg Feb 25, 2025
25d60b6
MBS-9953: Set categoryname on import
sh-csg Feb 25, 2025
a163768
MBS-9953: Make compatible with postgres
sh-csg Feb 25, 2025
1ea84e3
MBS-9955: Change strings
sh-csg Feb 25, 2025
5c0ea94
MBS-9957: Update base.zip
sh-csg Feb 26, 2025
2cee0f9
MBS-9958: Change isset -> array_key_exists
sh-csg Feb 26, 2025
2931890
MBS-9973: Change category wrap
sh-csg Mar 1, 2025
526e03d
MBS-9975: Import during install - catch fails
sh-csg Mar 2, 2025
fe59919
MBS-9858: Fix whatif
sh-csg Mar 2, 2025
12ba28e
MBS-9955: Fix strings
sh-csg Mar 2, 2025
78916e4
MBS-9977: Show variant names
sh-csg Mar 2, 2025
d6f9ce8
MBS-9978: Add cli script for installing base.zip
sh-csg Mar 2, 2025
1d34be5
MBS-9976: Update base.zip
sh-csg Mar 2, 2025
14739a7
MBS-9978: Disable base.zip auto install
sh-csg Mar 2, 2025
032022b
MBS-9987: Fix preview
sh-csg Mar 3, 2025
5866ba0
MBS-9988: Also purge cache when doing XML import
sh-csg Mar 3, 2025
6d249f1
MBS-9989: Don't show unused fields in edit forms
sh-csg Mar 3, 2025
cc7e1a4
MBS-9862: Initial documentation
sh-csg Mar 3, 2025
dc7a08e
MBS-9993: Change backend names
sh-csg Mar 3, 2025
cf58103
MBS-9994: Complete german translation
sh-csg Mar 3, 2025
65cdea4
MBS-9998: Admin link from modal
sh-csg Mar 4, 2025
8b9122c
MBS-10004: Bootstrap 5 compatibility
sh-csg Mar 5, 2025
72eb4a4
MBS-10005: Remove class from flavors
sh-csg Mar 5, 2025
a93d216
MBS-10005: Avoid upgrade problems
sh-csg Mar 5, 2025
7c0a912
MBS-10005: Fix categoryname type
sh-csg Mar 6, 2025
0bce8c0
MBS-10005: Sort management page by displayorder
sh-csg Mar 6, 2025
a10f4b7
MBS-9979: Fix editor css
sh-csg Mar 6, 2025
7497c59
MBS-9799: Change flavor names
sh-csg Mar 6, 2025
bcd42f7
MBS-9979: Mark components with HTML comment
sh-csg Mar 6, 2025
be72524
MBS-9979: Fix lang file
sh-csg Mar 6, 2025
0b95884
MBS-9979: Update base.zip
sh-csg Mar 6, 2025
ce3f7ca
MBS-10005: Fix categoryname type
sh-csg Mar 6, 2025
774c028
MBS-9979: Update base.zip
sh-csg Mar 7, 2025
a64291f
Remove bulkupdate
sh-csg Apr 14, 2025
815841f
Update readme
sh-csg Apr 14, 2025
3757b39
MBS-10005: CR
sh-csg Apr 14, 2025
d78306a
MBS-10005: CR
sh-csg Apr 15, 2025
7900d5e
MBS-10005: Remove old files
sh-csg Apr 15, 2025
06fd365
MBS-10005: leftovers
sh-csg Apr 15, 2025
8b105a2
MBS-10005: CR
sh-csg Apr 15, 2025
6dba96a
MBS-10005: CR
sh-csg Apr 15, 2025
ba38438
MBS-10005: CR
sh-csg Apr 15, 2025
499724e
MBS-10005: CR
sh-csg Apr 15, 2025
b10e8b1
MBS-10005: CR
sh-csg Apr 16, 2025
3c264d5
MBS-10005: CR
sh-csg Apr 16, 2025
99a524b
MBS-10005: CR
sh-csg Apr 16, 2025
d087318
MBS-10005: CR
sh-csg Apr 16, 2025
ddbe85c
MBS-10005: CR
sh-csg Apr 16, 2025
8322912
MBS-10005: CR
sh-csg Apr 16, 2025
4394638
MBS-10005: CR
sh-csg Apr 16, 2025
7903bf5
MBS-10005: CR
sh-csg Apr 16, 2025
e4127d3
MBS-10005: CR
sh-csg Apr 16, 2025
a2fdae5
MBS-10005: CR
sh-csg Apr 16, 2025
d32c8ed
MBS-10005: CR
sh-csg Apr 16, 2025
4cd36c9
MBS-10005: CR
sh-csg Apr 16, 2025
7a0410a
MBS-10005: CR
sh-csg Apr 16, 2025
8ce396c
MBS-10005: CR
sh-csg Apr 16, 2025
5ce0e96
MBS-10005: CR
sh-csg Apr 16, 2025
867ca3f
MBS-10005: CR
sh-csg Apr 16, 2025
1a35d78
MBS-10005: CR
sh-csg Apr 16, 2025
10f29a6
Prevent redirecting to CSS and JS files after login when trying to ac…
PhMemmel Apr 17, 2025
c87e880
MBS-10005: CR
sh-csg Apr 17, 2025
b2d92a6
MBS-10005: CR
sh-csg Apr 17, 2025
c6e90cc
MBS-10005: Fix button image size
sh-csg Apr 24, 2025
0926c0c
MBS-10005: Handly empty flavor content
sh-csg Apr 24, 2025
22773fb
MBS-10005: CR
sh-csg Apr 28, 2025
6d85e11
MBS-10005: CR
sh-csg Apr 28, 2025
47cfb57
CR
sh-csg May 5, 2025
f19d234
CR
sh-csg May 5, 2025
dc7a899
MBS-10005: CR
sh-csg May 6, 2025
6c39ced
MBS-10005: Fix variantshtml
sh-csg May 6, 2025
5b73b0a
MBS-10005: Fix caching
sh-csg May 6, 2025
2b3878a
MBS-10005: Only show button if components / flavors exist
sh-csg May 6, 2025
eb3e4cc
MBS-10005: Always reload page after changing an item
sh-csg May 6, 2025
dc99ca6
MBS-10005: Update documentation
sh-csg May 6, 2025
47e5f5f
MBS-10005: Fix pluginfile urls in preview
sh-csg May 6, 2025
7176654
MBS-10005: Add missing initialization
sh-csg May 7, 2025
d8584e7
Add wipe function
sh-csg May 15, 2025
5e17a51
MBS-9847: Avoid duplicate files in export
sh-csg May 20, 2025
0c40dd3
MBS-10005: Wipe
sh-csg May 20, 2025
3958c99
No undefined message
sh-csg May 20, 2025
e69b43d
MBS-9847: metadata for symbol files
Apr 7, 2025
1c38edf
MBS-9847: export/import for metadata
Apr 28, 2025
55ddca4
MBS-9847: license adaptations and specification of the categories to …
May 12, 2025
1dd1da7
Update classes/exporter.php
fhuebler May 19, 2025
2847070
Update classes/importer.php
fhuebler May 19, 2025
998dcea
Update classes/importer.php
fhuebler May 19, 2025
6a08dc7
Update templates/management.mustache
fhuebler May 19, 2025
daa25b9
MBS-9847: Avoid null values
sh-csg May 19, 2025
dedf043
MBS-9847: Remove unused
sh-csg May 19, 2025
c9bcefd
note xml files
May 20, 2025
09f49c9
MBS-10005: Wipe
sh-csg May 20, 2025
b63522a
No undefined message
sh-csg May 20, 2025
5923001
MBS-9847: metadata for symbol files
Apr 7, 2025
2039e61
MBS-9847: export/import for metadata
Apr 28, 2025
1ad27ec
Merge pull request #4 from mebis-lp/MBS-9847-editsymbolslicenses
sh-csg May 20, 2025
722291f
Fix
sh-csg May 20, 2025
543405b
Fix
sh-csg May 20, 2025
7c84292
Happify grunt
PhMemmel May 20, 2025
72221da
Happify codechecker
PhMemmel May 20, 2025
029e6fe
Add capability check to wipe web service
PhMemmel May 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug report
about: Create a report to help me improve c4l
about: Create a report to help me improve elements
title: ''
labels: ''
assignees: ''
Expand Down
95 changes: 57 additions & 38 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,55 @@
name: Moodle Plugin CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

services:
postgres:
image: postgres:14
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3

mariadb:
image: mariadb:10.5
image: mariadb:10
env:
MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_CHARACTER_SET_SERVER: "utf8mb4"
MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci"
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3

strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0']
moodle-branch: ['MOODLE_401_STABLE']
database: [mariadb]

include:
- php: '8.3'
moodle-branch: 'main'
database: 'mariadb'
- php: '8.3'
moodle-branch: 'main'
database: 'pgsql'
- php: '8.3'
moodle-branch: 'MOODLE_405_STABLE'
database: 'mariadb'
- php: '8.3'
moodle-branch: 'MOODLE_405_STABLE'
database: 'pgsql'
- php: '8.1'
moodle-branch: 'MOODLE_404_STABLE'
database: 'mariadb'
- php: '8.1'
moodle-branch: 'MOODLE_404_STABLE'
database: 'pgsql'
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: plugin

Expand All @@ -35,65 +59,60 @@ jobs:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
# If you are not using code coverage, keep "none". Otherwise, use "pcov" (Moodle 3.10 and up) or "xdebug".
# If you try to use code coverage with "none", it will fallback to phpdbg (which has known problems).
coverage: none

- name: Initialise moodle-plugin-ci
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV

- name: Install moodle-plugin-ci
run: |
moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

- name: PHP Lint
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci phplint

- name: PHP Copy/Paste Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpmd

- name: Moodle Code Checker
if: ${{ always() }}
run: moodle-plugin-ci codechecker --max-warnings 0
if: ${{ !cancelled() }}
run: moodle-plugin-ci phpcs --max-warnings 0

- name: Moodle PHPDoc Checker
if: ${{ always() }}
run: moodle-plugin-ci phpdoc
if: ${{ !cancelled() }}
run: moodle-plugin-ci phpdoc --max-warnings 0

- name: Validating
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci validate

- name: Check upgrade savepoints
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci savepoints

- name: Mustache Lint
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci mustache

- name: Grunt
if: ${{ matrix.moodle-branch == 'master' }}
run: moodle-plugin-ci grunt
- name: Grunt AMD
if: ${{ !cancelled() }}
run: moodle-plugin-ci grunt --tasks amd --max-lint-warnings 0

- name: Grunt Gherkin
if: ${{ !cancelled() }}
run: moodle-plugin-ci grunt --tasks gherkinlint --max-lint-warnings 0

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit
if: ${{ !cancelled() }}
run: moodle-plugin-ci phpunit --fail-on-warning

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
- name: Mark cancelled jobs as failed.
if: ${{ cancelled() }}
run: exit 1
Loading