Bug 47243 - Add custom categories for portal
Add custom categories for portal
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.3
Other Mac OS X 10.1
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Johannes Keiser
Ole Schwiegert
:
Depends on:
Blocks: 47807
  Show dependency treegraph
 
Reported: 2018-06-25 14:35 CEST by Michel Smidt
Modified: 2018-11-29 09:49 CET (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Smidt 2018-06-25 14:35:37 CEST
Currently it is not possible to add custom categories to the portal but this is necessary for coherent portal concept.
Comment 2 Ole Schwiegert univentionstaff 2018-08-29 11:31:05 CEST
Changelog & Advisories: 

Installation:
- admin and service category was created: OK
- correct mapping of content property on portal object: ERR (*)
- mapping respects portalEntriesOrder if set: ERR (*****)
- portal.json contains content dict: OK
- other servers still have 'old' portal: OK

Settings/portal:
- order of content dict is shown on portal: COMMENT (**)
(changing portalEntriesOrder does not change content after installation!)
- if a portal_entry gets removed from a portal the portal is also removed from the portal_entries univentionPortalEntryPortal (***)
- Content order is reflected in deprecated portal as good as possible: ERR (****)

Settings/portal_category:
- portal content is updated if portal_category object was deleted: OK
- "" if portal_category object was renamed: OK
- "" if portal category object was moved: OK
- deprecated category for new entries is always service: OK

Settings/portal_entry:
- portal content is updated if portal_entry object was deleted: OK
- "" if portal_entry object was renamed: OK
- "" if portal entry object was moved: OK
- if deprecated univentionPortalEntryPortal gets modified, changes are reflected in respective portals content: NDY


Graphical Portal Edit:
- Add/remove categories: OK
- Add/remove entries: OK

(*) After installation the portal was completely blank (except title). After checking the new Portal-Categories and -Entries it showed that the portal category fields were blank. After setting the right categories the portal showed as expected.

(**) Works as expected. Is it possible though to add easy buttons to change order of categories and entries in categories in the UMC? At the moment I have to delete and readd to change order.

(***) Verified via univention-ldapsearch -b cn=univentionblog,cn=portal,cn=univention,dc=realm2,dc=intranet | grep univentionPortalEntryPortal

(****) Showed default domain portal on slave and switched management with univention blog. Old portal did not get new order.

(*****) Probably same cause as for (*)
Comment 3 Ole Schwiegert univentionstaff 2018-08-29 11:33:54 CEST
(**) Works as expected. Is it possible though to add easy buttons to change order of categories and entries in categories in the UMC? At the moment I have to delete and readd to change order.

Problem gone. Probably a caching problem. Buttons for moving are present
Comment 4 Ole Schwiegert univentionstaff 2018-08-29 13:23:05 CEST
Installation:
- correct mapping of content property on portal object: OK
- mapping respects portalEntriesOrder if set: ERR (*)

Settings/Portal:
- Content order is reflected in deprecated portal as good as possible: OK (**)


Settings/portal_entry:
- if deprecated univentionPortalEntryPortal gets modified via udm, changes are reflected in respective portals content: OK

(*) Order set in old portal is not adopted by new portal

(**) The new order is only reflected if there are actual changes in the ldap. Only changing orders in the new settings does not change the order in the old portals until some entries are removed/renamed/added

---
Only one manual test still fails
Comment 5 Johannes Keiser univentionstaff 2018-09-10 12:51:31 CEST
38c5586929 Bug #47243: Add custom categories for the portal
9f932583b5 Bug #47243: Add images
2af2c87601 Bug #47243: translations
53fc69d6a4 Bug #47243: Debian changelog entries
6978fd0116 Bug #47243: YAML - add entries
97912e53c7 Bug #47243: Merge branch 'jkeiser/4.3-2/47243/custom_categories_for_the_portal' into 4.3-2
d6af54e5c5 Bug #47243: YAML - update versions

Successful build
Package: univention-web
Version: 2.0.0-23A~4.3.0.201809101233

Successful build
Package: univention-ldap
Version: 14.0.2-19A~4.3.0.201809101240

Successful build
Package: univention-directory-manager-modules
Version: 13.0.22-2A~4.3.0.201809101242

Successful build
Package: univention-management-console-module-udm
Version: 8.0.5-15A~4.3.0.201809101244

Successful build
Package: univention-portal
Version: 2.0.2-2A~4.3.0.201809101246
Comment 6 Ole Schwiegert univentionstaff 2018-09-10 13:54:50 CEST
Changelog&Advisories: OK
Installation:
- admin and service category was created: OK
- correct mapping of content property on portal object: OK
- mapping respects portalEntriesOrder if set: OK
- portal.json contains content dict: OK
- other servers still have 'old' portal: OK

Settings/portal:
- order of content dict is shown on portal: OK
(changing portalEntriesOrder does not change content after installation!)
- if a portal_entry gets removed from a portal the portal is also removed from the portal_entries univentionPortalEntryPortal: OK
- Content order is reflected in deprecated portal as good as possible: OK

Settings/portal_category:
- portal content is updated if portal_category object was deleted: OK
- "" if portal_category object was renamed: OK
- "" if portal category object was moved: OK
- deprecated category for new entries is always service: OK

Settings/portal_entry:
- portal content is updated if portal_entry object was deleted: OK
- "" if portal_entry object was renamed: OK
- "" if portal entry object was moved: OK
- if deprecated univentionPortalEntryPortal gets modified, changes are reflected in respective portals content: OK


Graphical Portal Edit:
- Add/remove categories: OK
- Add/remove entries: OK
Comment 7 Johannes Keiser univentionstaff 2018-09-10 16:41:17 CEST
custom backgrounds for the portal are no longer displayed

The links from Bug #43442 are not displayed
Comment 8 Johannes Keiser univentionstaff 2018-09-10 16:53:20 CEST
(In reply to Johannes Keiser from comment #7)
> custom backgrounds for the portal are no longer displayed
> 
> The links from Bug #43442 are not displayed

60172d2114 Bug #47243: fix background images and footer links not being displayed
8db0be67bf Bug #47243: Debian changelog
db091639f0 Bug #47243: YAML - update version

Successful build
Package: univention-portal
Version: 2.0.2-3A~4.3.0.201809101649
Comment 9 Ole Schwiegert univentionstaff 2018-09-13 08:45:29 CEST
Changelog&Advisory: OK
Package installed: OK
Background picture is now displayed: OK
Links from Bug #43442 are displayed: OK
Comment 10 Johannes Keiser univentionstaff 2018-09-18 13:22:29 CEST
dcac89bf8d Bug #47243: show deactivated and out of group entries when editing portal
abff23e02e Bug #47243: Debian changelog entries
543aa63aab Bug #47243: Merge branch 'jkeiser/4.3-2/47243/custom_categories_for_the_portal' into 4.3-2
e5ec3c6987 Bug #47243: YAML - update versions

When an admin edits the portal they now also see deactivated entries
and entries that they normally would not see because of group settings.

If they weren't shown they would be deleted from the content when e.g. the entry order is saved.
Comment 11 Ole Schwiegert univentionstaff 2018-09-18 16:42:30 CEST
Tested with
univention-management-console-module-udm:
8.0.5-18A~4.3.0.201809181301

univention-web:
2.0.0-24A~4.3.0.201809181311

univention-portal:
2.0.2-5A~4.3.0.201809181453

Retested all the old points and could not find any problems.

I stress tested the drag and drop of the portal as good as I could and encountered not a single problem with dragging the tiles around

While editing the entire portal is now shown and saved properly

Changelog&Advisories OK
Package installed: OK