Resolve "Rewrite REBUS with django-select2" #64

Merged
hansegucker merged 33 commits from 6-rewrite-rebus-with-django-select2 into master 2020-04-16 15:00:00 +02:00
Member

Closes #6

Closes #6
Author
Member

changed milestone to %"2.0a2"

changed milestone to %"2.0a2"
Owner

Please add the the common usable Select2 code to the core for using it with other parts of AlekSIS, too, and refer from there in this app.

Please add the the common usable Select2 code to the core for using it with other parts of AlekSIS, too, and refer from there in this app.
Owner

Where this function is used? And if it's used, please replace it by using the messages framework.

Where this function is used? And if it's used, please replace it by using the messages framework.
Author
Member

Actually it is not used. Anyway, it is not written by me so that I will delete it now.

Actually it is not used. Anyway, it is not written by me so that I will delete it now.
Author
Member

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1698&start_sha=b7ec9072f9f356ba63edc0dabf34c1eb2cd8fca4#1d5c742651b598a03a3894a8537d40c474fb340c_18_18)
Author
Member

added 1 commit

  • a79a96cc - remove unnecessary function create_info in views.py

Compare with previous version

added 1 commit <ul><li>a79a96cc - remove unnecessary function create_info in views.py</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1698&start_sha=b7ec9072f9f356ba63edc0dabf34c1eb2cd8fca4)
Author
Member

added 1 commit

Compare with previous version

added 1 commit <ul><li>e4269cdd - remove datetime import</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1700&start_sha=a79a96cce5378e34295cf88fdd5d9f89fbd1150d)
Author
Member

resolved all threads

resolved all threads
Author
Member

@hansegucker What do you mean by adding the common usable Select2 code to the core?

@hansegucker What do you mean by adding the common usable Select2 code to the core?
Owner

Mainly CSS/JS files, but I don't know if there is other reusable stuff.

Mainly CSS/JS files, but I don't know if there is other reusable stuff.
Author
Member

I guess I will deal with that tomorrow.

I guess I will deal with that tomorrow.
Owner

Another thing: Please mark models as extensible by using ExtensibleModel.

Another thing: Please mark models as extensible by using `ExtensibleModel`.
Author
Member

added 1 commit

  • 24c77191 - Marked all models as ExtensibleModel

Compare with previous version

added 1 commit <ul><li>24c77191 - Marked all models as ExtensibleModel</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1705&start_sha=e4269cdd45fd5e77167b17501cb6a242dc0eb8bc)
Author
Member

So the only CSS/JS files that are not already included in the core are two files that are used to materialize select2 and which are currently in the static folder of hjelp. How do I move them to the core?

So the only CSS/JS files that are not already included in the core are two files that are used to materialize select2 and which are currently in the static folder of hjelp. How do I move them to the core?
Owner

Create a new MR in core which adds the files to core static folder, wait until it's merged, then remove the files from this branch and refer the files from the core in the static tag.

Create a new MR in core which adds the files to core static folder, wait until it's merged, then remove the files from this branch and refer the files from the core in the static tag.
Author
Member

added 2 commits

  • 9d6aa1d7 - Remove materialize-select2.js reference since it is not really needed in order...
  • a1bbebc3 - Drop select2-materialize.css since it is now referred to in the core.

Compare with previous version

added 2 commits <ul><li>9d6aa1d7 - Remove materialize-select2.js reference since it is not really needed in order...</li><li>a1bbebc3 - Drop select2-materialize.css since it is now referred to in the core.</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1713&start_sha=24c771912b985ef4608dcfd98884992813c40b81)
Author
Member

added 1 commit

  • b4c1c79c - Add extended_data field to match ExtensibleModel

Compare with previous version

added 1 commit <ul><li>b4c1c79c - Add extended_data field to match ExtensibleModel</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1714&start_sha=a1bbebc3e9a8a091b038fb3bcae6b1deddb8a42b)
Author
Member

added 1 commit

  • b1b5cc4f - Set equal max-height and margins for all bug category fields

Compare with previous version

added 1 commit <ul><li>b1b5cc4f - Set equal max-height and margins for all bug category fields</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1716&start_sha=b4c1c79c55faa503240ac4a38de8105b961bf8ec)
Author
Member

added 1 commit

  • fd63ae74 - load any_js in REBUS template and include select2-materialize JS/CSS via any_js

Compare with previous version

added 1 commit <ul><li>fd63ae74 - load any_js in REBUS template and include select2-materialize JS/CSS via any_js</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1728&start_sha=b1b5cc4f96cb27b0dad1a37400a817c53107ee77)
Author
Member

added 1 commit

  • c47a9646 - Style bug category fields according to other input fields with regard to top/bottom margins

Compare with previous version

added 1 commit <ul><li>c47a9646 - Style bug category fields according to other input fields with regard to top/bottom margins</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1729&start_sha=fd63ae742c2695d429c6906630f12203ca2feb58)
Author
Member

resolved all threads

resolved all threads
Author
Member

Can be merged now.

Can be merged now.
Owner
    {% include_js "select2-materialize" %}
```suggestion:-0+0 {% include_js "select2-materialize" %} ```
Author
Member

resolved all threads

resolved all threads
Author
Member

changed this line in version 10 of the diff

changed this line in [version 10 of the diff](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1748&start_sha=c47a96468f258db956f01ffbb165897680729d41#03ed909ed08a94b0c9497507ad779e004bb91584_83_83)
Author
Member

added 1 commit

  • b3e56ec0 - Apply suggestion to aleksis/apps/hjelp/templates/hjelp/rebus.html

Compare with previous version

added 1 commit <ul><li>b3e56ec0 - Apply suggestion to aleksis/apps/hjelp/templates/hjelp/rebus.html</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1748&start_sha=c47a96468f258db956f01ffbb165897680729d41)
Author
Member

Why am I mixing up JS and CSS so often recently?

Why am I mixing up JS and CSS so often recently?
Author
Member

resolved all threads

resolved all threads
Owner

Please adhere to the order of imports.

Please adhere to the order of imports.
Owner

Please namespace your static files in subdirectories with the app's name.

Please namespace your static files in subdirectories with the app's name.
Author
Member

added 2 commits

  • e058b49f - Move CSS in subdirectory with apps name in order to fit the rest of the project
  • a2a11989 - Merge remote-tracking branch 'origin/6-rewrite-rebus-with-django-select2' into...

Compare with previous version

added 2 commits <ul><li>e058b49f - Move CSS in subdirectory with apps name in order to fit the rest of the project</li><li>a2a11989 - Merge remote-tracking branch &#39;origin/6-rewrite-rebus-with-django-select2&#39; into...</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1754&start_sha=b3e56ec02d74e4ae2a90bd34d5006abf5352f370)
Author
Member

added 1 commit

Compare with previous version

added 1 commit <ul><li>26ca87f6 - Adhere to order of imports</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Hjelp/-/merge_requests/8/diffs?diff_id=1755&start_sha=a2a11989733f894557d1b2308327a13b1e9188b4)
Author
Member

resolved all threads

resolved all threads
Author
Member

@nik Please review again. Have I missed something?

@nik Please review again. Have I missed something?
Owner

Yes, exactly half of what you were supposed to do ;).

You namespaced the CSS file, but not the JS.

Yes, exactly half of what you were supposed to do ;). You namespaced the CSS file, but not the JS.
Owner

mentioned in commit 766c2fc323

mentioned in commit 766c2fc3239f4ebb4590e6974b3cbcbc31e49505
Owner

merged

merged
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Hjelp!64
No description provided.